Pull in updates to VS Code template extension #226
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR overhauls the LSP client to pull in a bunch of improvements that've been made to the upstream template, primarily through these two PRs:
Some of the issues that those PRs fixed, we've actually fixed already -- but that team knows the LSP and VS Code much, much better, and so I'm happy to pull in their changes.
We've obviously diverged a bit from the original template, so pulling in these changes while preserving our own deviations is tricky... But, in particular, I had to do the following:
settings.ts
to match our settings schema, defaults, etc.extension.ts
to register our custom actions.extension.ts
to support enabling and disabling the extension (Add a setting to enable or disable the extension #222).extension.ts
to debounce restarts (Only one server restart at a time #194, Restore client inextension.ts
#218).