diff options
author | Veetaha <[email protected]> | 2020-02-09 13:51:28 +0000 |
---|---|---|
committer | Veetaha <[email protected]> | 2020-02-09 13:51:28 +0000 |
commit | 6a367886ece53e12d62394fe676c9476b4343933 (patch) | |
tree | e8c40a169bc8242b4662cb181aa22a4860e30454 /docs/user/README.md | |
parent | 7cba77ed4e4207b2e24b8dd57723368c2717bb2a (diff) |
vscode: updated docs on prebuilt binaries
Diffstat (limited to 'docs/user/README.md')
-rw-r--r-- | docs/user/README.md | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/docs/user/README.md b/docs/user/README.md index 18867cd11..abf7c013b 100644 --- a/docs/user/README.md +++ b/docs/user/README.md | |||
@@ -32,6 +32,37 @@ a minimum version of 10 installed. Please refer to | |||
32 | You will also need the most recent version of VS Code: we don't try to | 32 | You will also need the most recent version of VS Code: we don't try to |
33 | maintain compatibility with older versions yet. | 33 | maintain compatibility with older versions yet. |
34 | 34 | ||
35 | ### Installation from prebuilt binaries | ||
36 | |||
37 | We ship prebuilt binaries for Linux, Mac and Windows via | ||
38 | [GitHub releases](https://github.com/rust-analyzer/rust-analyzer/releases). | ||
39 | In order to use them you need to install the client VSCode extension. | ||
40 | |||
41 | Publishing to VSCode marketplace is currently WIP. Thus you need to clone the repository and install **only** the client extension via | ||
42 | ``` | ||
43 | $ git clone https://github.com/rust-analyzer/rust-analyzer.git --depth 1 | ||
44 | $ cd rust-analyzer | ||
45 | $ cargo xtask install --client-code | ||
46 | ``` | ||
47 | Then open VSCode (or reload the window if it was already running), open some Rust project and you should | ||
48 | see an info message pop-up. | ||
49 | |||
50 | |||
51 | <img height="140px" src="https://user-images.githubusercontent.com/36276403/74103174-a40df100-4b52-11ea-81f4-372c70797924.png" alt="Download now message"/> | ||
52 | |||
53 | |||
54 | Click `Download now`, wait untill the progress is 100% and you are ready to go. | ||
55 | |||
56 | For updates you need to remove installed binary | ||
57 | ``` | ||
58 | rm -rf ${HOME}/.config/Code/User/globalStorage/matklad.rust-analyzer | ||
59 | ``` | ||
60 | |||
61 | `"Donwload latest language server"` command for VSCode and automatic updates detection is currently WIP. | ||
62 | |||
63 | |||
64 | ### Installation from sources | ||
65 | |||
35 | The experimental VS Code plugin can then be built and installed by executing the | 66 | The experimental VS Code plugin can then be built and installed by executing the |
36 | following commands: | 67 | following commands: |
37 | 68 | ||
@@ -47,6 +78,7 @@ doesn't, report bugs! | |||
47 | **Note** [#1831](https://github.com/rust-analyzer/rust-analyzer/issues/1831): If you are using the popular | 78 | **Note** [#1831](https://github.com/rust-analyzer/rust-analyzer/issues/1831): If you are using the popular |
48 | [Vim emulation plugin](https://github.com/VSCodeVim/Vim), you will likely | 79 | [Vim emulation plugin](https://github.com/VSCodeVim/Vim), you will likely |
49 | need to turn off the `rust-analyzer.enableEnhancedTyping` setting. | 80 | need to turn off the `rust-analyzer.enableEnhancedTyping` setting. |
81 | (// TODO: This configuration is no longer available, enhanced typing shoud be disabled via removing Enter key binding, [see this issue](https://github.com/rust-analyzer/rust-analyzer/issues/3051)) | ||
50 | 82 | ||
51 | If you have an unusual setup (for example, `code` is not in the `PATH`), you | 83 | If you have an unusual setup (for example, `code` is not in the `PATH`), you |
52 | should adapt these manual installation instructions: | 84 | should adapt these manual installation instructions: |