golang.org/x/tools/gopls@v0.15.3/internal/test/marker/testdata/configuration/static.txt (about) 1 This test confirms that gopls honors configuration even if the client does not 2 support dynamic configuration. 3 4 -- capabilities.json -- 5 { 6 "configuration": false 7 } 8 9 -- settings.json -- 10 { 11 "usePlaceholders": true, 12 "analyses": { 13 "composites": false 14 } 15 } 16 17 -- go.mod -- 18 module example.com/config 19 20 go 1.18 21 22 -- a/a.go -- 23 package a 24 25 import "example.com/config/b" 26 27 func Identity[P ~int](p P) P { //@item(Identity, "Identity", "", "") 28 return p 29 } 30 31 func _() { 32 _ = b.B{2} 33 _ = Identi //@snippet(" //", Identity, "Identity(${1:p P})"), diag("Ident", re"(undefined|undeclared)") 34 } 35 36 -- b/b.go -- 37 package b 38 39 type B struct { 40 F int 41 }