Skip to content

Commit

Permalink
update vscode-languageclient/-server modules, drop polyfills (#146)
Browse files Browse the repository at this point in the history
* bump dependencies

* drop obsolete polyfills

* update imports
see https://github.com/Microsoft/vscode-languageserver-node/blob/main/README.md#3160-protocol-600-json-rpc-700-client-and-700-server

* new `TextDocuments` creation syntax
see https://github.com/Microsoft/vscode-languageserver-node/blob/main/README.md#3150-protocol-600-client--600-server

microsoft/vscode-languageserver-node#532 removed `document.syncKinds`, so this should be the behaviour that was present before that change

* remove unneccesary generic parameter RO
https://github.com/Microsoft/vscode-languageserver-node/blob/main/README.md#3160-protocol-600-json-rpc-700-client-and-700-server

* https://github.com/Microsoft/vscode-languageserver-node/blob/main/README.md#3170-protocol-800-json-rpc-800-client-and-800-server
new start logic

* register all handlers before calling `client.start()`
https://github.com/Microsoft/vscode-languageserver-node/blob/main/README.md#3170-protocol-800-json-rpc-800-client-and-800-server

* bump transpilation target to `es2020`

* bump TS, some types, disable lib checks temporarily

* update error types to explicit any

* add changeset
  • Loading branch information
phryneas authored Jul 18, 2024
1 parent 8777b58 commit 0721afe
Show file tree
Hide file tree
Showing 33 changed files with 288 additions and 788 deletions.
12 changes: 12 additions & 0 deletions .changeset/three-deers-hide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
"vscode-apollo": minor
---

Modernization:

- set minimum VSCode version to 1.90.0
- update build target to ES2020
- drop `node-fetch` and similar polyfills
- update `vscode-languageclient/-server` modules
- migrate from the deprecated `vscode` module to `@types/vscode`
- update `typescript` developement dependency to 5.5
Loading

0 comments on commit 0721afe

Please sign in to comment.