golang.org/x/tools/gopls@v0.15.3/internal/test/marker/testdata/codeaction/inline_resolve.txt (about) 1 This is a minimal test of the refactor.inline code actions, with resolve support. 2 See inline.txt for same test without resolve support. 3 4 -- capabilities.json -- 5 { 6 "textDocument": { 7 "codeAction": { 8 "dataSupport": true, 9 "resolveSupport": { 10 "properties": ["edit"] 11 } 12 } 13 } 14 } 15 -- go.mod -- 16 module example.com/codeaction 17 go 1.18 18 19 -- a/a.go -- 20 package a 21 22 func _() { 23 println(add(1, 2)) //@codeaction("add", ")", "refactor.inline", inline) 24 } 25 26 func add(x, y int) int { return x + y } 27 28 -- @inline/a/a.go -- 29 package a 30 31 func _() { 32 println(1 + 2) //@codeaction("add", ")", "refactor.inline", inline) 33 } 34 35 func add(x, y int) int { return x + y }