rust/editors/code/src
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
..
commands Merge #3024 2020-02-05 20:57:08 +00:00
installation vscode: save binary version when downloading and download only version that matches TypeScript extension version 2020-02-16 03:41:40 +02:00
client.ts vscode: add version and storage parameters to github binary source 2020-02-16 03:41:39 +02:00
color_theme.ts vscode: yet another refactor commit 2020-02-05 00:13:46 +02:00
config.ts Merge #3162 2020-02-16 11:54:38 +00:00
ctx.ts vscode: add version and storage parameters to github binary source 2020-02-16 03:41:39 +02:00
highlighting.ts vscode: moved to getters as per matklad 2020-02-14 23:04:50 +02:00
inlay_hints.ts vscode: moved to getters as per matklad 2020-02-14 23:04:50 +02:00
main.ts vscode: yet another refactor commit 2020-02-05 00:13:46 +02:00
source_change.ts Apply the api design suggestions 2020-01-15 20:17:17 +02:00
status_display.ts vscode: moved to getters as per matklad 2020-02-14 23:04:50 +02:00