Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fleet #935

Merged
merged 15 commits into from
Jul 8, 2024
Merged

Fleet #935

merged 15 commits into from
Jul 8, 2024

Conversation

lippfi
Copy link
Contributor

@lippfi lippfi commented Jul 5, 2024

No description provided.

lippfi and others added 14 commits July 4, 2024 23:25
If we execute it from VimStateMachine directly, then mode change listeners are not notified
It is global in Vim
This bug was caused by two reasons:
1. KeyHandler state is not longer per-editor and we can't reset it on editor creation
2. We do not need to do such things on editor creation. What actually matters is focusing the editor
Mode is global now
…l in Fleet

Why is the old interface bad?
- it is not obvious. You cannot create a new panel or check if it is already created. Only "getOrCreate" it
- output panel is bound to editor while in Vim it is global
- we have the `isActive` field and the `clear()` method at the same time, because interface implies that you store the same instance of the panel and reactivate it for each output and I don't like it. We also can forget to call `clear()` after reusing panel
- we cannot "build" output before showing to make the panel more efficient. With multiple carets we can only cal `output(oldText + newText)` for each caret, and it is bad. (imagine we have global command with a lot of matches and for each time we will need to call the `output(oldText + newText)`)
- the `output()` method shows panel, activates it and updates it
- there are more things that I do not like, but the points above should be already enough
It's an oneliner that we can live without
@AlexPl292 AlexPl292 enabled auto-merge (rebase) July 5, 2024 14:21
@AlexPl292 AlexPl292 disabled auto-merge July 5, 2024 14:35
@lippfi lippfi merged commit c0419d6 into master Jul 8, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant