Skip to content

Commit d833323

Browse files
hyangahgopherbot
authored andcommitted
package.json: remove 'workspaceContains' from activation events
It's not too late to start the work when a Go file is open. Go became popular so it's not uncommon to see a large repo that contains some go files. Also activate it if go.sum or go template files are open. onLanguage:go.mod and onLanguage:go.work are unnecessary according to vscode's diagnostics - the existence of language contribution config makes vscode auto-handle the activation. Fixes #3038 Fixes #2164 Change-Id: I3ca55316b00cbe7fc82ed01be65cce83d88b9053 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/545136 Run-TryBot: Hyang-Ah Hana Kim <[email protected]> TryBot-Result: kokoro <[email protected]> Commit-Queue: Hyang-Ah Hana Kim <[email protected]> Reviewed-by: Robert Findley <[email protected]> Auto-Submit: Hyang-Ah Hana Kim <[email protected]>
1 parent 07bea22 commit d833323

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,8 @@
9595
},
9696
"activationEvents": [
9797
"onLanguage:go",
98-
"workspaceContains:*.go",
99-
"workspaceContains:*/*.go",
100-
"workspaceContains:*/*/*.go",
98+
"onLanguage:go.sum",
99+
"onLanguage:gotmpl",
101100
"onDebugInitialConfigurations",
102101
"onDebugResolve:go",
103102
"onWebviewPanel:welcomeGo"
@@ -132,8 +131,7 @@
132131
{
133132
"id": "go.mod",
134133
"filenames": [
135-
"go.mod",
136-
"gopls.mod"
134+
"go.mod"
137135
],
138136
"aliases": [
139137
"Go Module File"

0 commit comments

Comments
 (0)