diff options
Diffstat (limited to 'editors/code/package.json')
-rw-r--r-- | editors/code/package.json | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/editors/code/package.json b/editors/code/package.json index 4b47fc9d3..743a2290c 100644 --- a/editors/code/package.json +++ b/editors/code/package.json | |||
@@ -61,6 +61,7 @@ | |||
61 | "activationEvents": [ | 61 | "activationEvents": [ |
62 | "onLanguage:rust", | 62 | "onLanguage:rust", |
63 | "onCommand:rust-analyzer.analyzerStatus", | 63 | "onCommand:rust-analyzer.analyzerStatus", |
64 | "onCommand:rust-analyzer.memoryUsage", | ||
64 | "onCommand:rust-analyzer.reloadWorkspace", | 65 | "onCommand:rust-analyzer.reloadWorkspace", |
65 | "workspaceContains:**/Cargo.toml" | 66 | "workspaceContains:**/Cargo.toml" |
66 | ], | 67 | ], |
@@ -143,6 +144,11 @@ | |||
143 | "category": "Rust Analyzer" | 144 | "category": "Rust Analyzer" |
144 | }, | 145 | }, |
145 | { | 146 | { |
147 | "command": "rust-analyzer.memoryUsage", | ||
148 | "title": "Memory Usage (Clears Database)", | ||
149 | "category": "Rust Analyzer" | ||
150 | }, | ||
151 | { | ||
146 | "command": "rust-analyzer.reloadWorkspace", | 152 | "command": "rust-analyzer.reloadWorkspace", |
147 | "title": "Reload workspace", | 153 | "title": "Reload workspace", |
148 | "category": "Rust Analyzer" | 154 | "category": "Rust Analyzer" |
@@ -844,6 +850,10 @@ | |||
844 | "when": "inRustProject" | 850 | "when": "inRustProject" |
845 | }, | 851 | }, |
846 | { | 852 | { |
853 | "command": "rust-analyzer.memoryUsage", | ||
854 | "when": "inRustProject" | ||
855 | }, | ||
856 | { | ||
847 | "command": "rust-analyzer.reloadWorkspace", | 857 | "command": "rust-analyzer.reloadWorkspace", |
848 | "when": "inRustProject" | 858 | "when": "inRustProject" |
849 | }, | 859 | }, |