mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2026-04-20 21:27:03 +00:00
704: Feat/jinstall lsp r=matklad a=DJMcNab Add `cargo jinstall-lsp` as a shorthand to include jemalloc support Also activate the extension when the commands are run which is makes sense to activate. I still need to work out what `Run` actually does to give it a better name, and other extensions through some voodoo magic are able to hide their commands from the command palette before the extension is activated, which would be a better fix. 705: Pass Documentation up to LSP and add "rust" to our codeblocks there r=matklad a=kjeremy Fixes #699 Co-authored-by: DJMcNab <36049421+djmcnab@users.noreply.github.com> Co-authored-by: Jeremy Kolb <kjeremy@gmail.com>
This commit is contained in:
@@ -44,7 +44,9 @@
|
||||
"vscode": "^1.1.26"
|
||||
},
|
||||
"activationEvents": [
|
||||
"onLanguage:rust"
|
||||
"onLanguage:rust",
|
||||
"onCommand:rust-analyzer.analyzerStatus",
|
||||
"onCommand:rust-analyzer.collectGarbage"
|
||||
],
|
||||
"main": "./out/extension",
|
||||
"contributes": {
|
||||
@@ -73,35 +75,43 @@
|
||||
"commands": [
|
||||
{
|
||||
"command": "rust-analyzer.syntaxTree",
|
||||
"title": "rust-analyzer: syntax tree"
|
||||
"title": "Show syntax tree for current file",
|
||||
"category": "Rust Analyzer"
|
||||
},
|
||||
{
|
||||
"command": "rust-analyzer.extendSelection",
|
||||
"title": "rust-analyzer: extend selection"
|
||||
"title": "Extend selection",
|
||||
"category": "Rust Analyzer"
|
||||
},
|
||||
{
|
||||
"command": "rust-analyzer.matchingBrace",
|
||||
"title": "rust-analyzer: matching brace"
|
||||
"title": "Find matching brace",
|
||||
"category": "Rust Analyzer"
|
||||
},
|
||||
{
|
||||
"command": "rust-analyzer.parentModule",
|
||||
"title": "rust-analyzer: parent module"
|
||||
"title": "Locate parent module",
|
||||
"category": "Rust Analyzer"
|
||||
},
|
||||
{
|
||||
"command": "rust-analyzer.joinLines",
|
||||
"title": "rust-analyzer: join lines"
|
||||
"title": "Join lines",
|
||||
"category": "Rust Analyzer"
|
||||
},
|
||||
{
|
||||
"command": "rust-analyzer.run",
|
||||
"title": "rust-analyzer: run"
|
||||
"title": "Run",
|
||||
"category": "Rust Analyzer"
|
||||
},
|
||||
{
|
||||
"command": "rust-analyzer.analyzerStatus",
|
||||
"title": "rust-analyzer: status"
|
||||
"title": "Status",
|
||||
"category": "Rust Analyzer"
|
||||
},
|
||||
{
|
||||
"command": "rust-analyzer.collectGarbage",
|
||||
"title": "rust-analyzer: run gc"
|
||||
"title": "Run garbage collection",
|
||||
"category": "Rust Analyzer"
|
||||
}
|
||||
],
|
||||
"keybindings": [
|
||||
|
||||
Reference in New Issue
Block a user