activate extension if Cargo.toml is present

This commit is contained in:
Aleksey Kladov 2019-03-13 16:14:30 +03:00
parent 97a87bf3a6
commit 6ef614f785

View file

@ -46,7 +46,8 @@
"activationEvents": [
"onLanguage:rust",
"onCommand:rust-analyzer.analyzerStatus",
"onCommand:rust-analyzer.collectGarbage"
"onCommand:rust-analyzer.collectGarbage",
"workspaceContains:**/Cargo.toml"
],
"main": "./out/extension",
"contributes": {