// Code generated by convertFourslash; DO NOT EDIT. // To modify this test, run "npm run makemanual autoImportFileExcludePatterns5" 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 TestAutoImportFileExcludePatterns5(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/canImport.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 './canImport'; import { Parts } from './parts'; export class EditorParts implements Parts { options: Event; }`, Index: 0, UserPreferences: &lsutil.UserPreferences{AutoImportFileExcludePatterns: []string{"src/vs/workbench/workbench.ts"}}, }) }