vendor tsgo
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
// Code generated by convertFourslash; DO NOT EDIT.
|
||||
// To modify this test, run "npm run makemanual renameInConfiguredProject"
|
||||
|
||||
package fourslash_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/microsoft/typescript-go/internal/fourslash"
|
||||
. "github.com/microsoft/typescript-go/internal/fourslash/tests/util"
|
||||
"github.com/microsoft/typescript-go/internal/testutil"
|
||||
)
|
||||
|
||||
func TestRenameInConfiguredProject(t *testing.T) {
|
||||
fourslash.SkipIfFailing(t)
|
||||
t.Parallel()
|
||||
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
||||
const content = `// @Filename: referencesForGlobals_1.ts
|
||||
[|var [|{| "contextRangeIndex": 0 |}globalName|] = 0;|]
|
||||
// @Filename: referencesForGlobals_2.ts
|
||||
var y = [|globalName|];
|
||||
// @Filename: tsconfig.json
|
||||
{ "files": ["referencesForGlobals_1.ts", "referencesForGlobals_2.ts"], "compilerOptions": { "lib": ["es5"] } }`
|
||||
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
||||
defer done()
|
||||
f.MarkTestAsStradaServer()
|
||||
f.VerifyBaselineRename(t, nil /*preferences*/, ToAny(f.Ranges()[1:])...)
|
||||
}
|
||||
Reference in New Issue
Block a user