From 1ce5fc0bb8ec0edb5f35abdba409c3ed9428f5cc Mon Sep 17 00:00:00 2001 From: chemzqm Date: Thu, 4 Apr 2019 18:06:38 +0800 Subject: [PATCH] add contributes of rootPatterns --- package.json | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/package.json b/package.json index 943c94f..794ff78 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,36 @@ "onCommand:tsserver.watchBuild" ], "contributes": { + "rootPatterns": [ + { + "filetype": "javascript", + "patterns": [ + "package.json", + "jsconfig.json" + ] + }, + { + "filetype": "javascriptreact", + "patterns": [ + "package.json", + "jsconfig.json" + ] + }, + { + "filetype": "typescript", + "patterns": [ + "package.json", + "tsconfig.json" + ] + }, + { + "filetype": "typescriptreact", + "patterns": [ + "package.json", + "tsconfig.json" + ] + } + ], "commands": [ { "title": "Reload current project",