From 377ee9d3335216086a4d9cdbdeff9a803ea2815a Mon Sep 17 00:00:00 2001 From: DJMcNab <36049421+DJMcNab@users.noreply.github.com> Date: Tue, 29 Jan 2019 17:08:02 +0000 Subject: Start the extension when rust-analyzer status is run --- editors/code/package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index 05c67d822..506137d1d 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -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": { -- cgit v1.2.3 From ce939795eda971f121231cca36b5bf99ef4fd6c4 Mon Sep 17 00:00:00 2001 From: DJMcNab <36049421+DJMcNab@users.noreply.github.com> Date: Tue, 29 Jan 2019 17:16:14 +0000 Subject: Add category to the commands --- editors/code/package.json | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index 506137d1d..1ed834d62 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -75,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": [ -- cgit v1.2.3