Files
kjol/tools/tsgo/internal/fourslash/tests/gen/autoImportFileExcludePatterns7_test.go
2026-07-09 16:50:43 -04:00

49 lines
1.5 KiB
Go

// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual autoImportFileExcludePatterns7"
package fourslash_test
import (
"testing"
"github.com/microsoft/typescript-go/internal/fourslash"
"github.com/microsoft/typescript-go/internal/ls/lsutil"
"github.com/microsoft/typescript-go/internal/testutil"
)
func TestAutoImportFileExcludePatterns7(t *testing.T) {
fourslash.SkipIfFailing(t)
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `// @Filename: /src/vs/workbench/test.ts
import { Parts } from './parts';
export class /**/EditorParts implements Parts { }
// @Filename: /src/vs/event/event.ts
export interface Event {
(): string;
}
// @Filename: /src/vs/workbench/parts.ts
import { Event } from '../event/event';
export interface Parts {
readonly options: Event;
}
// @Filename: /src/vs/workbench/workbench.ts
import { Event } from '../event/event';
export { Event };
// @Filename: /src/vs/workbench/workbench2.ts
import { Event } from '../event/event';
export { Event };`
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
defer done()
f.VerifyCodeFix(t, fourslash.VerifyCodeFixOptions{
Description: "Implement interface 'Parts'",
NewFileContent: `import { Event } from '../event/event';
import { Parts } from './parts';
export class EditorParts implements Parts {
options: Event;
}`,
Index: 0,
UserPreferences: &lsutil.UserPreferences{AutoImportFileExcludePatterns: []string{"src/vs/workbench/workbench*"}},
})
}