diff options
author | Aleksey Kladov <[email protected]> | 2019-03-13 13:14:30 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-03-13 13:38:49 +0000 |
commit | 6ef614f78558aaa30c42aed3503d350e174df5b9 (patch) | |
tree | f34e7fe4dd0195eb97d01805e23593959d6f2846 /editors | |
parent | 97a87bf3a68338b1acc2b7a02dfa43096bf47e05 (diff) |
activate extension if Cargo.toml is present
Diffstat (limited to 'editors')
-rw-r--r-- | editors/code/package.json | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editors/code/package.json b/editors/code/package.json index 0a1e84b4a..3834f2847 100644 --- a/editors/code/package.json +++ b/editors/code/package.json | |||
@@ -46,7 +46,8 @@ | |||
46 | "activationEvents": [ | 46 | "activationEvents": [ |
47 | "onLanguage:rust", | 47 | "onLanguage:rust", |
48 | "onCommand:rust-analyzer.analyzerStatus", | 48 | "onCommand:rust-analyzer.analyzerStatus", |
49 | "onCommand:rust-analyzer.collectGarbage" | 49 | "onCommand:rust-analyzer.collectGarbage", |
50 | "workspaceContains:**/Cargo.toml" | ||
50 | ], | 51 | ], |
51 | "main": "./out/extension", | 52 | "main": "./out/extension", |
52 | "contributes": { | 53 | "contributes": { |