Skip to content

Emit the afterProgramValidate event even when validation is cancelled#1381

Merged
TwitchBronBron merged 5 commits intolsp-refactorfrom
better-validate-cancel-recovery
Dec 23, 2024
Merged

Emit the afterProgramValidate event even when validation is cancelled#1381
TwitchBronBron merged 5 commits intolsp-refactorfrom
better-validate-cancel-recovery

Conversation

@TwitchBronBron
Copy link
Member

Now that we cancel validations, we need to ensure that we still emit the afterProgramValidate event to allow plugins to clean up after that flow. We include a wasCancelled boolean as an event argument, this way plugins can make different decisions based on if it was cancelled or not.

This solves the vanishing diagnostic bug where typing in quick succession that triggered a cancel would cause certain scope diagnostics to vanish.

@TwitchBronBron TwitchBronBron merged commit 41163e3 into lsp-refactor Dec 23, 2024
@TwitchBronBron TwitchBronBron deleted the better-validate-cancel-recovery branch December 23, 2024 19:39
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