rust-analyzer/editors/code
bors[bot] a15c8739b9
Merge #3162
3162: Feature: vscode always downloads only the matching ra_lsp_server version r=matklad a=Veetaha

I tried to separate logically connected changes into separate commits, so enjoy!

Now TypeScript extension saves installed binary version in global state and always checks that the installed binary version equals the version of the TypeScript extension itself (to prevent version drifts).
Also, changed `fetchLatestArtifactReleaseInfo()` to `fetchArtifactReleaseInfo()` that takes an optional release tag (when not specified fetches the latest release). The version without a release tag will be useful in the future when adding auto-checking for updates.

I decided not to do `Download latest language server` command (I have stated the rationale for this in #3073) and let the extension itself decide which version of the binary it wants. This way the users will be able to get the latest `ra_lsp_server` binary after the approaching 2020-02-17 release, without having to manually delete the outdated one from `~/.config/Code/User/globalStorage/matklad.rust-analyzer`!

Closes #3073

Co-authored-by: Veetaha <gerzoh1@gmail.com>
2020-02-16 11:54:38 +00:00
..
src Merge #3162 2020-02-16 11:54:38 +00:00
.gitignore add rollup bundler for vscode extension 2019-09-23 23:25:16 +02:00
.vscodeignore Rename VS Code extension to rust-analyzer 2020-01-13 11:13:18 +01:00
icon.png Extension icon 2020-01-15 16:07:39 +01:00
package-lock.json Expect vscode 1.42 2020-02-14 12:02:19 -05:00
package.json vscode: add version and storage parameters to github binary source 2020-02-16 03:41:39 +02:00
rollup.config.js Disable rollup warning 2020-02-16 05:04:51 +08:00
tsconfig.json vscode: amended config to use binary from globalStoragePath, added ui for downloading 2020-02-08 04:34:11 +02:00
tslint.json vscode: eliminate floating promises and insane amount of resource handle leaks 2020-02-05 22:39:47 +02:00