From 6ef614f78558aaa30c42aed3503d350e174df5b9 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 13 Mar 2019 16:14:30 +0300 Subject: activate extension if Cargo.toml is present --- editors/code/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 @@ "activationEvents": [ "onLanguage:rust", "onCommand:rust-analyzer.analyzerStatus", - "onCommand:rust-analyzer.collectGarbage" + "onCommand:rust-analyzer.collectGarbage", + "workspaceContains:**/Cargo.toml" ], "main": "./out/extension", "contributes": { -- cgit v1.2.3