File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
gopls/internal/test/integration/template Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,36 @@ go 1.17
52
52
})
53
53
}
54
54
55
+ func TestMultilineTokensAgain (t * testing.T ) {
56
+ t .Skip ("skipping due to go.dev/issue/74635" )
57
+
58
+ const files = `
59
+ -- go.mod --
60
+ module mod.com
61
+
62
+ go 1.17
63
+ -- hi.tmpl --
64
+ {{/* this is
65
+ a comment */}}
66
+ `
67
+ WithOptions (
68
+ Settings {
69
+ "templateExtensions" : []string {"tmpl" },
70
+ "semanticTokens" : true ,
71
+ },
72
+ ).Run (t , files , func (t * testing.T , env * Env ) {
73
+ var p protocol.SemanticTokensParams
74
+ p .TextDocument .URI = env .Sandbox .Workdir .URI ("hi.tmpl" )
75
+ toks , err := env .Editor .Server .SemanticTokensFull (env .Ctx , & p )
76
+ if err != nil {
77
+ t .Errorf ("semantic token failed: %v" , err )
78
+ }
79
+ if toks == nil || len (toks .Data ) == 0 {
80
+ t .Errorf ("got no semantic tokens" )
81
+ }
82
+ })
83
+ }
84
+
55
85
func TestTemplatesFromExtensions (t * testing.T ) {
56
86
const files = `
57
87
-- go.mod --
You can’t perform that action at this time.
0 commit comments