Skip to content

Commit

Permalink
package.json: recognize *.*tmpl as go template files
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
hyangah committed Aug 16, 2021
1 parent ad3a6ca commit 945a47e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
},
{
"id": "go.mod",
"extensions": [
"filenames": [
"go.mod",
"gopls.mod",
"go.work"
Expand All @@ -141,7 +141,7 @@
},
{
"id": "go.sum",
"extensions": [
"filenames": [
"go.sum"
],
"aliases": [
Expand All @@ -150,8 +150,8 @@
},
{
"id": "tmpl",
"extensions": [
".tmpl"
"filenamePatterns": [
"*.*tmpl"
],
"aliases": [
"Go Template File"
Expand Down

0 comments on commit 945a47e

Please sign in to comment.