Skip to content

Commit 945a47e

Browse files
committed
package.json: recognize *.*tmpl as go template files
filenamePatterns allows glob matching. Gopls processes any '.*tmpl' files as go template file. For #609 Change-Id: I73334c1fdb7d23544591bbbdb5a3ad78397fa227 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/342069 Trust: Hyang-Ah Hana Kim <[email protected]> Trust: Peter Weinberger <[email protected]> Run-TryBot: Hyang-Ah Hana Kim <[email protected]> TryBot-Result: kokoro <[email protected]> Reviewed-by: Peter Weinberger <[email protected]>
1 parent ad3a6ca commit 945a47e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
},
130130
{
131131
"id": "go.mod",
132-
"extensions": [
132+
"filenames": [
133133
"go.mod",
134134
"gopls.mod",
135135
"go.work"
@@ -141,7 +141,7 @@
141141
},
142142
{
143143
"id": "go.sum",
144-
"extensions": [
144+
"filenames": [
145145
"go.sum"
146146
],
147147
"aliases": [
@@ -150,8 +150,8 @@
150150
},
151151
{
152152
"id": "tmpl",
153-
"extensions": [
154-
".tmpl"
153+
"filenamePatterns": [
154+
"*.*tmpl"
155155
],
156156
"aliases": [
157157
"Go Template File"

0 commit comments

Comments
 (0)