diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-02-16 11:54:38 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-16 11:54:38 +0000 |
commit | a15c8739b9a6da223e1f3a6ff6aa868913c0dbf4 (patch) | |
tree | 5694d395b08c416bf60d7206e0380a3859cfe1e2 /docs | |
parent | 617b5b3b31cf0b461829810640e28a9090a5b957 (diff) | |
parent | 325eba58a286c147f19dada5f205aa9e2ec6f391 (diff) |
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 <[email protected]>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/user/readme.adoc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/user/readme.adoc b/docs/user/readme.adoc index 867aae975..553687e78 100644 --- a/docs/user/readme.adoc +++ b/docs/user/readme.adoc | |||
@@ -27,8 +27,9 @@ https://github.com/rust-analyzer/rust-analyzer/tree/master/editors/code[in tree] | |||
27 | 27 | ||
28 | You can install the latest release of the plugin from | 28 | You can install the latest release of the plugin from |
29 | https://marketplace.visualstudio.com/items?itemName=matklad.rust-analyzer[the marketplace]. | 29 | https://marketplace.visualstudio.com/items?itemName=matklad.rust-analyzer[the marketplace]. |
30 | By default, the plugin will download the latest version of the server as well. | 30 | By default, the plugin will download the matching version of the server as well. |
31 | 31 | ||
32 | // FIXME: update the image (its text has changed) | ||
32 | image::https://user-images.githubusercontent.com/36276403/74103174-a40df100-4b52-11ea-81f4-372c70797924.png[] | 33 | image::https://user-images.githubusercontent.com/36276403/74103174-a40df100-4b52-11ea-81f4-372c70797924.png[] |
33 | 34 | ||
34 | The server binary is stored in `~/.config/Code/User/globalStorage/matklad.rust-analyzer`. | 35 | The server binary is stored in `~/.config/Code/User/globalStorage/matklad.rust-analyzer`. |
@@ -37,9 +38,7 @@ Note that we only support the latest version of VS Code. | |||
37 | 38 | ||
38 | ==== Updates | 39 | ==== Updates |
39 | 40 | ||
40 | The extension will be updated automatically as new versions become available. | 41 | The extension will be updated automatically as new versions become available. It will ask your permission to download the matching language server version binary if needed. |
41 | The server update functionality is in progress. | ||
42 | For the time being, the workaround is to remove the binary from `globalStorage` and to restart the extension. | ||
43 | 42 | ||
44 | ==== Building From Source | 43 | ==== Building From Source |
45 | 44 | ||