mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 05:08:52 +00:00
Rename config value for server Path
This commit is contained in:
parent
c0fa5e2246
commit
c855e36696
6 changed files with 7 additions and 7 deletions
|
@ -92,7 +92,7 @@ launch configuration from `launch.json`. Notably, this uses the usual
|
|||
in `setting.json` file:
|
||||
```json
|
||||
{
|
||||
"rust-analyzer.raLspServerPath": "rust-analyzer"
|
||||
"rust-analyzer.serverPath": "rust-analyzer"
|
||||
}
|
||||
```
|
||||
After I am done with the fix, I use `cargo
|
||||
|
|
|
@ -64,7 +64,7 @@ To make VS Code use the freshly build server, add this to the settings:
|
|||
|
||||
[source,json]
|
||||
----
|
||||
{ "rust-analyzer.raLspServerPath": "rust-analyzer" }
|
||||
{ "rust-analyzer.serverPath": "rust-analyzer" }
|
||||
----
|
||||
|
||||
Note that installing via `xtask install` does not work for VS Code Remote, instead you'll need to install the `.vsix` manually.
|
||||
|
@ -102,7 +102,7 @@ The are several LSP client implementations for vim:
|
|||
2. Run `:CocInstall coc-rust-analyzer` to install
|
||||
https://github.com/fannheyward/coc-rust-analyzer[coc-rust-analyzer],
|
||||
this extension implements _most_ of the features supported in the VSCode extension:
|
||||
* same configurations as VSCode extension, `rust-analyzer.raLspServerPath`, `rust-analyzer.enableCargoWatchOnStartup` etc.
|
||||
* same configurations as VSCode extension, `rust-analyzer.serverPath`, `rust-analyzer.enableCargoWatchOnStartup` etc.
|
||||
* same commands too, `rust-analyzer.analyzerStatus`, `rust-analyzer.startCargoWatch` etc.
|
||||
* highlighting and inlay_hints are not implemented yet
|
||||
|
||||
|
|
|
@ -179,7 +179,7 @@
|
|||
"default": {},
|
||||
"description": "Fine grained feature flags to disable annoying features"
|
||||
},
|
||||
"rust-analyzer.raLspServerPath": {
|
||||
"rust-analyzer.serverPath": {
|
||||
"type": [
|
||||
"null",
|
||||
"string"
|
||||
|
|
|
@ -111,7 +111,7 @@ export class Config {
|
|||
}
|
||||
|
||||
get serverSource(): null | BinarySource {
|
||||
const serverPath = RA_LSP_DEBUG ?? this.cfg.get<null | string>("raLspServerPath");
|
||||
const serverPath = RA_LSP_DEBUG ?? this.cfg.get<null | string>("serverPath");
|
||||
|
||||
if (serverPath) {
|
||||
return {
|
||||
|
|
|
@ -29,7 +29,7 @@ export async function ensureServerBinary(source: null | BinarySource): Promise<n
|
|||
|
||||
vscode.window.showErrorMessage(
|
||||
`Unable to run ${source.path} binary. ` +
|
||||
`To use the pre-built language server, set "rust-analyzer.raLspServerPath" ` +
|
||||
`To use the pre-built language server, set "rust-analyzer.serverPath" ` +
|
||||
"value to `null` or remove it from the settings to use it by default."
|
||||
);
|
||||
return null;
|
||||
|
|
|
@ -39,7 +39,7 @@ impl InstallCmd {
|
|||
"
|
||||
Installation complete.
|
||||
|
||||
Add `\"rust-analyzer.raLspServerPath\": \"rust-analyzer\",` to VS Code settings,
|
||||
Add `\"rust-analyzer.serverPath\": \"rust-analyzer\",` to VS Code settings,
|
||||
otherwise it will use the latest release from GitHub.
|
||||
"
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue