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:
bors[bot]
2019-01-30 19:08:06 +00:00
11 changed files with 128 additions and 102 deletions

View File

@@ -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": [