Skip to content

Commit 222e0d0

Browse files
committed
package.json: recognize gopls.mod as a go.mod file
gopls.mod is a special go.mod file for a workspace used by gopls and friends. Recognize this as a type of go.mod. For example, the language client library will watch gopls.mod and trigger requests such as textDocument/*. Note that vscode-go already issues 'workspace/didChangeWatchedFiles' for gopls because gopls registers didChangeWatchedFiles capabilities on *.mod files. Fixes #712 Change-Id: I47f8827dbaed8020ea34e356ccbb9422cf50932c Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/263986 Trust: Hyang-Ah Hana Kim <[email protected]> Run-TryBot: Hyang-Ah Hana Kim <[email protected]> TryBot-Result: kokoro <[email protected]> Reviewed-by: Rebecca Stambler <[email protected]>
1 parent c9b9618 commit 222e0d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@
111111
{
112112
"id": "go.mod",
113113
"extensions": [
114-
"go.mod"
114+
"go.mod",
115+
"gopls.mod"
115116
],
116117
"aliases": [
117118
"Go Module File"

0 commit comments

Comments
 (0)