github.com/jmigpin/editor@v1.6.0/core/lsproto/testdata/rename_go.txt (about) 1 #exec go run main.go 2 ucmd lspSourceCursor main_template main.go 0 3 setenv offset stdout 4 5 # test with multiple files (used to fail at second rename below) 6 ucmd lspRename main.go offset V2 7 #exec cat main.go 8 #exec cat pkg1/fn1.go 9 contains stdout "var V2 = \"aaa\"" 10 ucmd lspRename main.go offset V3 11 contains stdout "var V3 = \"aaa\"" 12 13 -- go.mod -- 14 module mod1 15 -- main_template -- 16 package main 17 import "mod1/pkg1" 18 func main(){ 19 println(pkg1.V●1) 20 } 21 -- pkg1/fn1.go -- 22 package pkg1 23 var V1 = "aaa"