From 2d65be3305d4b850264305c6a2756f67fae5cb8e Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Thu, 14 Aug 2025 23:08:46 -0700 Subject: [PATCH 1/6] Write fourslash stderr to t.Output --- internal/fourslash/fourslash.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/fourslash/fourslash.go b/internal/fourslash/fourslash.go index 8b4526610f..6284465fc9 100644 --- a/internal/fourslash/fourslash.go +++ b/internal/fourslash/fourslash.go @@ -159,11 +159,10 @@ func NewFourslash(t *testing.T, capabilities *lsproto.ClientCapabilities, conten outputReader, outputWriter := newLSPPipe() fs := bundled.WrapFS(vfstest.FromMap(testfs, true /*useCaseSensitiveFileNames*/)) - var err strings.Builder server := lsp.NewServer(&lsp.ServerOptions{ In: inputReader, Out: outputWriter, - Err: &err, + Err: t.Output(), Cwd: "/", FS: fs, From e624abe8036879843b2de496ea759122e443d8fd Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Thu, 14 Aug 2025 23:11:06 -0700 Subject: [PATCH 2/6] Use test context --- cmd/tsgo/lsp.go | 8 +++++++- internal/fourslash/fourslash.go | 2 +- internal/lsp/server.go | 8 +------- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/cmd/tsgo/lsp.go b/cmd/tsgo/lsp.go index 35c973a3a0..689ef48d7f 100644 --- a/cmd/tsgo/lsp.go +++ b/cmd/tsgo/lsp.go @@ -1,10 +1,13 @@ package main import ( + "context" "flag" "fmt" "os" + "os/signal" "runtime" + "syscall" "github.com/microsoft/typescript-go/internal/bundled" "github.com/microsoft/typescript-go/internal/core" @@ -37,6 +40,9 @@ func runLSP(args []string) int { defer profileSession.Stop() } + ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM) + defer stop() + fs := bundled.WrapFS(osvfs.FS()) defaultLibraryPath := bundled.LibPath() typingsLocation := getGlobalTypingsCacheLocation() @@ -51,7 +57,7 @@ func runLSP(args []string) int { TypingsLocation: typingsLocation, }) - if err := s.Run(); err != nil { + if err := s.Run(ctx); err != nil { return 1 } return 0 diff --git a/internal/fourslash/fourslash.go b/internal/fourslash/fourslash.go index 6284465fc9..b6306b1e1d 100644 --- a/internal/fourslash/fourslash.go +++ b/internal/fourslash/fourslash.go @@ -175,7 +175,7 @@ func NewFourslash(t *testing.T, capabilities *lsproto.ClientCapabilities, conten defer func() { outputWriter.Close() }() - err := server.Run() + err := server.Run(t.Context()) if err != nil { t.Error("server error:", err) } diff --git a/internal/lsp/server.go b/internal/lsp/server.go index baf7296b66..292a8c0ca6 100644 --- a/internal/lsp/server.go +++ b/internal/lsp/server.go @@ -5,13 +5,10 @@ import ( "errors" "fmt" "io" - "os" - "os/signal" "runtime/debug" "slices" "sync" "sync/atomic" - "syscall" "github.com/go-json-experiment/json" "github.com/microsoft/typescript-go/internal/collections" @@ -249,10 +246,7 @@ func (s *Server) RefreshDiagnostics(ctx context.Context) error { return nil } -func (s *Server) Run() error { - ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM) - defer stop() - +func (s *Server) Run(ctx context.Context) error { g, ctx := errgroup.WithContext(ctx) g.Go(func() error { return s.dispatchLoop(ctx) }) g.Go(func() error { return s.writeLoop(ctx) }) From 8762147deb86564cd751026bfefc9e93799ae3fd Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Thu, 14 Aug 2025 23:31:07 -0700 Subject: [PATCH 3/6] Coordinate LSP server exit error --- internal/fourslash/fourslash.go | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/internal/fourslash/fourslash.go b/internal/fourslash/fourslash.go index b6306b1e1d..502b6d339c 100644 --- a/internal/fourslash/fourslash.go +++ b/internal/fourslash/fourslash.go @@ -1,6 +1,7 @@ package fourslash import ( + "context" "fmt" "io" "maps" @@ -140,6 +141,8 @@ func NewFourslash(t *testing.T, capabilities *lsproto.ClientCapabilities, conten // Just skip this for now. t.Skip("bundled files are not embedded") } + ctx := t.Context() + fileName := getFileNameFromTest(t) testfs := make(map[string]string) scriptInfos := make(map[string]*scriptInfo) @@ -171,14 +174,14 @@ func NewFourslash(t *testing.T, capabilities *lsproto.ClientCapabilities, conten ParsedFileCache: &parsedFileCache{}, }) + lspCtx, lspCancel := context.WithCancel(ctx) + lspErrChan := make(chan error, 1) + go func() { defer func() { outputWriter.Close() }() - err := server.Run(t.Context()) - if err != nil { - t.Error("server error:", err) - } + lspErrChan <- server.Run(lspCtx) }() converters := ls.NewConverters(lsproto.PositionEncodingKindUTF8, func(fileName string) *ls.LineMap { @@ -209,7 +212,17 @@ func NewFourslash(t *testing.T, capabilities *lsproto.ClientCapabilities, conten f.activeFilename = f.testData.Files[0].fileName t.Cleanup(func() { + lspCancel() inputWriter.Close() + + select { + case <-ctx.Done(): + // do nothing + case err := <-lspErrChan: + if err != nil && lspCtx.Err() == nil { + t.Errorf("LSP server exited with error: %v", err) + } + } }) return f } From 177d586d8fa5355a1e8b6156a12634ccccfb147a Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Fri, 15 Aug 2025 10:07:03 -0700 Subject: [PATCH 4/6] Move ctx up to the top where it should be --- cmd/tsgo/lsp.go | 7 +------ cmd/tsgo/main.go | 8 +++++++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/cmd/tsgo/lsp.go b/cmd/tsgo/lsp.go index 689ef48d7f..53773c5745 100644 --- a/cmd/tsgo/lsp.go +++ b/cmd/tsgo/lsp.go @@ -5,9 +5,7 @@ import ( "flag" "fmt" "os" - "os/signal" "runtime" - "syscall" "github.com/microsoft/typescript-go/internal/bundled" "github.com/microsoft/typescript-go/internal/core" @@ -17,7 +15,7 @@ import ( "github.com/microsoft/typescript-go/internal/vfs/osvfs" ) -func runLSP(args []string) int { +func runLSP(ctx context.Context, args []string) int { flag := flag.NewFlagSet("lsp", flag.ContinueOnError) stdio := flag.Bool("stdio", false, "use stdio for communication") pprofDir := flag.String("pprofDir", "", "Generate pprof CPU/memory profiles to the given directory.") @@ -40,9 +38,6 @@ func runLSP(args []string) int { defer profileSession.Stop() } - ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM) - defer stop() - fs := bundled.WrapFS(osvfs.FS()) defaultLibraryPath := bundled.LibPath() typingsLocation := getGlobalTypingsCacheLocation() diff --git a/cmd/tsgo/main.go b/cmd/tsgo/main.go index 5eabc96df9..1e66a40465 100644 --- a/cmd/tsgo/main.go +++ b/cmd/tsgo/main.go @@ -1,7 +1,10 @@ package main import ( + "context" "os" + "os/signal" + "syscall" "github.com/microsoft/typescript-go/internal/execute" ) @@ -11,11 +14,14 @@ func main() { } func runMain() int { + ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM) + defer cancel() + args := os.Args[1:] if len(args) > 0 { switch args[0] { case "--lsp": - return runLSP(args[1:]) + return runLSP(ctx, args[1:]) case "--api": return runAPI(args[1:]) } From d2e62919a1cd624afa2facfa8d75d22c5f92e136 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Fri, 15 Aug 2025 10:13:49 -0700 Subject: [PATCH 5/6] Wow okay I guess this fixes a bunch of tests --- internal/fourslash/_scripts/failingTests.txt | 286 ------------------ .../gen/aliasMergingWithNamespace_test.go | 2 +- .../ambientShorthandGotoDefinition_test.go | 2 +- ...AvailableAfterEditsAtEndOfFunction_test.go | 2 +- .../tests/gen/augmentedTypesClass1_test.go | 2 +- .../gen/augmentedTypesClass3Fourslash_test.go | 2 +- .../gen/bestCommonTypeObjectLiterals1_test.go | 2 +- .../gen/bestCommonTypeObjectLiterals_test.go | 2 +- .../tests/gen/codeCompletionEscaping_test.go | 2 +- .../tests/gen/commentsEnumsFourslash_test.go | 2 +- .../gen/commentsLinePreservation_test.go | 2 +- .../fourslash/tests/gen/commentsUnion_test.go | 2 +- .../gen/completionAfterQuestionDot_test.go | 2 +- .../completionAutoInsertQuestionDot_test.go | 2 +- .../gen/completionCloneQuestionToken_test.go | 2 +- ...ntryForArgumentConstrainedToString_test.go | 2 +- ...orArrayElementConstrainedToString2_test.go | 2 +- ...ForArrayElementConstrainedToString_test.go | 2 +- ...rs_StaticWhenBaseTypeIsNotResolved_test.go | 2 +- .../completionEntryForUnionProperty2_test.go | 2 +- .../completionEntryForUnionProperty_test.go | 2 +- .../tests/gen/completionExportFrom_test.go | 2 +- ...pletionForComputedStringProperties_test.go | 2 +- .../gen/completionForMetaProperty_test.go | 2 +- .../gen/completionForStringLiteral4_test.go | 2 +- .../completionForStringLiteralExport_test.go | 2 +- .../completionForStringLiteralImport1_test.go | 2 +- .../completionForStringLiteralImport2_test.go | 2 +- ...orStringLiteralNonrelativeImport12_test.go | 2 +- ...orStringLiteralNonrelativeImport14_test.go | 2 +- ...orStringLiteralNonrelativeImport16_test.go | 2 +- ...orStringLiteralNonrelativeImport17_test.go | 2 +- ...orStringLiteralNonrelativeImport18_test.go | 2 +- ...ForStringLiteralNonrelativeImport2_test.go | 2 +- ...ForStringLiteralNonrelativeImport3_test.go | 2 +- ...ForStringLiteralNonrelativeImport4_test.go | 2 +- ...ForStringLiteralNonrelativeImport7_test.go | 2 +- ...ForStringLiteralNonrelativeImport8_test.go | 2 +- ...ForStringLiteralNonrelativeImport9_test.go | 2 +- ...ngLiteralNonrelativeImportTypings1_test.go | 2 +- ...ngLiteralNonrelativeImportTypings2_test.go | 2 +- ...lderLocations_VariableDeclarations_test.go | 2 +- .../gen/completionListForDerivedType1_test.go | 2 +- ...stForTransitivelyExportedMembers04_test.go | 2 +- .../completionListFunctionExpression_test.go | 2 +- ...nArrowFunctionInUnclosedCallSite01_test.go | 2 +- ...InClassExpressionWithTypeParameter_test.go | 2 +- .../completionListInClassStaticBlocks_test.go | 2 +- .../completionListInImportClause01_test.go | 2 +- .../completionListInImportClause05_test.go | 2 +- .../completionListInImportClause06_test.go | 2 +- ...nNamedClassExpressionWithShadowing_test.go | 2 +- ...mpletionListInNamedClassExpression_test.go | 2 +- ...tionListInNamedFunctionExpression1_test.go | 2 +- ...medFunctionExpressionWithShadowing_test.go | 2 +- ...etionListInNamedFunctionExpression_test.go | 2 +- .../tests/gen/completionListInScope_test.go | 2 +- ...pletionListInTemplateLiteralParts1_test.go | 2 +- ...ionListInUnclosedCommaExpression01_test.go | 2 +- ...ionListInUnclosedCommaExpression02_test.go | 2 +- ...completionListInUnclosedFunction08_test.go | 2 +- ...completionListInUnclosedFunction09_test.go | 2 +- ...tionListInUnclosedTaggedTemplate01_test.go | 2 +- ...tionListInUnclosedTaggedTemplate02_test.go | 2 +- ...completionListInUnclosedTemplate01_test.go | 2 +- ...completionListInUnclosedTemplate02_test.go | 2 +- .../completionListInvalidMemberNames2_test.go | 2 +- ...ListInvalidMemberNames_escapeQuote_test.go | 2 +- ...tInvalidMemberNames_startWithSpace_test.go | 2 +- .../completionListInvalidMemberNames_test.go | 2 +- ...MemberNames_withExistingIdentifier_test.go | 2 +- ...ectMembersInTypeLocationWithTypeof_test.go | 2 +- .../gen/completionListOfGenericSymbol_test.go | 2 +- .../tests/gen/completionListOnAliases_test.go | 2 +- ...nListStringParenthesizedExpression_test.go | 2 +- ...pletionListStringParenthesizedType_test.go | 2 +- ...tionListWithoutVariableinitializer_test.go | 2 +- ...teralTypeAsIndexedAccessTypeObject_test.go | 2 +- ...tionNoAutoInsertQuestionDotForThis_test.go | 2 +- ...oInsertQuestionDotForTypeParameter_test.go | 2 +- ...tQuestionDotWithUserPreferencesOff_test.go | 2 +- .../gen/completionOfAwaitPromise1_test.go | 2 +- .../gen/completionOfAwaitPromise2_test.go | 2 +- .../gen/completionOfAwaitPromise3_test.go | 2 +- .../gen/completionOfAwaitPromise5_test.go | 2 +- .../gen/completionOfAwaitPromise6_test.go | 2 +- .../gen/completionOfAwaitPromise7_test.go | 2 +- .../gen/completionOfInterfaceAndVar_test.go | 2 +- .../completionPreferredSuggestions1_test.go | 2 +- ...ithConditionalOperatorMissingColon_test.go | 2 +- .../tests/gen/completionsAfterJSDoc_test.go | 2 +- .../gen/completionsBeforeRestArg1_test.go | 2 +- .../completionsElementAccessNumeric_test.go | 2 +- .../tests/gen/completionsExportImport_test.go | 2 +- ...tionsGenericTypeWithMultipleBases1_test.go | 2 +- ...completionsImportOrExportSpecifier_test.go | 2 +- .../completionsInExport_moduleBlock_test.go | 2 +- .../tests/gen/completionsInExport_test.go | 2 +- .../tests/gen/completionsInRequire_test.go | 2 +- ...TagAttributesEmptyModuleSpecifier1_test.go | 2 +- ...TagAttributesErrorModuleSpecifier1_test.go | 2 +- ...SDocImportTagEmptyModuleSpecifier1_test.go | 2 +- .../gen/completionsJSDocNoCrash1_test.go | 2 +- .../gen/completionsJsdocTypeTagCast_test.go | 2 +- .../gen/completionsJsxAttribute2_test.go | 2 +- ...ompletionsJsxAttributeInitializer2_test.go | 2 +- ...alFromInferenceWithinInferredType3_test.go | 2 +- .../tests/gen/completionsLiterals_test.go | 2 +- .../completionsMergedDeclarations1_test.go | 2 +- .../tests/gen/completionsNewTarget_test.go | 2 +- .../gen/completionsOptionalMethod_test.go | 2 +- .../gen/completionsOverridingMethod10_test.go | 2 +- .../gen/completionsOverridingMethod11_test.go | 2 +- .../gen/completionsOverridingMethod14_test.go | 2 +- .../gen/completionsOverridingMethod17_test.go | 2 +- .../gen/completionsOverridingMethod1_test.go | 2 +- .../gen/completionsOverridingMethod3_test.go | 2 +- .../gen/completionsOverridingMethod4_test.go | 2 +- .../gen/completionsOverridingMethod9_test.go | 2 +- .../completionsOverridingMethodCrash1_test.go | 2 +- .../completionsOverridingProperties1_test.go | 2 +- .../gen/completionsPathsJsonModule_test.go | 2 +- ...completionsPathsRelativeJsonModule_test.go | 2 +- .../gen/completionsPaths_importType_test.go | 2 +- .../tests/gen/completionsPaths_kinds_test.go | 2 +- ...s_pathMapping_nonTrailingWildcard1_test.go | 2 +- ...sPaths_pathMapping_parentDirectory_test.go | 2 +- .../gen/completionsPaths_pathMapping_test.go | 2 +- .../gen/completionsRecommended_union_test.go | 2 +- ...completionsRedeclareModuleAsGlobal_test.go | 2 +- ...letionsStringsWithTriggerCharacter_test.go | 2 +- .../gen/completionsSymbolMembers_test.go | 2 +- .../gen/completionsTriggerCharacter_test.go | 2 +- .../tests/gen/completionsTuple_test.go | 2 +- .../gen/completionsUniqueSymbol1_test.go | 2 +- ...onstEnumQuickInfoAndCompletionList_test.go | 2 +- .../constQuickInfoAndCompletionList_test.go | 2 +- ...llyTypedFunctionExpressionGeneric1_test.go | 2 +- .../gen/doubleUnderscoreCompletions_test.go | 2 +- .../fourslash/tests/gen/editJsdocType_test.go | 2 +- .../tests/gen/exportDefaultClass_test.go | 2 +- .../tests/gen/exportDefaultFunction_test.go | 2 +- .../findAllReferencesDynamicImport1_test.go | 2 +- .../gen/findAllReferencesTripleSlash_test.go | 2 +- ...llReferencesUmdModuleAsGlobalConst_test.go | 2 +- .../gen/findAllRefsCommonJsRequire2_test.go | 2 +- .../gen/findAllRefsCommonJsRequire3_test.go | 2 +- .../gen/findAllRefsCommonJsRequire_test.go | 2 +- .../tests/gen/findAllRefsExportEquals_test.go | 2 +- .../gen/findAllRefsForDefaultExport03_test.go | 2 +- .../gen/findAllRefsModuleDotExports_test.go | 2 +- .../gen/findAllRefsReExport_broken_test.go | 2 +- ...indAllRefs_importType_typeofImport_test.go | 2 +- .../tests/gen/findReferencesAfterEdit_test.go | 2 +- ...encesBindingPatternInJsdocNoCrash1_test.go | 2 +- ...encesBindingPatternInJsdocNoCrash2_test.go | 2 +- .../genericCombinatorWithConstraints1_test.go | 2 +- .../tests/gen/genericCombinators3_test.go | 2 +- .../genericFunctionWithGenericParams1_test.go | 2 +- .../genericInterfacesWithConstraints1_test.go | 2 +- ...ricTypeWithMultipleBases1MultiFile_test.go | 2 +- .../gen/getJavaScriptCompletions10_test.go | 2 +- .../gen/getJavaScriptCompletions12_test.go | 2 +- .../gen/getJavaScriptCompletions13_test.go | 2 +- .../gen/getJavaScriptCompletions15_test.go | 2 +- .../gen/getJavaScriptCompletions18_test.go | 2 +- .../gen/getJavaScriptCompletions20_test.go | 2 +- .../gen/getJavaScriptCompletions8_test.go | 2 +- .../gen/getJavaScriptCompletions9_test.go | 2 +- .../getJavaScriptGlobalCompletions1_test.go | 2 +- .../tests/gen/getJavaScriptQuickInfo1_test.go | 2 +- .../tests/gen/getJavaScriptQuickInfo2_test.go | 2 +- .../tests/gen/getJavaScriptQuickInfo3_test.go | 2 +- .../tests/gen/getJavaScriptQuickInfo4_test.go | 2 +- .../tests/gen/getJavaScriptQuickInfo5_test.go | 2 +- .../tests/gen/getJavaScriptQuickInfo6_test.go | 2 +- .../tests/gen/getJavaScriptQuickInfo7_test.go | 2 +- .../tests/gen/getJavaScriptQuickInfo8_test.go | 2 +- ...etJavaScriptSyntacticDiagnostics24_test.go | 2 +- .../getQuickInfoForIntersectionTypes_test.go | 2 +- .../tests/gen/hoverOverComment_test.go | 2 +- ...ackageJsonExportsSpecifierEndsInTs_test.go | 2 +- ...nsPackageJsonExportsTrailingSlash1_test.go | 2 +- ...tionsPackageJsonImportsConditions1_test.go | 2 +- ...mpletionsPackageJsonImportsLength1_test.go | 2 +- ...mpletionsPackageJsonImportsLength2_test.go | 2 +- ...pletionsPackageJsonImportsPattern2_test.go | 2 +- ...kageJsonImportsPattern_capsInPath1_test.go | 2 +- ...kageJsonImportsPattern_capsInPath2_test.go | 2 +- ...onsPackageJsonImportsPattern_js_ts_test.go | 2 +- ...mpletionsPackageJsonImportsPattern_test.go | 2 +- ...etionsPackageJsonImportsPattern_ts_test.go | 2 +- ...onsPackageJsonImportsPattern_ts_ts_test.go | 2 +- ...rtCompletionsPackageJsonImports_ts_test.go | 2 +- .../gen/importCompletions_importsMap1_test.go | 2 +- .../gen/importCompletions_importsMap2_test.go | 2 +- .../gen/importCompletions_importsMap3_test.go | 2 +- .../gen/importCompletions_importsMap4_test.go | 2 +- .../gen/importCompletions_importsMap5_test.go | 2 +- .../gen/importStatementCompletions4_test.go | 2 +- ...tementCompletions_noPatternAmbient_test.go | 2 +- ...tatementCompletions_pnpmTransitive_test.go | 2 +- .../gen/instanceTypesForGenericType1_test.go | 2 +- .../tests/gen/javascriptModules20_test.go | 2 +- .../tests/gen/javascriptModules21_test.go | 2 +- .../gen/javascriptModulesTypeImport_test.go | 2 +- .../fourslash/tests/gen/jsDocAugments_test.go | 2 +- .../fourslash/tests/gen/jsDocExtends_test.go | 2 +- .../gen/jsDocFunctionSignatures10_test.go | 2 +- .../gen/jsDocFunctionSignatures12_test.go | 2 +- .../tests/gen/jsDocGenerics2_test.go | 2 +- .../tests/gen/jsDocInheritDoc_test.go | 2 +- .../gen/jsDocPropertyDescription10_test.go | 2 +- .../gen/jsDocPropertyDescription11_test.go | 2 +- .../gen/jsDocPropertyDescription12_test.go | 2 +- .../gen/jsDocPropertyDescription1_test.go | 2 +- .../gen/jsDocPropertyDescription2_test.go | 2 +- .../gen/jsDocPropertyDescription3_test.go | 2 +- .../jsdocTemplatePrototypeCompletions_test.go | 2 +- .../gen/jsdocThrowsTagCompletion_test.go | 2 +- ...eferencesOnRuntimeImportWithPaths1_test.go | 2 +- .../gen/letQuickInfoAndCompletionList_test.go | 2 +- .../tests/gen/localGetReferences_test.go | 2 +- .../gen/memberListOfExportedClass_test.go | 2 +- .../gen/memberListOnContextualThis_test.go | 2 +- ...oduleReexportedIntoGlobalQuickInfo_test.go | 2 +- internal/fourslash/tests/gen/ngProxy1_test.go | 2 +- .../tests/gen/noQuickInfoForLabel_test.go | 2 +- .../tests/gen/noQuickInfoInWhitespace_test.go | 2 +- .../gen/nodeModulesImportCompletions1_test.go | 2 +- .../tests/gen/numericPropertyNames_test.go | 2 +- .../tests/gen/overloadQuickInfo_test.go | 2 +- .../gen/parameterWithDestructuring_test.go | 2 +- .../parameterWithNestedDestructuring_test.go | 2 +- ...sAllowModuleAugmentationExtensions_test.go | 2 +- .../pathCompletionsAllowTsExtensions_test.go | 2 +- ...eJsonExportsBundlerNoNodeCondition_test.go | 2 +- ...PackageJsonExportsCustomConditions_test.go | 2 +- ...etionsPackageJsonExportsWildcard10_test.go | 2 +- ...letionsPackageJsonExportsWildcard3_test.go | 2 +- ...letionsPackageJsonExportsWildcard4_test.go | 2 +- ...letionsPackageJsonExportsWildcard5_test.go | 2 +- ...kInfoBindingPatternInJsdocNoCrash1_test.go | 2 +- .../tests/gen/quickInfoClassKeyword_test.go | 2 +- .../gen/quickInfoContextualTyping_test.go | 2 +- ...OptionalParameterFromIntersection1_test.go | 2 +- .../gen/quickInfoDisplayPartsIife_test.go | 2 +- .../tests/gen/quickInfoGenerics_test.go | 2 +- .../tests/gen/quickInfoGetterSetter_test.go | 2 +- .../gen/quickInfoImportNonunicodePath_test.go | 2 +- .../quickInfoInInvalidIndexSignature_test.go | 2 +- .../gen/quickInfoInJsdocInTsFile1_test.go | 2 +- .../gen/quickInfoInOptionalChain_test.go | 2 +- .../tests/gen/quickInfoInWithBlock_test.go | 2 +- .../tests/gen/quickInfoJSDocBackticks_test.go | 2 +- .../gen/quickInfoJSDocFunctionNew_test.go | 2 +- .../gen/quickInfoJSDocFunctionThis_test.go | 2 +- .../tests/gen/quickInfoJSExport_test.go | 2 +- ...quickInfoJsDocGetterSetterNoCrash1_test.go | 2 +- ...DocNonDiscriminatedUnionSharedProp_test.go | 2 +- .../gen/quickInfoMappedTypeMethods_test.go | 2 +- ...ckInfoMappedTypeRecursiveInference_test.go | 2 +- .../tests/gen/quickInfoMappedType_test.go | 2 +- .../gen/quickInfoModuleVariables_test.go | 2 +- ...quickInfoNarrowedTypeOfAliasSymbol_test.go | 2 +- .../gen/quickInfoNestedGenericCalls_test.go | 2 +- ...quickInfoOnArgumentsInsideFunction_test.go | 2 +- .../gen/quickInfoOnCatchVariable_test.go | 2 +- .../tests/gen/quickInfoOnClosingJsx_test.go | 2 +- ...nfoOnElementAccessInWriteLocation1_test.go | 2 +- ...nfoOnElementAccessInWriteLocation2_test.go | 2 +- ...nfoOnElementAccessInWriteLocation3_test.go | 2 +- ...nfoOnElementAccessInWriteLocation4_test.go | 2 +- ...nfoOnElementAccessInWriteLocation5_test.go | 2 +- .../tests/gen/quickInfoOnErrorTypes1_test.go | 2 +- ...opertyReturnedFromGenericFunction1_test.go | 2 +- ...opertyReturnedFromGenericFunction2_test.go | 2 +- ...opertyReturnedFromGenericFunction3_test.go | 2 +- ...quickInfoOnGenericWithConstraints1_test.go | 2 +- .../gen/quickInfoOnInternalAliases_test.go | 2 +- .../quickInfoOnMethodOfImportEquals_test.go | 2 +- .../tests/gen/quickInfoOnThis_test.go | 2 +- .../tests/gen/quickInfoOnUndefined_test.go | 2 +- .../quickInfoOnVarInArrowExpression_test.go | 2 +- ...CompletionsImportOrExportSpecifier_test.go | 2 +- .../gen/stringCompletionsVsEscaping_test.go | 2 +- .../tests/gen/tsxCompletion8_test.go | 2 +- 287 files changed, 286 insertions(+), 572 deletions(-) diff --git a/internal/fourslash/_scripts/failingTests.txt b/internal/fourslash/_scripts/failingTests.txt index e8055c04c5..d2eed637ec 100644 --- a/internal/fourslash/_scripts/failingTests.txt +++ b/internal/fourslash/_scripts/failingTests.txt @@ -1,44 +1,4 @@ -TestAliasMergingWithNamespace -TestAmbientShorthandGotoDefinition -TestArgumentsAreAvailableAfterEditsAtEndOfFunction -TestAugmentedTypesClass1 -TestAugmentedTypesClass3Fourslash -TestBestCommonTypeObjectLiterals -TestBestCommonTypeObjectLiterals1 -TestCodeCompletionEscaping -TestCommentsEnumsFourslash -TestCommentsLinePreservation -TestCommentsUnion -TestCompletionAfterQuestionDot -TestCompletionAutoInsertQuestionDot -TestCompletionCloneQuestionToken -TestCompletionEntryForArgumentConstrainedToString -TestCompletionEntryForArrayElementConstrainedToString -TestCompletionEntryForArrayElementConstrainedToString2 -TestCompletionEntryForClassMembers_StaticWhenBaseTypeIsNotResolved -TestCompletionEntryForUnionProperty -TestCompletionEntryForUnionProperty2 -TestCompletionExportFrom -TestCompletionForComputedStringProperties -TestCompletionForMetaProperty TestCompletionForStringLiteral -TestCompletionForStringLiteral4 -TestCompletionForStringLiteralExport -TestCompletionForStringLiteralImport1 -TestCompletionForStringLiteralImport2 -TestCompletionForStringLiteralNonrelativeImport12 -TestCompletionForStringLiteralNonrelativeImport14 -TestCompletionForStringLiteralNonrelativeImport16 -TestCompletionForStringLiteralNonrelativeImport17 -TestCompletionForStringLiteralNonrelativeImport18 -TestCompletionForStringLiteralNonrelativeImport2 -TestCompletionForStringLiteralNonrelativeImport3 -TestCompletionForStringLiteralNonrelativeImport4 -TestCompletionForStringLiteralNonrelativeImport7 -TestCompletionForStringLiteralNonrelativeImport8 -TestCompletionForStringLiteralNonrelativeImport9 -TestCompletionForStringLiteralNonrelativeImportTypings1 -TestCompletionForStringLiteralNonrelativeImportTypings2 TestCompletionForStringLiteralNonrelativeImportTypings3 TestCompletionForStringLiteralRelativeImport4 TestCompletionForStringLiteralRelativeImport6 @@ -67,189 +27,12 @@ TestCompletionInFunctionLikeBody_includesPrimitiveTypes TestCompletionInJsDoc TestCompletionInNamedImportLocation TestCompletionInUncheckedJSFile -TestCompletionListBuilderLocations_VariableDeclarations -TestCompletionListForDerivedType1 -TestCompletionListForTransitivelyExportedMembers04 -TestCompletionListFunctionExpression -TestCompletionListInArrowFunctionInUnclosedCallSite01 -TestCompletionListInClassExpressionWithTypeParameter -TestCompletionListInClassStaticBlocks -TestCompletionListInImportClause01 -TestCompletionListInImportClause05 -TestCompletionListInImportClause06 -TestCompletionListInNamedClassExpression -TestCompletionListInNamedClassExpressionWithShadowing -TestCompletionListInNamedFunctionExpression -TestCompletionListInNamedFunctionExpression1 -TestCompletionListInNamedFunctionExpressionWithShadowing -TestCompletionListInScope -TestCompletionListInTemplateLiteralParts1 -TestCompletionListInUnclosedCommaExpression01 -TestCompletionListInUnclosedCommaExpression02 -TestCompletionListInUnclosedFunction08 -TestCompletionListInUnclosedFunction09 -TestCompletionListInUnclosedTaggedTemplate01 -TestCompletionListInUnclosedTaggedTemplate02 -TestCompletionListInUnclosedTemplate01 -TestCompletionListInUnclosedTemplate02 -TestCompletionListInvalidMemberNames -TestCompletionListInvalidMemberNames2 -TestCompletionListInvalidMemberNames_escapeQuote -TestCompletionListInvalidMemberNames_startWithSpace -TestCompletionListInvalidMemberNames_withExistingIdentifier -TestCompletionListObjectMembersInTypeLocationWithTypeof -TestCompletionListOfGenericSymbol -TestCompletionListOnAliases -TestCompletionListStringParenthesizedExpression -TestCompletionListStringParenthesizedType -TestCompletionListWithoutVariableinitializer -TestCompletionListsStringLiteralTypeAsIndexedAccessTypeObject -TestCompletionNoAutoInsertQuestionDotForThis -TestCompletionNoAutoInsertQuestionDotForTypeParameter -TestCompletionNoAutoInsertQuestionDotWithUserPreferencesOff -TestCompletionOfAwaitPromise1 -TestCompletionOfAwaitPromise2 -TestCompletionOfAwaitPromise3 -TestCompletionOfAwaitPromise5 -TestCompletionOfAwaitPromise6 -TestCompletionOfAwaitPromise7 -TestCompletionOfInterfaceAndVar -TestCompletionPreferredSuggestions1 -TestCompletionWithConditionalOperatorMissingColon -TestCompletionsAfterJSDoc -TestCompletionsBeforeRestArg1 -TestCompletionsElementAccessNumeric -TestCompletionsExportImport -TestCompletionsGenericTypeWithMultipleBases1 -TestCompletionsImportOrExportSpecifier -TestCompletionsInExport -TestCompletionsInExport_moduleBlock -TestCompletionsInRequire -TestCompletionsJSDocImportTagAttributesEmptyModuleSpecifier1 -TestCompletionsJSDocImportTagAttributesErrorModuleSpecifier1 -TestCompletionsJSDocImportTagEmptyModuleSpecifier1 -TestCompletionsJSDocNoCrash1 -TestCompletionsJsdocTypeTagCast -TestCompletionsJsxAttribute2 -TestCompletionsJsxAttributeInitializer2 -TestCompletionsLiteralFromInferenceWithinInferredType3 -TestCompletionsLiterals -TestCompletionsMergedDeclarations1 -TestCompletionsNewTarget -TestCompletionsOptionalMethod -TestCompletionsOverridingMethod1 -TestCompletionsOverridingMethod10 -TestCompletionsOverridingMethod11 -TestCompletionsOverridingMethod14 -TestCompletionsOverridingMethod17 -TestCompletionsOverridingMethod3 -TestCompletionsOverridingMethod4 -TestCompletionsOverridingMethod9 -TestCompletionsOverridingMethodCrash1 -TestCompletionsOverridingProperties1 -TestCompletionsPathsJsonModule -TestCompletionsPathsRelativeJsonModule -TestCompletionsPaths_importType -TestCompletionsPaths_kinds -TestCompletionsPaths_pathMapping -TestCompletionsPaths_pathMapping_nonTrailingWildcard1 -TestCompletionsPaths_pathMapping_parentDirectory -TestCompletionsRecommended_union -TestCompletionsRedeclareModuleAsGlobal -TestCompletionsStringsWithTriggerCharacter -TestCompletionsSymbolMembers -TestCompletionsTriggerCharacter -TestCompletionsTuple -TestCompletionsUniqueSymbol1 -TestConstEnumQuickInfoAndCompletionList -TestConstQuickInfoAndCompletionList -TestContextuallyTypedFunctionExpressionGeneric1 -TestDoubleUnderscoreCompletions -TestEditJsdocType -TestExportDefaultClass -TestExportDefaultFunction -TestFindAllReferencesDynamicImport1 -TestFindAllReferencesTripleSlash -TestFindAllReferencesUmdModuleAsGlobalConst -TestFindAllRefsCommonJsRequire -TestFindAllRefsCommonJsRequire2 -TestFindAllRefsCommonJsRequire3 -TestFindAllRefsExportEquals -TestFindAllRefsForDefaultExport03 -TestFindAllRefsModuleDotExports -TestFindAllRefsReExport_broken -TestFindAllRefs_importType_typeofImport -TestFindReferencesAfterEdit -TestFindReferencesBindingPatternInJsdocNoCrash1 -TestFindReferencesBindingPatternInJsdocNoCrash2 -TestGenericCombinatorWithConstraints1 -TestGenericCombinators3 -TestGenericFunctionWithGenericParams1 -TestGenericInterfacesWithConstraints1 -TestGenericTypeWithMultipleBases1MultiFile -TestGetJavaScriptCompletions10 -TestGetJavaScriptCompletions12 -TestGetJavaScriptCompletions13 -TestGetJavaScriptCompletions15 -TestGetJavaScriptCompletions18 -TestGetJavaScriptCompletions20 -TestGetJavaScriptCompletions8 -TestGetJavaScriptCompletions9 -TestGetJavaScriptGlobalCompletions1 -TestGetJavaScriptQuickInfo1 -TestGetJavaScriptQuickInfo2 -TestGetJavaScriptQuickInfo3 -TestGetJavaScriptQuickInfo4 -TestGetJavaScriptQuickInfo5 -TestGetJavaScriptQuickInfo6 -TestGetJavaScriptQuickInfo7 -TestGetJavaScriptQuickInfo8 -TestGetJavaScriptSyntacticDiagnostics24 -TestGetQuickInfoForIntersectionTypes -TestHoverOverComment -TestImportCompletionsPackageJsonExportsSpecifierEndsInTs -TestImportCompletionsPackageJsonExportsTrailingSlash1 -TestImportCompletionsPackageJsonImportsConditions1 -TestImportCompletionsPackageJsonImportsLength1 -TestImportCompletionsPackageJsonImportsLength2 -TestImportCompletionsPackageJsonImportsPattern -TestImportCompletionsPackageJsonImportsPattern2 -TestImportCompletionsPackageJsonImportsPattern_capsInPath1 -TestImportCompletionsPackageJsonImportsPattern_capsInPath2 -TestImportCompletionsPackageJsonImportsPattern_js_ts -TestImportCompletionsPackageJsonImportsPattern_ts -TestImportCompletionsPackageJsonImportsPattern_ts_ts -TestImportCompletionsPackageJsonImports_ts -TestImportCompletions_importsMap1 -TestImportCompletions_importsMap2 -TestImportCompletions_importsMap3 -TestImportCompletions_importsMap4 -TestImportCompletions_importsMap5 -TestImportStatementCompletions4 -TestImportStatementCompletions_noPatternAmbient -TestImportStatementCompletions_pnpmTransitive TestIndexerReturnTypes1 TestIndirectClassInstantiation -TestInstanceTypesForGenericType1 -TestJavascriptModules20 -TestJavascriptModules21 -TestJavascriptModulesTypeImport -TestJsDocAugments -TestJsDocExtends -TestJsDocFunctionSignatures10 TestJsDocFunctionSignatures11 -TestJsDocFunctionSignatures12 TestJsDocFunctionSignatures13 TestJsDocFunctionSignatures7 TestJsDocFunctionSignatures8 -TestJsDocGenerics2 -TestJsDocInheritDoc -TestJsDocPropertyDescription1 -TestJsDocPropertyDescription10 -TestJsDocPropertyDescription11 -TestJsDocPropertyDescription12 -TestJsDocPropertyDescription2 -TestJsDocPropertyDescription3 TestJsDocPropertyDescription4 TestJsDocPropertyDescription5 TestJsDocPropertyDescription6 @@ -264,40 +47,16 @@ TestJsdocLink2 TestJsdocLink3 TestJsdocLink6 TestJsdocLink_findAllReferences1 -TestJsdocTemplatePrototypeCompletions -TestJsdocThrowsTagCompletion TestJsdocTypedefTag TestJsdocTypedefTag2 TestJsdocTypedefTagNamespace -TestJsxFindAllReferencesOnRuntimeImportWithPaths1 -TestLetQuickInfoAndCompletionList TestLocalFunction -TestLocalGetReferences TestMemberListInReopenedEnum TestMemberListInWithBlock -TestMemberListOfExportedClass -TestMemberListOnContextualThis -TestModuleReexportedIntoGlobalQuickInfo -TestNgProxy1 -TestNoQuickInfoForLabel -TestNoQuickInfoInWhitespace -TestNodeModulesImportCompletions1 -TestNumericPropertyNames -TestOverloadQuickInfo -TestParameterWithDestructuring -TestParameterWithNestedDestructuring -TestPathCompletionsAllowModuleAugmentationExtensions -TestPathCompletionsAllowTsExtensions -TestPathCompletionsPackageJsonExportsBundlerNoNodeCondition -TestPathCompletionsPackageJsonExportsCustomConditions TestPathCompletionsPackageJsonExportsWildcard1 -TestPathCompletionsPackageJsonExportsWildcard10 TestPathCompletionsPackageJsonExportsWildcard11 TestPathCompletionsPackageJsonExportsWildcard12 TestPathCompletionsPackageJsonExportsWildcard2 -TestPathCompletionsPackageJsonExportsWildcard3 -TestPathCompletionsPackageJsonExportsWildcard4 -TestPathCompletionsPackageJsonExportsWildcard5 TestPathCompletionsPackageJsonExportsWildcard6 TestPathCompletionsPackageJsonExportsWildcard7 TestPathCompletionsPackageJsonExportsWildcard8 @@ -337,11 +96,6 @@ TestPathCompletionsTypesVersionsWildcard6 TestProtoVarVisibleWithOuterScopeUnderscoreProto TestQuickInfoAlias TestQuickInfoAssertionNodeNotReusedWhenTypeNotEquivalent1 -TestQuickInfoBindingPatternInJsdocNoCrash1 -TestQuickInfoClassKeyword -TestQuickInfoContextualTyping -TestQuickInfoContextuallyTypedSignatureOptionalParameterFromIntersection1 -TestQuickInfoDisplayPartsIife TestQuickInfoElementAccessDeclaration TestQuickInfoForConstTypeReference TestQuickInfoForContextuallyTypedArrowFunctionInSuperCall @@ -362,43 +116,9 @@ TestQuickInfoForTypeofParameter TestQuickInfoForUMDModuleAlias TestQuickInfoFromContextualType TestQuickInfoFunctionKeyword -TestQuickInfoGenerics -TestQuickInfoGetterSetter -TestQuickInfoImportNonunicodePath -TestQuickInfoInInvalidIndexSignature -TestQuickInfoInJsdocInTsFile1 -TestQuickInfoInOptionalChain -TestQuickInfoInWithBlock -TestQuickInfoJSDocBackticks -TestQuickInfoJSDocFunctionNew -TestQuickInfoJSDocFunctionThis -TestQuickInfoJSExport -TestQuickInfoJsDocGetterSetterNoCrash1 -TestQuickInfoJsDocNonDiscriminatedUnionSharedProp TestQuickInfoJsPropertyAssignedAfterMethodDeclaration TestQuickInfoJsdocTypedefMissingType TestQuickInfoMappedSpreadTypes -TestQuickInfoMappedType -TestQuickInfoMappedTypeMethods -TestQuickInfoMappedTypeRecursiveInference -TestQuickInfoModuleVariables -TestQuickInfoNarrowedTypeOfAliasSymbol -TestQuickInfoNestedGenericCalls -TestQuickInfoOnArgumentsInsideFunction -TestQuickInfoOnCatchVariable -TestQuickInfoOnClosingJsx -TestQuickInfoOnElementAccessInWriteLocation1 -TestQuickInfoOnElementAccessInWriteLocation2 -TestQuickInfoOnElementAccessInWriteLocation3 -TestQuickInfoOnElementAccessInWriteLocation4 -TestQuickInfoOnElementAccessInWriteLocation5 -TestQuickInfoOnErrorTypes1 -TestQuickInfoOnFunctionPropertyReturnedFromGenericFunction1 -TestQuickInfoOnFunctionPropertyReturnedFromGenericFunction2 -TestQuickInfoOnFunctionPropertyReturnedFromGenericFunction3 -TestQuickInfoOnGenericWithConstraints1 -TestQuickInfoOnInternalAliases -TestQuickInfoOnMethodOfImportEquals TestQuickInfoOnNarrowedType TestQuickInfoOnNarrowedTypeInModule TestQuickInfoOnNewKeyword01 @@ -411,12 +131,9 @@ TestQuickInfoOnPropertyAccessInWriteLocation2 TestQuickInfoOnPropertyAccessInWriteLocation3 TestQuickInfoOnPropertyAccessInWriteLocation4 TestQuickInfoOnPropertyAccessInWriteLocation5 -TestQuickInfoOnThis TestQuickInfoOnThis2 TestQuickInfoOnThis3 TestQuickInfoOnThis4 -TestQuickInfoOnUndefined -TestQuickInfoOnVarInArrowExpression TestQuickInfoPrivateIdentifierInTypeReferenceNoCrash1 TestQuickInfoPropertyTag TestQuickInfoSignatureOptionalParameterFromUnion1 @@ -450,8 +167,6 @@ TestRegexDetection TestReverseMappedTypeQuickInfo TestSelfReferencedExternalModule TestSignatureHelpInferenceJsDocImportTag -TestStringCompletionsImportOrExportSpecifier -TestStringCompletionsVsEscaping TestSyntheticImportFromBabelGeneratedFile1 TestSyntheticImportFromBabelGeneratedFile2 TestThisBindingInLambda @@ -468,7 +183,6 @@ TestTsxCompletion12 TestTsxCompletion13 TestTsxCompletion14 TestTsxCompletion15 -TestTsxCompletion8 TestTsxCompletionNonTagLessThan TestTsxQuickInfo1 TestTsxQuickInfo4 diff --git a/internal/fourslash/tests/gen/aliasMergingWithNamespace_test.go b/internal/fourslash/tests/gen/aliasMergingWithNamespace_test.go index b38840791d..5196e20078 100644 --- a/internal/fourslash/tests/gen/aliasMergingWithNamespace_test.go +++ b/internal/fourslash/tests/gen/aliasMergingWithNamespace_test.go @@ -9,7 +9,7 @@ import ( func TestAliasMergingWithNamespace(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `namespace bar { } import bar = bar/**/;` diff --git a/internal/fourslash/tests/gen/ambientShorthandGotoDefinition_test.go b/internal/fourslash/tests/gen/ambientShorthandGotoDefinition_test.go index 7a10acdd9b..56409953ac 100644 --- a/internal/fourslash/tests/gen/ambientShorthandGotoDefinition_test.go +++ b/internal/fourslash/tests/gen/ambientShorthandGotoDefinition_test.go @@ -9,7 +9,7 @@ import ( func TestAmbientShorthandGotoDefinition(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: declarations.d.ts declare module /*module*/"jquery" diff --git a/internal/fourslash/tests/gen/argumentsAreAvailableAfterEditsAtEndOfFunction_test.go b/internal/fourslash/tests/gen/argumentsAreAvailableAfterEditsAtEndOfFunction_test.go index 175d760193..5caccd4e7c 100644 --- a/internal/fourslash/tests/gen/argumentsAreAvailableAfterEditsAtEndOfFunction_test.go +++ b/internal/fourslash/tests/gen/argumentsAreAvailableAfterEditsAtEndOfFunction_test.go @@ -11,7 +11,7 @@ import ( func TestArgumentsAreAvailableAfterEditsAtEndOfFunction(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module Test1 { class Person { diff --git a/internal/fourslash/tests/gen/augmentedTypesClass1_test.go b/internal/fourslash/tests/gen/augmentedTypesClass1_test.go index 11181c4d14..6ac3a9cf89 100644 --- a/internal/fourslash/tests/gen/augmentedTypesClass1_test.go +++ b/internal/fourslash/tests/gen/augmentedTypesClass1_test.go @@ -11,7 +11,7 @@ import ( func TestAugmentedTypesClass1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class c5b { public foo() { } } module c5b { export var y = 2; } // should be ok diff --git a/internal/fourslash/tests/gen/augmentedTypesClass3Fourslash_test.go b/internal/fourslash/tests/gen/augmentedTypesClass3Fourslash_test.go index b174b8a634..6a5909e70c 100644 --- a/internal/fourslash/tests/gen/augmentedTypesClass3Fourslash_test.go +++ b/internal/fourslash/tests/gen/augmentedTypesClass3Fourslash_test.go @@ -11,7 +11,7 @@ import ( func TestAugmentedTypesClass3Fourslash(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class c/*1*/5b { public foo() { } } namespace c/*2*/5b { export var y = 2; } // should be ok diff --git a/internal/fourslash/tests/gen/bestCommonTypeObjectLiterals1_test.go b/internal/fourslash/tests/gen/bestCommonTypeObjectLiterals1_test.go index 0a2e938eaf..c12fa7bd19 100644 --- a/internal/fourslash/tests/gen/bestCommonTypeObjectLiterals1_test.go +++ b/internal/fourslash/tests/gen/bestCommonTypeObjectLiterals1_test.go @@ -9,7 +9,7 @@ import ( func TestBestCommonTypeObjectLiterals1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var a = { name: 'bob', age: 18 }; var b = { name: 'jim', age: 20 }; diff --git a/internal/fourslash/tests/gen/bestCommonTypeObjectLiterals_test.go b/internal/fourslash/tests/gen/bestCommonTypeObjectLiterals_test.go index 1b31cbf1be..ebfd6f13ff 100644 --- a/internal/fourslash/tests/gen/bestCommonTypeObjectLiterals_test.go +++ b/internal/fourslash/tests/gen/bestCommonTypeObjectLiterals_test.go @@ -9,7 +9,7 @@ import ( func TestBestCommonTypeObjectLiterals(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var a = { name: 'bob', age: 18 }; var b = { name: 'jim', age: 20 }; diff --git a/internal/fourslash/tests/gen/codeCompletionEscaping_test.go b/internal/fourslash/tests/gen/codeCompletionEscaping_test.go index 5af9c9e0f3..fc672b718b 100644 --- a/internal/fourslash/tests/gen/codeCompletionEscaping_test.go +++ b/internal/fourslash/tests/gen/codeCompletionEscaping_test.go @@ -12,7 +12,7 @@ import ( func TestCodeCompletionEscaping(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.js // @allowJs: true diff --git a/internal/fourslash/tests/gen/commentsEnumsFourslash_test.go b/internal/fourslash/tests/gen/commentsEnumsFourslash_test.go index 9e26b5b83a..9bfacc1e56 100644 --- a/internal/fourslash/tests/gen/commentsEnumsFourslash_test.go +++ b/internal/fourslash/tests/gen/commentsEnumsFourslash_test.go @@ -11,7 +11,7 @@ import ( func TestCommentsEnumsFourslash(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** Enum of colors*/ enum /*1*/Colors { diff --git a/internal/fourslash/tests/gen/commentsLinePreservation_test.go b/internal/fourslash/tests/gen/commentsLinePreservation_test.go index ff30730fb5..8cd314bc79 100644 --- a/internal/fourslash/tests/gen/commentsLinePreservation_test.go +++ b/internal/fourslash/tests/gen/commentsLinePreservation_test.go @@ -9,7 +9,7 @@ import ( func TestCommentsLinePreservation(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** This is firstLine * This is second Line diff --git a/internal/fourslash/tests/gen/commentsUnion_test.go b/internal/fourslash/tests/gen/commentsUnion_test.go index 612e345184..cf7951ec82 100644 --- a/internal/fourslash/tests/gen/commentsUnion_test.go +++ b/internal/fourslash/tests/gen/commentsUnion_test.go @@ -9,7 +9,7 @@ import ( func TestCommentsUnion(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var a: Array | Array; a./*1*/length` diff --git a/internal/fourslash/tests/gen/completionAfterQuestionDot_test.go b/internal/fourslash/tests/gen/completionAfterQuestionDot_test.go index ed22ede6ad..829e2937a5 100644 --- a/internal/fourslash/tests/gen/completionAfterQuestionDot_test.go +++ b/internal/fourslash/tests/gen/completionAfterQuestionDot_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionAfterQuestionDot(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true class User { diff --git a/internal/fourslash/tests/gen/completionAutoInsertQuestionDot_test.go b/internal/fourslash/tests/gen/completionAutoInsertQuestionDot_test.go index a318eaffa3..1cdf7b3951 100644 --- a/internal/fourslash/tests/gen/completionAutoInsertQuestionDot_test.go +++ b/internal/fourslash/tests/gen/completionAutoInsertQuestionDot_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionAutoInsertQuestionDot(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface User { diff --git a/internal/fourslash/tests/gen/completionCloneQuestionToken_test.go b/internal/fourslash/tests/gen/completionCloneQuestionToken_test.go index a8146ff609..dd7336a414 100644 --- a/internal/fourslash/tests/gen/completionCloneQuestionToken_test.go +++ b/internal/fourslash/tests/gen/completionCloneQuestionToken_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionCloneQuestionToken(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /file2.ts type TCallback = (options: T) => any; diff --git a/internal/fourslash/tests/gen/completionEntryForArgumentConstrainedToString_test.go b/internal/fourslash/tests/gen/completionEntryForArgumentConstrainedToString_test.go index 59c64874e6..c846508d80 100644 --- a/internal/fourslash/tests/gen/completionEntryForArgumentConstrainedToString_test.go +++ b/internal/fourslash/tests/gen/completionEntryForArgumentConstrainedToString_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionEntryForArgumentConstrainedToString(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function test

(p: P): void; diff --git a/internal/fourslash/tests/gen/completionEntryForArrayElementConstrainedToString2_test.go b/internal/fourslash/tests/gen/completionEntryForArrayElementConstrainedToString2_test.go index 81cb4b2703..a38763f77d 100644 --- a/internal/fourslash/tests/gen/completionEntryForArrayElementConstrainedToString2_test.go +++ b/internal/fourslash/tests/gen/completionEntryForArrayElementConstrainedToString2_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionEntryForArrayElementConstrainedToString2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function test(a: { foo: T[] }): void diff --git a/internal/fourslash/tests/gen/completionEntryForArrayElementConstrainedToString_test.go b/internal/fourslash/tests/gen/completionEntryForArrayElementConstrainedToString_test.go index 9af26b073c..48dc4e5f44 100644 --- a/internal/fourslash/tests/gen/completionEntryForArrayElementConstrainedToString_test.go +++ b/internal/fourslash/tests/gen/completionEntryForArrayElementConstrainedToString_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionEntryForArrayElementConstrainedToString(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function test(a: { foo: T[] }): void diff --git a/internal/fourslash/tests/gen/completionEntryForClassMembers_StaticWhenBaseTypeIsNotResolved_test.go b/internal/fourslash/tests/gen/completionEntryForClassMembers_StaticWhenBaseTypeIsNotResolved_test.go index 3f67b274df..676b002578 100644 --- a/internal/fourslash/tests/gen/completionEntryForClassMembers_StaticWhenBaseTypeIsNotResolved_test.go +++ b/internal/fourslash/tests/gen/completionEntryForClassMembers_StaticWhenBaseTypeIsNotResolved_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionEntryForClassMembers_StaticWhenBaseTypeIsNotResolved(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /node_modules/@types/react/index.d.ts export = React; diff --git a/internal/fourslash/tests/gen/completionEntryForUnionProperty2_test.go b/internal/fourslash/tests/gen/completionEntryForUnionProperty2_test.go index adb552f595..f4975f24da 100644 --- a/internal/fourslash/tests/gen/completionEntryForUnionProperty2_test.go +++ b/internal/fourslash/tests/gen/completionEntryForUnionProperty2_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionEntryForUnionProperty2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface One { commonProperty: string; diff --git a/internal/fourslash/tests/gen/completionEntryForUnionProperty_test.go b/internal/fourslash/tests/gen/completionEntryForUnionProperty_test.go index a6a96c05d9..53750901f4 100644 --- a/internal/fourslash/tests/gen/completionEntryForUnionProperty_test.go +++ b/internal/fourslash/tests/gen/completionEntryForUnionProperty_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionEntryForUnionProperty(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface One { commonProperty: number; diff --git a/internal/fourslash/tests/gen/completionExportFrom_test.go b/internal/fourslash/tests/gen/completionExportFrom_test.go index c19346f4cf..e648a2b101 100644 --- a/internal/fourslash/tests/gen/completionExportFrom_test.go +++ b/internal/fourslash/tests/gen/completionExportFrom_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionExportFrom(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export * /*1*/; export {} /*2*/;` diff --git a/internal/fourslash/tests/gen/completionForComputedStringProperties_test.go b/internal/fourslash/tests/gen/completionForComputedStringProperties_test.go index 42f572e321..ae7be824d2 100644 --- a/internal/fourslash/tests/gen/completionForComputedStringProperties_test.go +++ b/internal/fourslash/tests/gen/completionForComputedStringProperties_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForComputedStringProperties(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const p2 = "p2"; interface A { diff --git a/internal/fourslash/tests/gen/completionForMetaProperty_test.go b/internal/fourslash/tests/gen/completionForMetaProperty_test.go index 857612b30c..b3e7b72d6e 100644 --- a/internal/fourslash/tests/gen/completionForMetaProperty_test.go +++ b/internal/fourslash/tests/gen/completionForMetaProperty_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForMetaProperty(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `import./*1*/; new./*2*/; diff --git a/internal/fourslash/tests/gen/completionForStringLiteral4_test.go b/internal/fourslash/tests/gen/completionForStringLiteral4_test.go index 075993c1af..fa63e76289 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteral4_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteral4_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForStringLiteral4(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: in.js diff --git a/internal/fourslash/tests/gen/completionForStringLiteralExport_test.go b/internal/fourslash/tests/gen/completionForStringLiteralExport_test.go index 6e4b706f39..c1095459ec 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralExport_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralExport_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForStringLiteralExport(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @typeRoots: my_typings // @Filename: test.ts diff --git a/internal/fourslash/tests/gen/completionForStringLiteralImport1_test.go b/internal/fourslash/tests/gen/completionForStringLiteralImport1_test.go index 2a26617b2b..9114e9d083 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralImport1_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralImport1_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForStringLiteralImport1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @typeRoots: my_typings // @Filename: test.ts diff --git a/internal/fourslash/tests/gen/completionForStringLiteralImport2_test.go b/internal/fourslash/tests/gen/completionForStringLiteralImport2_test.go index 6405413f45..50819814e9 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralImport2_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralImport2_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralImport2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @typeRoots: my_typings // @Filename: test.ts diff --git a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport12_test.go b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport12_test.go index 5306b01f1f..d7d84bcb37 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport12_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport12_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralNonrelativeImport12(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tests/test0.ts import * as foo1 from "m/*import_as0*/ diff --git a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport14_test.go b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport14_test.go index 63431a754e..5bb95c0151 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport14_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport14_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForStringLiteralNonrelativeImport14(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tsconfig.json { diff --git a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport16_test.go b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport16_test.go index be55991de2..78560319ae 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport16_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport16_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForStringLiteralNonrelativeImport16(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tsconfig.json { diff --git a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport17_test.go b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport17_test.go index 6654e0fbf7..1efae761d6 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport17_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport17_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralNonrelativeImport17(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tsconfig.json { diff --git a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport18_test.go b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport18_test.go index ed0b8172af..61288e675d 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport18_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport18_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralNonrelativeImport18(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tsconfig.json { diff --git a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport2_test.go b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport2_test.go index 532fa9162f..7997f5cd5a 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport2_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport2_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralNonrelativeImport2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tests/test0.ts import * as foo1 from "fake-module//*import_as0*/ diff --git a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport3_test.go b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport3_test.go index fff8c8351e..0d47ae5adc 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport3_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport3_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralNonrelativeImport3(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: tests/test0.ts diff --git a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport4_test.go b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport4_test.go index e93de4e785..a86bfeed94 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport4_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport4_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralNonrelativeImport4(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: dir1/dir2/dir3/dir4/test0.ts import * as foo1 from "f/*import_as0*/ diff --git a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport7_test.go b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport7_test.go index 59b0088b59..5c6740e18f 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport7_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport7_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralNonrelativeImport7(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @baseUrl: tests/cases/fourslash/modules // @Filename: tests/test0.ts diff --git a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport8_test.go b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport8_test.go index 33b9c43475..f504938418 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport8_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport8_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralNonrelativeImport8(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tsconfig.json { diff --git a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport9_test.go b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport9_test.go index 37ce385670..b065e93089 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport9_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport9_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralNonrelativeImport9(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tsconfig.json { diff --git a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings1_test.go b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings1_test.go index 8fb1a2e5e2..908744482b 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings1_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings1_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralNonrelativeImportTypings1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @typeRoots: my_typings,my_other_typings // @Filename: tests/test0.ts diff --git a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings2_test.go b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings2_test.go index c223cdcb2d..212ba99e46 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings2_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings2_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralNonrelativeImportTypings2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @typeRoots: my_typings,my_other_typings // @types: module-x,module-z diff --git a/internal/fourslash/tests/gen/completionListBuilderLocations_VariableDeclarations_test.go b/internal/fourslash/tests/gen/completionListBuilderLocations_VariableDeclarations_test.go index 5f1b2f3b13..751f782ea8 100644 --- a/internal/fourslash/tests/gen/completionListBuilderLocations_VariableDeclarations_test.go +++ b/internal/fourslash/tests/gen/completionListBuilderLocations_VariableDeclarations_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListBuilderLocations_VariableDeclarations(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = a/*var1*/ var x = (b/*var2*/ diff --git a/internal/fourslash/tests/gen/completionListForDerivedType1_test.go b/internal/fourslash/tests/gen/completionListForDerivedType1_test.go index 3121c2f843..f0d3102487 100644 --- a/internal/fourslash/tests/gen/completionListForDerivedType1_test.go +++ b/internal/fourslash/tests/gen/completionListForDerivedType1_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionListForDerivedType1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IFoo { bar(): IFoo; diff --git a/internal/fourslash/tests/gen/completionListForTransitivelyExportedMembers04_test.go b/internal/fourslash/tests/gen/completionListForTransitivelyExportedMembers04_test.go index 0061cd86a6..5c1dab3bbc 100644 --- a/internal/fourslash/tests/gen/completionListForTransitivelyExportedMembers04_test.go +++ b/internal/fourslash/tests/gen/completionListForTransitivelyExportedMembers04_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListForTransitivelyExportedMembers04(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @ModuleResolution: classic // @Filename: A.ts diff --git a/internal/fourslash/tests/gen/completionListFunctionExpression_test.go b/internal/fourslash/tests/gen/completionListFunctionExpression_test.go index 3c565122dc..42eab47d18 100644 --- a/internal/fourslash/tests/gen/completionListFunctionExpression_test.go +++ b/internal/fourslash/tests/gen/completionListFunctionExpression_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListFunctionExpression(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class DataHandler { dataArray: Uint8Array; diff --git a/internal/fourslash/tests/gen/completionListInArrowFunctionInUnclosedCallSite01_test.go b/internal/fourslash/tests/gen/completionListInArrowFunctionInUnclosedCallSite01_test.go index eeb8aadebc..a44baf4fab 100644 --- a/internal/fourslash/tests/gen/completionListInArrowFunctionInUnclosedCallSite01_test.go +++ b/internal/fourslash/tests/gen/completionListInArrowFunctionInUnclosedCallSite01_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListInArrowFunctionInUnclosedCallSite01(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function foo(...params: any[]): any; function getAllFiles(rootFileNames: string[]) { diff --git a/internal/fourslash/tests/gen/completionListInClassExpressionWithTypeParameter_test.go b/internal/fourslash/tests/gen/completionListInClassExpressionWithTypeParameter_test.go index 619b5dac68..4ba5290dc1 100644 --- a/internal/fourslash/tests/gen/completionListInClassExpressionWithTypeParameter_test.go +++ b/internal/fourslash/tests/gen/completionListInClassExpressionWithTypeParameter_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionListInClassExpressionWithTypeParameter(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = class myClass { getClassName (){ diff --git a/internal/fourslash/tests/gen/completionListInClassStaticBlocks_test.go b/internal/fourslash/tests/gen/completionListInClassStaticBlocks_test.go index 75d647795c..c748898b06 100644 --- a/internal/fourslash/tests/gen/completionListInClassStaticBlocks_test.go +++ b/internal/fourslash/tests/gen/completionListInClassStaticBlocks_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionListInClassStaticBlocks(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @target: esnext class Foo { diff --git a/internal/fourslash/tests/gen/completionListInImportClause01_test.go b/internal/fourslash/tests/gen/completionListInImportClause01_test.go index baf14e33e1..f56e53afe9 100644 --- a/internal/fourslash/tests/gen/completionListInImportClause01_test.go +++ b/internal/fourslash/tests/gen/completionListInImportClause01_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListInImportClause01(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @ModuleResolution: classic // @Filename: m1.ts diff --git a/internal/fourslash/tests/gen/completionListInImportClause05_test.go b/internal/fourslash/tests/gen/completionListInImportClause05_test.go index 554e700ac4..8ceacb9b04 100644 --- a/internal/fourslash/tests/gen/completionListInImportClause05_test.go +++ b/internal/fourslash/tests/gen/completionListInImportClause05_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListInImportClause05(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: app.ts import * as A from "/*1*/"; diff --git a/internal/fourslash/tests/gen/completionListInImportClause06_test.go b/internal/fourslash/tests/gen/completionListInImportClause06_test.go index 90ba66acd1..13f41c7dab 100644 --- a/internal/fourslash/tests/gen/completionListInImportClause06_test.go +++ b/internal/fourslash/tests/gen/completionListInImportClause06_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListInImportClause06(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @typeRoots: T1,T2 // @Filename: app.ts diff --git a/internal/fourslash/tests/gen/completionListInNamedClassExpressionWithShadowing_test.go b/internal/fourslash/tests/gen/completionListInNamedClassExpressionWithShadowing_test.go index 2cea8c1ae6..70a4440a57 100644 --- a/internal/fourslash/tests/gen/completionListInNamedClassExpressionWithShadowing_test.go +++ b/internal/fourslash/tests/gen/completionListInNamedClassExpressionWithShadowing_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionListInNamedClassExpressionWithShadowing(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class myClass { /*0*/ } /*1*/ diff --git a/internal/fourslash/tests/gen/completionListInNamedClassExpression_test.go b/internal/fourslash/tests/gen/completionListInNamedClassExpression_test.go index c8d4be0a1b..dc2381a2ad 100644 --- a/internal/fourslash/tests/gen/completionListInNamedClassExpression_test.go +++ b/internal/fourslash/tests/gen/completionListInNamedClassExpression_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionListInNamedClassExpression(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = class myClass { getClassName (){ diff --git a/internal/fourslash/tests/gen/completionListInNamedFunctionExpression1_test.go b/internal/fourslash/tests/gen/completionListInNamedFunctionExpression1_test.go index 701974de72..69d414ec92 100644 --- a/internal/fourslash/tests/gen/completionListInNamedFunctionExpression1_test.go +++ b/internal/fourslash/tests/gen/completionListInNamedFunctionExpression1_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionListInNamedFunctionExpression1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = function foo() { /*1*/ diff --git a/internal/fourslash/tests/gen/completionListInNamedFunctionExpressionWithShadowing_test.go b/internal/fourslash/tests/gen/completionListInNamedFunctionExpressionWithShadowing_test.go index f0aaba3c92..4039030b84 100644 --- a/internal/fourslash/tests/gen/completionListInNamedFunctionExpressionWithShadowing_test.go +++ b/internal/fourslash/tests/gen/completionListInNamedFunctionExpressionWithShadowing_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionListInNamedFunctionExpressionWithShadowing(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo() {} /*0*/ diff --git a/internal/fourslash/tests/gen/completionListInNamedFunctionExpression_test.go b/internal/fourslash/tests/gen/completionListInNamedFunctionExpression_test.go index 73473b3924..f65297dc34 100644 --- a/internal/fourslash/tests/gen/completionListInNamedFunctionExpression_test.go +++ b/internal/fourslash/tests/gen/completionListInNamedFunctionExpression_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListInNamedFunctionExpression(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(a: number): string { /*insideFunctionDeclaration*/ diff --git a/internal/fourslash/tests/gen/completionListInScope_test.go b/internal/fourslash/tests/gen/completionListInScope_test.go index c52b01c29e..dc12fdae58 100644 --- a/internal/fourslash/tests/gen/completionListInScope_test.go +++ b/internal/fourslash/tests/gen/completionListInScope_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListInScope(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module TestModule { var localVariable = ""; diff --git a/internal/fourslash/tests/gen/completionListInTemplateLiteralParts1_test.go b/internal/fourslash/tests/gen/completionListInTemplateLiteralParts1_test.go index 2485fe2d8a..1197c09688 100644 --- a/internal/fourslash/tests/gen/completionListInTemplateLiteralParts1_test.go +++ b/internal/fourslash/tests/gen/completionListInTemplateLiteralParts1_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListInTemplateLiteralParts1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*0*/` + "`" + ` $ { ${/*1*/ 10/*2*/ + 1.1/*3*/ /*4*/} 12312` + "`" + `/*5*/ diff --git a/internal/fourslash/tests/gen/completionListInUnclosedCommaExpression01_test.go b/internal/fourslash/tests/gen/completionListInUnclosedCommaExpression01_test.go index 66c9e81b95..ca9d80adc3 100644 --- a/internal/fourslash/tests/gen/completionListInUnclosedCommaExpression01_test.go +++ b/internal/fourslash/tests/gen/completionListInUnclosedCommaExpression01_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListInUnclosedCommaExpression01(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// should NOT see a and b foo((a, b) => a,/*1*/` diff --git a/internal/fourslash/tests/gen/completionListInUnclosedCommaExpression02_test.go b/internal/fourslash/tests/gen/completionListInUnclosedCommaExpression02_test.go index fbcba2df24..cf18d935f0 100644 --- a/internal/fourslash/tests/gen/completionListInUnclosedCommaExpression02_test.go +++ b/internal/fourslash/tests/gen/completionListInUnclosedCommaExpression02_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListInUnclosedCommaExpression02(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// should NOT see a and b foo((a, b) => (a,/*1*/` diff --git a/internal/fourslash/tests/gen/completionListInUnclosedFunction08_test.go b/internal/fourslash/tests/gen/completionListInUnclosedFunction08_test.go index c90a707f25..d957f3f625 100644 --- a/internal/fourslash/tests/gen/completionListInUnclosedFunction08_test.go +++ b/internal/fourslash/tests/gen/completionListInUnclosedFunction08_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListInUnclosedFunction08(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(x: string, y: number, z: boolean) { function bar(a: number, b: string = "hello", c: typeof x = "hello") { diff --git a/internal/fourslash/tests/gen/completionListInUnclosedFunction09_test.go b/internal/fourslash/tests/gen/completionListInUnclosedFunction09_test.go index 04908afb6e..06d9dcdd60 100644 --- a/internal/fourslash/tests/gen/completionListInUnclosedFunction09_test.go +++ b/internal/fourslash/tests/gen/completionListInUnclosedFunction09_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListInUnclosedFunction09(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(x: string, y: number, z: boolean) { function bar(a: number, b: string = "hello", c: typeof x = "hello") { diff --git a/internal/fourslash/tests/gen/completionListInUnclosedTaggedTemplate01_test.go b/internal/fourslash/tests/gen/completionListInUnclosedTaggedTemplate01_test.go index 276d4df5dc..62cc4cdf06 100644 --- a/internal/fourslash/tests/gen/completionListInUnclosedTaggedTemplate01_test.go +++ b/internal/fourslash/tests/gen/completionListInUnclosedTaggedTemplate01_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListInUnclosedTaggedTemplate01(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x; var y = (p) => x ` + "`" + `abc ${ /*1*/` diff --git a/internal/fourslash/tests/gen/completionListInUnclosedTaggedTemplate02_test.go b/internal/fourslash/tests/gen/completionListInUnclosedTaggedTemplate02_test.go index f2301e6af8..87603d5aac 100644 --- a/internal/fourslash/tests/gen/completionListInUnclosedTaggedTemplate02_test.go +++ b/internal/fourslash/tests/gen/completionListInUnclosedTaggedTemplate02_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListInUnclosedTaggedTemplate02(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x; var y = (p) => x ` + "`" + `abc ${ 123 } ${ /*1*/` diff --git a/internal/fourslash/tests/gen/completionListInUnclosedTemplate01_test.go b/internal/fourslash/tests/gen/completionListInUnclosedTemplate01_test.go index dd0b8e9cd9..b24e0453a2 100644 --- a/internal/fourslash/tests/gen/completionListInUnclosedTemplate01_test.go +++ b/internal/fourslash/tests/gen/completionListInUnclosedTemplate01_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListInUnclosedTemplate01(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x; var y = (p) => ` + "`" + `abc ${ /*1*/` diff --git a/internal/fourslash/tests/gen/completionListInUnclosedTemplate02_test.go b/internal/fourslash/tests/gen/completionListInUnclosedTemplate02_test.go index e5126e31e2..6e8c260287 100644 --- a/internal/fourslash/tests/gen/completionListInUnclosedTemplate02_test.go +++ b/internal/fourslash/tests/gen/completionListInUnclosedTemplate02_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListInUnclosedTemplate02(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x; var y = (p) => ` + "`" + `abc ${ 123 } ${ /*1*/` diff --git a/internal/fourslash/tests/gen/completionListInvalidMemberNames2_test.go b/internal/fourslash/tests/gen/completionListInvalidMemberNames2_test.go index 1ed896368a..191a5f879a 100644 --- a/internal/fourslash/tests/gen/completionListInvalidMemberNames2_test.go +++ b/internal/fourslash/tests/gen/completionListInvalidMemberNames2_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListInvalidMemberNames2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare var Symbol: SymbolConstructor; interface SymbolConstructor { diff --git a/internal/fourslash/tests/gen/completionListInvalidMemberNames_escapeQuote_test.go b/internal/fourslash/tests/gen/completionListInvalidMemberNames_escapeQuote_test.go index b9708d5679..13c582caec 100644 --- a/internal/fourslash/tests/gen/completionListInvalidMemberNames_escapeQuote_test.go +++ b/internal/fourslash/tests/gen/completionListInvalidMemberNames_escapeQuote_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionListInvalidMemberNames_escapeQuote(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const x: { "\"'": 0 }; x[|./**/|];` diff --git a/internal/fourslash/tests/gen/completionListInvalidMemberNames_startWithSpace_test.go b/internal/fourslash/tests/gen/completionListInvalidMemberNames_startWithSpace_test.go index eab3116dfb..42e2eca043 100644 --- a/internal/fourslash/tests/gen/completionListInvalidMemberNames_startWithSpace_test.go +++ b/internal/fourslash/tests/gen/completionListInvalidMemberNames_startWithSpace_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionListInvalidMemberNames_startWithSpace(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const x: { " foo": 0, "foo ": 1 }; x[|./**/|];` diff --git a/internal/fourslash/tests/gen/completionListInvalidMemberNames_test.go b/internal/fourslash/tests/gen/completionListInvalidMemberNames_test.go index 4c46aa45a3..8615992c5b 100644 --- a/internal/fourslash/tests/gen/completionListInvalidMemberNames_test.go +++ b/internal/fourslash/tests/gen/completionListInvalidMemberNames_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionListInvalidMemberNames(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = { "foo ": "space in the name", diff --git a/internal/fourslash/tests/gen/completionListInvalidMemberNames_withExistingIdentifier_test.go b/internal/fourslash/tests/gen/completionListInvalidMemberNames_withExistingIdentifier_test.go index be73e2cb32..acd98b9f72 100644 --- a/internal/fourslash/tests/gen/completionListInvalidMemberNames_withExistingIdentifier_test.go +++ b/internal/fourslash/tests/gen/completionListInvalidMemberNames_withExistingIdentifier_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionListInvalidMemberNames_withExistingIdentifier(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const x: { "foo ": "space in the name", }; x[|.fo/*0*/|]; diff --git a/internal/fourslash/tests/gen/completionListObjectMembersInTypeLocationWithTypeof_test.go b/internal/fourslash/tests/gen/completionListObjectMembersInTypeLocationWithTypeof_test.go index 18576a0bff..7c1baea148 100644 --- a/internal/fourslash/tests/gen/completionListObjectMembersInTypeLocationWithTypeof_test.go +++ b/internal/fourslash/tests/gen/completionListObjectMembersInTypeLocationWithTypeof_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionListObjectMembersInTypeLocationWithTypeof(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true const languageService = { getCompletions() {} } diff --git a/internal/fourslash/tests/gen/completionListOfGenericSymbol_test.go b/internal/fourslash/tests/gen/completionListOfGenericSymbol_test.go index a8ac7e8143..444d2214e1 100644 --- a/internal/fourslash/tests/gen/completionListOfGenericSymbol_test.go +++ b/internal/fourslash/tests/gen/completionListOfGenericSymbol_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionListOfGenericSymbol(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var a = [1,2,3]; a./**/` diff --git a/internal/fourslash/tests/gen/completionListOnAliases_test.go b/internal/fourslash/tests/gen/completionListOnAliases_test.go index dfe3be4531..6d80024506 100644 --- a/internal/fourslash/tests/gen/completionListOnAliases_test.go +++ b/internal/fourslash/tests/gen/completionListOnAliases_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionListOnAliases(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module M { export var value; diff --git a/internal/fourslash/tests/gen/completionListStringParenthesizedExpression_test.go b/internal/fourslash/tests/gen/completionListStringParenthesizedExpression_test.go index 6139fb09d6..42d71b009b 100644 --- a/internal/fourslash/tests/gen/completionListStringParenthesizedExpression_test.go +++ b/internal/fourslash/tests/gen/completionListStringParenthesizedExpression_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionListStringParenthesizedExpression(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const foo = { a: 1, diff --git a/internal/fourslash/tests/gen/completionListStringParenthesizedType_test.go b/internal/fourslash/tests/gen/completionListStringParenthesizedType_test.go index b176ec5cad..edc59246d2 100644 --- a/internal/fourslash/tests/gen/completionListStringParenthesizedType_test.go +++ b/internal/fourslash/tests/gen/completionListStringParenthesizedType_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionListStringParenthesizedType(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type T1 = "a" | "b" | "c"; type T2 = {}; diff --git a/internal/fourslash/tests/gen/completionListWithoutVariableinitializer_test.go b/internal/fourslash/tests/gen/completionListWithoutVariableinitializer_test.go index 777d57c5dc..20454d4f1b 100644 --- a/internal/fourslash/tests/gen/completionListWithoutVariableinitializer_test.go +++ b/internal/fourslash/tests/gen/completionListWithoutVariableinitializer_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListWithoutVariableinitializer(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const a = a/*1*/; const b = a && b/*2*/; diff --git a/internal/fourslash/tests/gen/completionListsStringLiteralTypeAsIndexedAccessTypeObject_test.go b/internal/fourslash/tests/gen/completionListsStringLiteralTypeAsIndexedAccessTypeObject_test.go index 747e2fa254..dbc8799d40 100644 --- a/internal/fourslash/tests/gen/completionListsStringLiteralTypeAsIndexedAccessTypeObject_test.go +++ b/internal/fourslash/tests/gen/completionListsStringLiteralTypeAsIndexedAccessTypeObject_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionListsStringLiteralTypeAsIndexedAccessTypeObject(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let firstCase: "a/*case_1*/"["foo"] let secondCase: "b/*case_2*/"["bar"] diff --git a/internal/fourslash/tests/gen/completionNoAutoInsertQuestionDotForThis_test.go b/internal/fourslash/tests/gen/completionNoAutoInsertQuestionDotForThis_test.go index 6b9a72d98f..60bbb19607 100644 --- a/internal/fourslash/tests/gen/completionNoAutoInsertQuestionDotForThis_test.go +++ b/internal/fourslash/tests/gen/completionNoAutoInsertQuestionDotForThis_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionNoAutoInsertQuestionDotForThis(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true class Address { diff --git a/internal/fourslash/tests/gen/completionNoAutoInsertQuestionDotForTypeParameter_test.go b/internal/fourslash/tests/gen/completionNoAutoInsertQuestionDotForTypeParameter_test.go index b1135437c6..4e1ef0b09a 100644 --- a/internal/fourslash/tests/gen/completionNoAutoInsertQuestionDotForTypeParameter_test.go +++ b/internal/fourslash/tests/gen/completionNoAutoInsertQuestionDotForTypeParameter_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionNoAutoInsertQuestionDotForTypeParameter(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface Address { diff --git a/internal/fourslash/tests/gen/completionNoAutoInsertQuestionDotWithUserPreferencesOff_test.go b/internal/fourslash/tests/gen/completionNoAutoInsertQuestionDotWithUserPreferencesOff_test.go index bb9c620fe9..12df7223ba 100644 --- a/internal/fourslash/tests/gen/completionNoAutoInsertQuestionDotWithUserPreferencesOff_test.go +++ b/internal/fourslash/tests/gen/completionNoAutoInsertQuestionDotWithUserPreferencesOff_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionNoAutoInsertQuestionDotWithUserPreferencesOff(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface User { diff --git a/internal/fourslash/tests/gen/completionOfAwaitPromise1_test.go b/internal/fourslash/tests/gen/completionOfAwaitPromise1_test.go index d361a19031..894cbc3434 100644 --- a/internal/fourslash/tests/gen/completionOfAwaitPromise1_test.go +++ b/internal/fourslash/tests/gen/completionOfAwaitPromise1_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionOfAwaitPromise1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `async function foo(x: Promise) { [|x./**/|] diff --git a/internal/fourslash/tests/gen/completionOfAwaitPromise2_test.go b/internal/fourslash/tests/gen/completionOfAwaitPromise2_test.go index 07018c544f..d9966d1d85 100644 --- a/internal/fourslash/tests/gen/completionOfAwaitPromise2_test.go +++ b/internal/fourslash/tests/gen/completionOfAwaitPromise2_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionOfAwaitPromise2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { foo: string } async function foo(x: Promise) { diff --git a/internal/fourslash/tests/gen/completionOfAwaitPromise3_test.go b/internal/fourslash/tests/gen/completionOfAwaitPromise3_test.go index 4b5bac1030..ac9cb6ace3 100644 --- a/internal/fourslash/tests/gen/completionOfAwaitPromise3_test.go +++ b/internal/fourslash/tests/gen/completionOfAwaitPromise3_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionOfAwaitPromise3(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { ["foo-foo"]: string } async function foo(x: Promise) { diff --git a/internal/fourslash/tests/gen/completionOfAwaitPromise5_test.go b/internal/fourslash/tests/gen/completionOfAwaitPromise5_test.go index 6203ed5289..67cc790e4d 100644 --- a/internal/fourslash/tests/gen/completionOfAwaitPromise5_test.go +++ b/internal/fourslash/tests/gen/completionOfAwaitPromise5_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionOfAwaitPromise5(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { foo: string } async function foo(x: (a: number) => Promise) { diff --git a/internal/fourslash/tests/gen/completionOfAwaitPromise6_test.go b/internal/fourslash/tests/gen/completionOfAwaitPromise6_test.go index b645503f24..8239734714 100644 --- a/internal/fourslash/tests/gen/completionOfAwaitPromise6_test.go +++ b/internal/fourslash/tests/gen/completionOfAwaitPromise6_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionOfAwaitPromise6(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `async function foo(x: Promise) { [|x./**/|] diff --git a/internal/fourslash/tests/gen/completionOfAwaitPromise7_test.go b/internal/fourslash/tests/gen/completionOfAwaitPromise7_test.go index e6908a7d9f..6434fb0a6b 100644 --- a/internal/fourslash/tests/gen/completionOfAwaitPromise7_test.go +++ b/internal/fourslash/tests/gen/completionOfAwaitPromise7_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionOfAwaitPromise7(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `async function foo(x: Promise) { console.log diff --git a/internal/fourslash/tests/gen/completionOfInterfaceAndVar_test.go b/internal/fourslash/tests/gen/completionOfInterfaceAndVar_test.go index 09d9c3bd1d..a77c31cfb9 100644 --- a/internal/fourslash/tests/gen/completionOfInterfaceAndVar_test.go +++ b/internal/fourslash/tests/gen/completionOfInterfaceAndVar_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionOfInterfaceAndVar(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface AnalyserNode { } diff --git a/internal/fourslash/tests/gen/completionPreferredSuggestions1_test.go b/internal/fourslash/tests/gen/completionPreferredSuggestions1_test.go index 66d7bc9cfd..e5840c1312 100644 --- a/internal/fourslash/tests/gen/completionPreferredSuggestions1_test.go +++ b/internal/fourslash/tests/gen/completionPreferredSuggestions1_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionPreferredSuggestions1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare let v1: string & {} | "a" | "b" | "c"; v1 = "/*1*/"; diff --git a/internal/fourslash/tests/gen/completionWithConditionalOperatorMissingColon_test.go b/internal/fourslash/tests/gen/completionWithConditionalOperatorMissingColon_test.go index 7412bc8621..4cbd459ecb 100644 --- a/internal/fourslash/tests/gen/completionWithConditionalOperatorMissingColon_test.go +++ b/internal/fourslash/tests/gen/completionWithConditionalOperatorMissingColon_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionWithConditionalOperatorMissingColon(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `1 ? fun/*1*/ function func () {}` diff --git a/internal/fourslash/tests/gen/completionsAfterJSDoc_test.go b/internal/fourslash/tests/gen/completionsAfterJSDoc_test.go index 0465440b2a..ea5592de86 100644 --- a/internal/fourslash/tests/gen/completionsAfterJSDoc_test.go +++ b/internal/fourslash/tests/gen/completionsAfterJSDoc_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsAfterJSDoc(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export interface Foo { /** JSDoc */ diff --git a/internal/fourslash/tests/gen/completionsBeforeRestArg1_test.go b/internal/fourslash/tests/gen/completionsBeforeRestArg1_test.go index 002f8cf2c8..1adc6e63e8 100644 --- a/internal/fourslash/tests/gen/completionsBeforeRestArg1_test.go +++ b/internal/fourslash/tests/gen/completionsBeforeRestArg1_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionsBeforeRestArg1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @target: esnext // @lib: esnext diff --git a/internal/fourslash/tests/gen/completionsElementAccessNumeric_test.go b/internal/fourslash/tests/gen/completionsElementAccessNumeric_test.go index d62beaee30..67841981c8 100644 --- a/internal/fourslash/tests/gen/completionsElementAccessNumeric_test.go +++ b/internal/fourslash/tests/gen/completionsElementAccessNumeric_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsElementAccessNumeric(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @target: esnext type Tup = [ diff --git a/internal/fourslash/tests/gen/completionsExportImport_test.go b/internal/fourslash/tests/gen/completionsExportImport_test.go index 72168e6fe7..fe9296a4cd 100644 --- a/internal/fourslash/tests/gen/completionsExportImport_test.go +++ b/internal/fourslash/tests/gen/completionsExportImport_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsExportImport(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare global { namespace N { diff --git a/internal/fourslash/tests/gen/completionsGenericTypeWithMultipleBases1_test.go b/internal/fourslash/tests/gen/completionsGenericTypeWithMultipleBases1_test.go index 26ea57ad8d..51d6ed56ad 100644 --- a/internal/fourslash/tests/gen/completionsGenericTypeWithMultipleBases1_test.go +++ b/internal/fourslash/tests/gen/completionsGenericTypeWithMultipleBases1_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsGenericTypeWithMultipleBases1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export interface iBaseScope { watch: () => void; diff --git a/internal/fourslash/tests/gen/completionsImportOrExportSpecifier_test.go b/internal/fourslash/tests/gen/completionsImportOrExportSpecifier_test.go index 99b619bc84..4154f745d6 100644 --- a/internal/fourslash/tests/gen/completionsImportOrExportSpecifier_test.go +++ b/internal/fourslash/tests/gen/completionsImportOrExportSpecifier_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsImportOrExportSpecifier(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: exports.ts export let foo = 1; diff --git a/internal/fourslash/tests/gen/completionsInExport_moduleBlock_test.go b/internal/fourslash/tests/gen/completionsInExport_moduleBlock_test.go index 435602eed9..3a5ecab875 100644 --- a/internal/fourslash/tests/gen/completionsInExport_moduleBlock_test.go +++ b/internal/fourslash/tests/gen/completionsInExport_moduleBlock_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsInExport_moduleBlock(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const outOfScope = 0; diff --git a/internal/fourslash/tests/gen/completionsInExport_test.go b/internal/fourslash/tests/gen/completionsInExport_test.go index 70c5f7bdd3..5d766a3da9 100644 --- a/internal/fourslash/tests/gen/completionsInExport_test.go +++ b/internal/fourslash/tests/gen/completionsInExport_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsInExport(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const a = "a"; type T = number; diff --git a/internal/fourslash/tests/gen/completionsInRequire_test.go b/internal/fourslash/tests/gen/completionsInRequire_test.go index 32214af99b..76aed69741 100644 --- a/internal/fourslash/tests/gen/completionsInRequire_test.go +++ b/internal/fourslash/tests/gen/completionsInRequire_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionsInRequire(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: foo.js diff --git a/internal/fourslash/tests/gen/completionsJSDocImportTagAttributesEmptyModuleSpecifier1_test.go b/internal/fourslash/tests/gen/completionsJSDocImportTagAttributesEmptyModuleSpecifier1_test.go index 4e464bc577..490f900ffb 100644 --- a/internal/fourslash/tests/gen/completionsJSDocImportTagAttributesEmptyModuleSpecifier1_test.go +++ b/internal/fourslash/tests/gen/completionsJSDocImportTagAttributesEmptyModuleSpecifier1_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionsJSDocImportTagAttributesEmptyModuleSpecifier1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @checkJs: true diff --git a/internal/fourslash/tests/gen/completionsJSDocImportTagAttributesErrorModuleSpecifier1_test.go b/internal/fourslash/tests/gen/completionsJSDocImportTagAttributesErrorModuleSpecifier1_test.go index 98c319a844..cf4a90e2d6 100644 --- a/internal/fourslash/tests/gen/completionsJSDocImportTagAttributesErrorModuleSpecifier1_test.go +++ b/internal/fourslash/tests/gen/completionsJSDocImportTagAttributesErrorModuleSpecifier1_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionsJSDocImportTagAttributesErrorModuleSpecifier1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @checkJs: true diff --git a/internal/fourslash/tests/gen/completionsJSDocImportTagEmptyModuleSpecifier1_test.go b/internal/fourslash/tests/gen/completionsJSDocImportTagEmptyModuleSpecifier1_test.go index ab07b662fc..08169a9226 100644 --- a/internal/fourslash/tests/gen/completionsJSDocImportTagEmptyModuleSpecifier1_test.go +++ b/internal/fourslash/tests/gen/completionsJSDocImportTagEmptyModuleSpecifier1_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionsJSDocImportTagEmptyModuleSpecifier1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @checkJs: true diff --git a/internal/fourslash/tests/gen/completionsJSDocNoCrash1_test.go b/internal/fourslash/tests/gen/completionsJSDocNoCrash1_test.go index 276e43a080..9dc8d9e336 100644 --- a/internal/fourslash/tests/gen/completionsJSDocNoCrash1_test.go +++ b/internal/fourslash/tests/gen/completionsJSDocNoCrash1_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionsJSDocNoCrash1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @checkJs: true diff --git a/internal/fourslash/tests/gen/completionsJsdocTypeTagCast_test.go b/internal/fourslash/tests/gen/completionsJsdocTypeTagCast_test.go index 5c1423b0d3..47031d3639 100644 --- a/internal/fourslash/tests/gen/completionsJsdocTypeTagCast_test.go +++ b/internal/fourslash/tests/gen/completionsJsdocTypeTagCast_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsJsdocTypeTagCast(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/internal/fourslash/tests/gen/completionsJsxAttribute2_test.go b/internal/fourslash/tests/gen/completionsJsxAttribute2_test.go index 4d1b9fe446..e5adc2a267 100644 --- a/internal/fourslash/tests/gen/completionsJsxAttribute2_test.go +++ b/internal/fourslash/tests/gen/completionsJsxAttribute2_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionsJsxAttribute2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @jsx: preserve // @Filename: /a.tsx diff --git a/internal/fourslash/tests/gen/completionsJsxAttributeInitializer2_test.go b/internal/fourslash/tests/gen/completionsJsxAttributeInitializer2_test.go index 22820622d0..a8ad036ebe 100644 --- a/internal/fourslash/tests/gen/completionsJsxAttributeInitializer2_test.go +++ b/internal/fourslash/tests/gen/completionsJsxAttributeInitializer2_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsJsxAttributeInitializer2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.tsx declare namespace JSX { diff --git a/internal/fourslash/tests/gen/completionsLiteralFromInferenceWithinInferredType3_test.go b/internal/fourslash/tests/gen/completionsLiteralFromInferenceWithinInferredType3_test.go index f7ec0ff34c..ae20d7a66b 100644 --- a/internal/fourslash/tests/gen/completionsLiteralFromInferenceWithinInferredType3_test.go +++ b/internal/fourslash/tests/gen/completionsLiteralFromInferenceWithinInferredType3_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionsLiteralFromInferenceWithinInferredType3(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function test(a: { [K in keyof T]: { diff --git a/internal/fourslash/tests/gen/completionsLiterals_test.go b/internal/fourslash/tests/gen/completionsLiterals_test.go index 35ff071582..24fc989f25 100644 --- a/internal/fourslash/tests/gen/completionsLiterals_test.go +++ b/internal/fourslash/tests/gen/completionsLiterals_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsLiterals(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const x: 0 | "one" = /**/; const y: 0 | "one" | 1n = /*1*/; diff --git a/internal/fourslash/tests/gen/completionsMergedDeclarations1_test.go b/internal/fourslash/tests/gen/completionsMergedDeclarations1_test.go index 26cfab4da7..2fc015bbb3 100644 --- a/internal/fourslash/tests/gen/completionsMergedDeclarations1_test.go +++ b/internal/fourslash/tests/gen/completionsMergedDeclarations1_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionsMergedDeclarations1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Point { x: number; diff --git a/internal/fourslash/tests/gen/completionsNewTarget_test.go b/internal/fourslash/tests/gen/completionsNewTarget_test.go index ecda9c3033..d89eaca975 100644 --- a/internal/fourslash/tests/gen/completionsNewTarget_test.go +++ b/internal/fourslash/tests/gen/completionsNewTarget_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionsNewTarget(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { constructor() { diff --git a/internal/fourslash/tests/gen/completionsOptionalMethod_test.go b/internal/fourslash/tests/gen/completionsOptionalMethod_test.go index 49dc117c7f..6e6a13b259 100644 --- a/internal/fourslash/tests/gen/completionsOptionalMethod_test.go +++ b/internal/fourslash/tests/gen/completionsOptionalMethod_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionsOptionalMethod(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strictNullChecks: true declare const x: { m?(): void }; diff --git a/internal/fourslash/tests/gen/completionsOverridingMethod10_test.go b/internal/fourslash/tests/gen/completionsOverridingMethod10_test.go index e90c3f9364..147238b4df 100644 --- a/internal/fourslash/tests/gen/completionsOverridingMethod10_test.go +++ b/internal/fourslash/tests/gen/completionsOverridingMethod10_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsOverridingMethod10(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts // @newline: LF diff --git a/internal/fourslash/tests/gen/completionsOverridingMethod11_test.go b/internal/fourslash/tests/gen/completionsOverridingMethod11_test.go index 7f625ae278..7eb83fdc03 100644 --- a/internal/fourslash/tests/gen/completionsOverridingMethod11_test.go +++ b/internal/fourslash/tests/gen/completionsOverridingMethod11_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsOverridingMethod11(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts // @newline: LF diff --git a/internal/fourslash/tests/gen/completionsOverridingMethod14_test.go b/internal/fourslash/tests/gen/completionsOverridingMethod14_test.go index e478ba42ef..e93bcfb957 100644 --- a/internal/fourslash/tests/gen/completionsOverridingMethod14_test.go +++ b/internal/fourslash/tests/gen/completionsOverridingMethod14_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsOverridingMethod14(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts // @strictNullChecks: true diff --git a/internal/fourslash/tests/gen/completionsOverridingMethod17_test.go b/internal/fourslash/tests/gen/completionsOverridingMethod17_test.go index b1b1f0fdd3..622b05691b 100644 --- a/internal/fourslash/tests/gen/completionsOverridingMethod17_test.go +++ b/internal/fourslash/tests/gen/completionsOverridingMethod17_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsOverridingMethod17(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts // @newline: LF diff --git a/internal/fourslash/tests/gen/completionsOverridingMethod1_test.go b/internal/fourslash/tests/gen/completionsOverridingMethod1_test.go index 3c8e600547..7cd5475348 100644 --- a/internal/fourslash/tests/gen/completionsOverridingMethod1_test.go +++ b/internal/fourslash/tests/gen/completionsOverridingMethod1_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsOverridingMethod1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @newline: LF // @Filename: h.ts diff --git a/internal/fourslash/tests/gen/completionsOverridingMethod3_test.go b/internal/fourslash/tests/gen/completionsOverridingMethod3_test.go index 3a8faeab68..c21c4d676b 100644 --- a/internal/fourslash/tests/gen/completionsOverridingMethod3_test.go +++ b/internal/fourslash/tests/gen/completionsOverridingMethod3_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsOverridingMethod3(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @newline: LF // @Filename: boo.d.ts diff --git a/internal/fourslash/tests/gen/completionsOverridingMethod4_test.go b/internal/fourslash/tests/gen/completionsOverridingMethod4_test.go index e3aaf10920..354a62df3c 100644 --- a/internal/fourslash/tests/gen/completionsOverridingMethod4_test.go +++ b/internal/fourslash/tests/gen/completionsOverridingMethod4_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsOverridingMethod4(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @newline: LF // @Filename: secret.ts diff --git a/internal/fourslash/tests/gen/completionsOverridingMethod9_test.go b/internal/fourslash/tests/gen/completionsOverridingMethod9_test.go index 83bde8141e..1a9fc15c84 100644 --- a/internal/fourslash/tests/gen/completionsOverridingMethod9_test.go +++ b/internal/fourslash/tests/gen/completionsOverridingMethod9_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsOverridingMethod9(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts // @newline: LF diff --git a/internal/fourslash/tests/gen/completionsOverridingMethodCrash1_test.go b/internal/fourslash/tests/gen/completionsOverridingMethodCrash1_test.go index 44dd62a54c..d7f2361259 100644 --- a/internal/fourslash/tests/gen/completionsOverridingMethodCrash1_test.go +++ b/internal/fourslash/tests/gen/completionsOverridingMethodCrash1_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsOverridingMethodCrash1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @newline: LF // @Filename: a.ts diff --git a/internal/fourslash/tests/gen/completionsOverridingProperties1_test.go b/internal/fourslash/tests/gen/completionsOverridingProperties1_test.go index 862de471de..cdf879eeb7 100644 --- a/internal/fourslash/tests/gen/completionsOverridingProperties1_test.go +++ b/internal/fourslash/tests/gen/completionsOverridingProperties1_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsOverridingProperties1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @newline: LF // @Filename: a.ts diff --git a/internal/fourslash/tests/gen/completionsPathsJsonModule_test.go b/internal/fourslash/tests/gen/completionsPathsJsonModule_test.go index b713e79f35..e4d233247d 100644 --- a/internal/fourslash/tests/gen/completionsPathsJsonModule_test.go +++ b/internal/fourslash/tests/gen/completionsPathsJsonModule_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsPathsJsonModule(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @moduleResolution: node // @resolveJsonModule: true diff --git a/internal/fourslash/tests/gen/completionsPathsRelativeJsonModule_test.go b/internal/fourslash/tests/gen/completionsPathsRelativeJsonModule_test.go index 98803f175d..ea5f523f95 100644 --- a/internal/fourslash/tests/gen/completionsPathsRelativeJsonModule_test.go +++ b/internal/fourslash/tests/gen/completionsPathsRelativeJsonModule_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsPathsRelativeJsonModule(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @moduleResolution: node // @resolveJsonModule: true diff --git a/internal/fourslash/tests/gen/completionsPaths_importType_test.go b/internal/fourslash/tests/gen/completionsPaths_importType_test.go index 3caae8585e..2d42458d78 100644 --- a/internal/fourslash/tests/gen/completionsPaths_importType_test.go +++ b/internal/fourslash/tests/gen/completionsPaths_importType_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsPaths_importType(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @moduleResolution: node diff --git a/internal/fourslash/tests/gen/completionsPaths_kinds_test.go b/internal/fourslash/tests/gen/completionsPaths_kinds_test.go index 7895cbadfb..1f5e1c39ea 100644 --- a/internal/fourslash/tests/gen/completionsPaths_kinds_test.go +++ b/internal/fourslash/tests/gen/completionsPaths_kinds_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsPaths_kinds(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /src/b.ts not read diff --git a/internal/fourslash/tests/gen/completionsPaths_pathMapping_nonTrailingWildcard1_test.go b/internal/fourslash/tests/gen/completionsPaths_pathMapping_nonTrailingWildcard1_test.go index 0700a9cd69..f2e881a7fb 100644 --- a/internal/fourslash/tests/gen/completionsPaths_pathMapping_nonTrailingWildcard1_test.go +++ b/internal/fourslash/tests/gen/completionsPaths_pathMapping_nonTrailingWildcard1_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsPaths_pathMapping_nonTrailingWildcard1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /src/b.ts export const x = 0; diff --git a/internal/fourslash/tests/gen/completionsPaths_pathMapping_parentDirectory_test.go b/internal/fourslash/tests/gen/completionsPaths_pathMapping_parentDirectory_test.go index 18ec54858c..838c529503 100644 --- a/internal/fourslash/tests/gen/completionsPaths_pathMapping_parentDirectory_test.go +++ b/internal/fourslash/tests/gen/completionsPaths_pathMapping_parentDirectory_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsPaths_pathMapping_parentDirectory(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /src/a.ts import { } from "foo//**/"; diff --git a/internal/fourslash/tests/gen/completionsPaths_pathMapping_test.go b/internal/fourslash/tests/gen/completionsPaths_pathMapping_test.go index 57d963fedb..7df309a775 100644 --- a/internal/fourslash/tests/gen/completionsPaths_pathMapping_test.go +++ b/internal/fourslash/tests/gen/completionsPaths_pathMapping_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsPaths_pathMapping(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /src/b.ts export const x = 0; diff --git a/internal/fourslash/tests/gen/completionsRecommended_union_test.go b/internal/fourslash/tests/gen/completionsRecommended_union_test.go index 4a7b08f7a4..72032a3008 100644 --- a/internal/fourslash/tests/gen/completionsRecommended_union_test.go +++ b/internal/fourslash/tests/gen/completionsRecommended_union_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsRecommended_union(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strictNullChecks: true const enum E { A = "A", B = "B" } diff --git a/internal/fourslash/tests/gen/completionsRedeclareModuleAsGlobal_test.go b/internal/fourslash/tests/gen/completionsRedeclareModuleAsGlobal_test.go index 8afe59b05b..bc9261733e 100644 --- a/internal/fourslash/tests/gen/completionsRedeclareModuleAsGlobal_test.go +++ b/internal/fourslash/tests/gen/completionsRedeclareModuleAsGlobal_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsRedeclareModuleAsGlobal(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @esModuleInterop: true, // @target: esnext diff --git a/internal/fourslash/tests/gen/completionsStringsWithTriggerCharacter_test.go b/internal/fourslash/tests/gen/completionsStringsWithTriggerCharacter_test.go index 3ba6bc13d8..b37c40af8f 100644 --- a/internal/fourslash/tests/gen/completionsStringsWithTriggerCharacter_test.go +++ b/internal/fourslash/tests/gen/completionsStringsWithTriggerCharacter_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsStringsWithTriggerCharacter(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type A = "a/b" | "b/a"; const a: A = "[|a/*1*/|]"; diff --git a/internal/fourslash/tests/gen/completionsSymbolMembers_test.go b/internal/fourslash/tests/gen/completionsSymbolMembers_test.go index 955ad4d346..70e41231ee 100644 --- a/internal/fourslash/tests/gen/completionsSymbolMembers_test.go +++ b/internal/fourslash/tests/gen/completionsSymbolMembers_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsSymbolMembers(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const Symbol: (s: string) => symbol; const s = Symbol("s"); diff --git a/internal/fourslash/tests/gen/completionsTriggerCharacter_test.go b/internal/fourslash/tests/gen/completionsTriggerCharacter_test.go index 30715c2859..8209befddd 100644 --- a/internal/fourslash/tests/gen/completionsTriggerCharacter_test.go +++ b/internal/fourslash/tests/gen/completionsTriggerCharacter_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsTriggerCharacter(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @jsx: preserve /** @/*tag*/ */ diff --git a/internal/fourslash/tests/gen/completionsTuple_test.go b/internal/fourslash/tests/gen/completionsTuple_test.go index 60cb27a1df..9d81ee87a1 100644 --- a/internal/fourslash/tests/gen/completionsTuple_test.go +++ b/internal/fourslash/tests/gen/completionsTuple_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsTuple(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const x: [number, number]; x[|./**/|];` diff --git a/internal/fourslash/tests/gen/completionsUniqueSymbol1_test.go b/internal/fourslash/tests/gen/completionsUniqueSymbol1_test.go index ad4ae8523e..c536c92c44 100644 --- a/internal/fourslash/tests/gen/completionsUniqueSymbol1_test.go +++ b/internal/fourslash/tests/gen/completionsUniqueSymbol1_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsUniqueSymbol1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const Symbol: () => symbol; namespace M { diff --git a/internal/fourslash/tests/gen/constEnumQuickInfoAndCompletionList_test.go b/internal/fourslash/tests/gen/constEnumQuickInfoAndCompletionList_test.go index 4b99f7f120..8d158e3a81 100644 --- a/internal/fourslash/tests/gen/constEnumQuickInfoAndCompletionList_test.go +++ b/internal/fourslash/tests/gen/constEnumQuickInfoAndCompletionList_test.go @@ -11,7 +11,7 @@ import ( func TestConstEnumQuickInfoAndCompletionList(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const enum /*1*/e { a, diff --git a/internal/fourslash/tests/gen/constQuickInfoAndCompletionList_test.go b/internal/fourslash/tests/gen/constQuickInfoAndCompletionList_test.go index ea60e91862..319953a2cb 100644 --- a/internal/fourslash/tests/gen/constQuickInfoAndCompletionList_test.go +++ b/internal/fourslash/tests/gen/constQuickInfoAndCompletionList_test.go @@ -11,7 +11,7 @@ import ( func TestConstQuickInfoAndCompletionList(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const /*1*/a = 10; var x = /*2*/a; diff --git a/internal/fourslash/tests/gen/contextuallyTypedFunctionExpressionGeneric1_test.go b/internal/fourslash/tests/gen/contextuallyTypedFunctionExpressionGeneric1_test.go index 2f12ff22d4..782ae6f123 100644 --- a/internal/fourslash/tests/gen/contextuallyTypedFunctionExpressionGeneric1_test.go +++ b/internal/fourslash/tests/gen/contextuallyTypedFunctionExpressionGeneric1_test.go @@ -9,7 +9,7 @@ import ( func TestContextuallyTypedFunctionExpressionGeneric1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Comparable { compareTo(other: T): T; diff --git a/internal/fourslash/tests/gen/doubleUnderscoreCompletions_test.go b/internal/fourslash/tests/gen/doubleUnderscoreCompletions_test.go index edfc26bb81..7c0c9154ed 100644 --- a/internal/fourslash/tests/gen/doubleUnderscoreCompletions_test.go +++ b/internal/fourslash/tests/gen/doubleUnderscoreCompletions_test.go @@ -12,7 +12,7 @@ import ( func TestDoubleUnderscoreCompletions(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/internal/fourslash/tests/gen/editJsdocType_test.go b/internal/fourslash/tests/gen/editJsdocType_test.go index 465447d642..21dcd4121d 100644 --- a/internal/fourslash/tests/gen/editJsdocType_test.go +++ b/internal/fourslash/tests/gen/editJsdocType_test.go @@ -9,7 +9,7 @@ import ( func TestEditJsdocType(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @noLib: true diff --git a/internal/fourslash/tests/gen/exportDefaultClass_test.go b/internal/fourslash/tests/gen/exportDefaultClass_test.go index b25a8aa6d3..7a9f2862ed 100644 --- a/internal/fourslash/tests/gen/exportDefaultClass_test.go +++ b/internal/fourslash/tests/gen/exportDefaultClass_test.go @@ -11,7 +11,7 @@ import ( func TestExportDefaultClass(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export default class C { method() { /*1*/ } diff --git a/internal/fourslash/tests/gen/exportDefaultFunction_test.go b/internal/fourslash/tests/gen/exportDefaultFunction_test.go index 8b474c8dc3..15b1f86be3 100644 --- a/internal/fourslash/tests/gen/exportDefaultFunction_test.go +++ b/internal/fourslash/tests/gen/exportDefaultFunction_test.go @@ -11,7 +11,7 @@ import ( func TestExportDefaultFunction(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export default function func() { /*1*/ diff --git a/internal/fourslash/tests/gen/findAllReferencesDynamicImport1_test.go b/internal/fourslash/tests/gen/findAllReferencesDynamicImport1_test.go index a3cbb55949..a6637254e1 100644 --- a/internal/fourslash/tests/gen/findAllReferencesDynamicImport1_test.go +++ b/internal/fourslash/tests/gen/findAllReferencesDynamicImport1_test.go @@ -9,7 +9,7 @@ import ( func TestFindAllReferencesDynamicImport1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: foo.ts export function foo() { return "foo"; } diff --git a/internal/fourslash/tests/gen/findAllReferencesTripleSlash_test.go b/internal/fourslash/tests/gen/findAllReferencesTripleSlash_test.go index 6c418d4bb6..eec32bef82 100644 --- a/internal/fourslash/tests/gen/findAllReferencesTripleSlash_test.go +++ b/internal/fourslash/tests/gen/findAllReferencesTripleSlash_test.go @@ -9,7 +9,7 @@ import ( func TestFindAllReferencesTripleSlash(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @checkJs: true // @Filename: /node_modules/@types/globals/index.d.ts diff --git a/internal/fourslash/tests/gen/findAllReferencesUmdModuleAsGlobalConst_test.go b/internal/fourslash/tests/gen/findAllReferencesUmdModuleAsGlobalConst_test.go index 2000320574..c0a0b67b70 100644 --- a/internal/fourslash/tests/gen/findAllReferencesUmdModuleAsGlobalConst_test.go +++ b/internal/fourslash/tests/gen/findAllReferencesUmdModuleAsGlobalConst_test.go @@ -9,7 +9,7 @@ import ( func TestFindAllReferencesUmdModuleAsGlobalConst(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /node_modules/@types/three/three-core.d.ts export class Vector3 { diff --git a/internal/fourslash/tests/gen/findAllRefsCommonJsRequire2_test.go b/internal/fourslash/tests/gen/findAllRefsCommonJsRequire2_test.go index 1e02bacdff..d8cdf2d191 100644 --- a/internal/fourslash/tests/gen/findAllRefsCommonJsRequire2_test.go +++ b/internal/fourslash/tests/gen/findAllRefsCommonJsRequire2_test.go @@ -9,7 +9,7 @@ import ( func TestFindAllRefsCommonJsRequire2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/internal/fourslash/tests/gen/findAllRefsCommonJsRequire3_test.go b/internal/fourslash/tests/gen/findAllRefsCommonJsRequire3_test.go index e382ea6594..5b683392eb 100644 --- a/internal/fourslash/tests/gen/findAllRefsCommonJsRequire3_test.go +++ b/internal/fourslash/tests/gen/findAllRefsCommonJsRequire3_test.go @@ -9,7 +9,7 @@ import ( func TestFindAllRefsCommonJsRequire3(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/internal/fourslash/tests/gen/findAllRefsCommonJsRequire_test.go b/internal/fourslash/tests/gen/findAllRefsCommonJsRequire_test.go index eeb9a85761..03664fd182 100644 --- a/internal/fourslash/tests/gen/findAllRefsCommonJsRequire_test.go +++ b/internal/fourslash/tests/gen/findAllRefsCommonJsRequire_test.go @@ -9,7 +9,7 @@ import ( func TestFindAllRefsCommonJsRequire(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/internal/fourslash/tests/gen/findAllRefsExportEquals_test.go b/internal/fourslash/tests/gen/findAllRefsExportEquals_test.go index dfee6a23bf..56070c7f4e 100644 --- a/internal/fourslash/tests/gen/findAllRefsExportEquals_test.go +++ b/internal/fourslash/tests/gen/findAllRefsExportEquals_test.go @@ -9,7 +9,7 @@ import ( func TestFindAllRefsExportEquals(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts type /*0*/T = number; diff --git a/internal/fourslash/tests/gen/findAllRefsForDefaultExport03_test.go b/internal/fourslash/tests/gen/findAllRefsForDefaultExport03_test.go index f41ebfe43a..85578f9b73 100644 --- a/internal/fourslash/tests/gen/findAllRefsForDefaultExport03_test.go +++ b/internal/fourslash/tests/gen/findAllRefsForDefaultExport03_test.go @@ -9,7 +9,7 @@ import ( func TestFindAllRefsForDefaultExport03(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/function /*2*/f() { return 100; diff --git a/internal/fourslash/tests/gen/findAllRefsModuleDotExports_test.go b/internal/fourslash/tests/gen/findAllRefsModuleDotExports_test.go index e2fa622891..97fa6533ec 100644 --- a/internal/fourslash/tests/gen/findAllRefsModuleDotExports_test.go +++ b/internal/fourslash/tests/gen/findAllRefsModuleDotExports_test.go @@ -9,7 +9,7 @@ import ( func TestFindAllRefsModuleDotExports(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/internal/fourslash/tests/gen/findAllRefsReExport_broken_test.go b/internal/fourslash/tests/gen/findAllRefsReExport_broken_test.go index a864f48650..8584434558 100644 --- a/internal/fourslash/tests/gen/findAllRefsReExport_broken_test.go +++ b/internal/fourslash/tests/gen/findAllRefsReExport_broken_test.go @@ -9,7 +9,7 @@ import ( func TestFindAllRefsReExport_broken(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts /*1*/export { /*2*/x };` diff --git a/internal/fourslash/tests/gen/findAllRefs_importType_typeofImport_test.go b/internal/fourslash/tests/gen/findAllRefs_importType_typeofImport_test.go index 08792f35a8..02e749e266 100644 --- a/internal/fourslash/tests/gen/findAllRefs_importType_typeofImport_test.go +++ b/internal/fourslash/tests/gen/findAllRefs_importType_typeofImport_test.go @@ -9,7 +9,7 @@ import ( func TestFindAllRefs_importType_typeofImport(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export const x = 0; diff --git a/internal/fourslash/tests/gen/findReferencesAfterEdit_test.go b/internal/fourslash/tests/gen/findReferencesAfterEdit_test.go index d38805586f..5a6a9fede3 100644 --- a/internal/fourslash/tests/gen/findReferencesAfterEdit_test.go +++ b/internal/fourslash/tests/gen/findReferencesAfterEdit_test.go @@ -9,7 +9,7 @@ import ( func TestFindReferencesAfterEdit(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts interface A { diff --git a/internal/fourslash/tests/gen/findReferencesBindingPatternInJsdocNoCrash1_test.go b/internal/fourslash/tests/gen/findReferencesBindingPatternInJsdocNoCrash1_test.go index b219b100e5..5aceae785e 100644 --- a/internal/fourslash/tests/gen/findReferencesBindingPatternInJsdocNoCrash1_test.go +++ b/internal/fourslash/tests/gen/findReferencesBindingPatternInJsdocNoCrash1_test.go @@ -9,7 +9,7 @@ import ( func TestFindReferencesBindingPatternInJsdocNoCrash1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @moduleResolution: node // @Filename: node_modules/use-query/package.json diff --git a/internal/fourslash/tests/gen/findReferencesBindingPatternInJsdocNoCrash2_test.go b/internal/fourslash/tests/gen/findReferencesBindingPatternInJsdocNoCrash2_test.go index 1fcafea499..1ff230f14a 100644 --- a/internal/fourslash/tests/gen/findReferencesBindingPatternInJsdocNoCrash2_test.go +++ b/internal/fourslash/tests/gen/findReferencesBindingPatternInJsdocNoCrash2_test.go @@ -9,7 +9,7 @@ import ( func TestFindReferencesBindingPatternInJsdocNoCrash2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @moduleResolution: node // @Filename: node_modules/use-query/package.json diff --git a/internal/fourslash/tests/gen/genericCombinatorWithConstraints1_test.go b/internal/fourslash/tests/gen/genericCombinatorWithConstraints1_test.go index 289cad2512..6accd4d4c5 100644 --- a/internal/fourslash/tests/gen/genericCombinatorWithConstraints1_test.go +++ b/internal/fourslash/tests/gen/genericCombinatorWithConstraints1_test.go @@ -9,7 +9,7 @@ import ( func TestGenericCombinatorWithConstraints1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function apply(source: T[], selector: (x: T) => U) { var /*1*/xs = source.map(selector); // any[] diff --git a/internal/fourslash/tests/gen/genericCombinators3_test.go b/internal/fourslash/tests/gen/genericCombinators3_test.go index 389656f6e2..f5f36b7264 100644 --- a/internal/fourslash/tests/gen/genericCombinators3_test.go +++ b/internal/fourslash/tests/gen/genericCombinators3_test.go @@ -9,7 +9,7 @@ import ( func TestGenericCombinators3(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Collection { } diff --git a/internal/fourslash/tests/gen/genericFunctionWithGenericParams1_test.go b/internal/fourslash/tests/gen/genericFunctionWithGenericParams1_test.go index 996080f13f..f8194d3f5f 100644 --- a/internal/fourslash/tests/gen/genericFunctionWithGenericParams1_test.go +++ b/internal/fourslash/tests/gen/genericFunctionWithGenericParams1_test.go @@ -9,7 +9,7 @@ import ( func TestGenericFunctionWithGenericParams1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var obj = function f(a: T) { var x/**/x: T; diff --git a/internal/fourslash/tests/gen/genericInterfacesWithConstraints1_test.go b/internal/fourslash/tests/gen/genericInterfacesWithConstraints1_test.go index 0ebf7e4e52..937937e1bc 100644 --- a/internal/fourslash/tests/gen/genericInterfacesWithConstraints1_test.go +++ b/internal/fourslash/tests/gen/genericInterfacesWithConstraints1_test.go @@ -9,7 +9,7 @@ import ( func TestGenericInterfacesWithConstraints1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface A { a: string; } interface B extends A { b: string; } diff --git a/internal/fourslash/tests/gen/genericTypeWithMultipleBases1MultiFile_test.go b/internal/fourslash/tests/gen/genericTypeWithMultipleBases1MultiFile_test.go index 21b2fd79f9..41a0d08e6c 100644 --- a/internal/fourslash/tests/gen/genericTypeWithMultipleBases1MultiFile_test.go +++ b/internal/fourslash/tests/gen/genericTypeWithMultipleBases1MultiFile_test.go @@ -11,7 +11,7 @@ import ( func TestGenericTypeWithMultipleBases1MultiFile(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: genericTypeWithMultipleBases_0.ts interface iBaseScope { diff --git a/internal/fourslash/tests/gen/getJavaScriptCompletions10_test.go b/internal/fourslash/tests/gen/getJavaScriptCompletions10_test.go index 89da392d88..5f9b4de334 100644 --- a/internal/fourslash/tests/gen/getJavaScriptCompletions10_test.go +++ b/internal/fourslash/tests/gen/getJavaScriptCompletions10_test.go @@ -11,7 +11,7 @@ import ( func TestGetJavaScriptCompletions10(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/internal/fourslash/tests/gen/getJavaScriptCompletions12_test.go b/internal/fourslash/tests/gen/getJavaScriptCompletions12_test.go index 497e40222b..85db0ed660 100644 --- a/internal/fourslash/tests/gen/getJavaScriptCompletions12_test.go +++ b/internal/fourslash/tests/gen/getJavaScriptCompletions12_test.go @@ -12,7 +12,7 @@ import ( func TestGetJavaScriptCompletions12(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/internal/fourslash/tests/gen/getJavaScriptCompletions13_test.go b/internal/fourslash/tests/gen/getJavaScriptCompletions13_test.go index 3367cc3482..d142e500e8 100644 --- a/internal/fourslash/tests/gen/getJavaScriptCompletions13_test.go +++ b/internal/fourslash/tests/gen/getJavaScriptCompletions13_test.go @@ -12,7 +12,7 @@ import ( func TestGetJavaScriptCompletions13(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: file1.js diff --git a/internal/fourslash/tests/gen/getJavaScriptCompletions15_test.go b/internal/fourslash/tests/gen/getJavaScriptCompletions15_test.go index 24134af89f..043579fe06 100644 --- a/internal/fourslash/tests/gen/getJavaScriptCompletions15_test.go +++ b/internal/fourslash/tests/gen/getJavaScriptCompletions15_test.go @@ -12,7 +12,7 @@ import ( func TestGetJavaScriptCompletions15(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: refFile1.ts diff --git a/internal/fourslash/tests/gen/getJavaScriptCompletions18_test.go b/internal/fourslash/tests/gen/getJavaScriptCompletions18_test.go index c03b46a66e..030b5a5442 100644 --- a/internal/fourslash/tests/gen/getJavaScriptCompletions18_test.go +++ b/internal/fourslash/tests/gen/getJavaScriptCompletions18_test.go @@ -11,7 +11,7 @@ import ( func TestGetJavaScriptCompletions18(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: file.js diff --git a/internal/fourslash/tests/gen/getJavaScriptCompletions20_test.go b/internal/fourslash/tests/gen/getJavaScriptCompletions20_test.go index bca25cd83a..b552232c8b 100644 --- a/internal/fourslash/tests/gen/getJavaScriptCompletions20_test.go +++ b/internal/fourslash/tests/gen/getJavaScriptCompletions20_test.go @@ -12,7 +12,7 @@ import ( func TestGetJavaScriptCompletions20(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: file.js diff --git a/internal/fourslash/tests/gen/getJavaScriptCompletions8_test.go b/internal/fourslash/tests/gen/getJavaScriptCompletions8_test.go index 933855015b..235e2328d4 100644 --- a/internal/fourslash/tests/gen/getJavaScriptCompletions8_test.go +++ b/internal/fourslash/tests/gen/getJavaScriptCompletions8_test.go @@ -11,7 +11,7 @@ import ( func TestGetJavaScriptCompletions8(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/internal/fourslash/tests/gen/getJavaScriptCompletions9_test.go b/internal/fourslash/tests/gen/getJavaScriptCompletions9_test.go index fc6ea174fc..355d1a4a41 100644 --- a/internal/fourslash/tests/gen/getJavaScriptCompletions9_test.go +++ b/internal/fourslash/tests/gen/getJavaScriptCompletions9_test.go @@ -11,7 +11,7 @@ import ( func TestGetJavaScriptCompletions9(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/internal/fourslash/tests/gen/getJavaScriptGlobalCompletions1_test.go b/internal/fourslash/tests/gen/getJavaScriptGlobalCompletions1_test.go index 2bfa0fd883..18fb93cdc6 100644 --- a/internal/fourslash/tests/gen/getJavaScriptGlobalCompletions1_test.go +++ b/internal/fourslash/tests/gen/getJavaScriptGlobalCompletions1_test.go @@ -12,7 +12,7 @@ import ( func TestGetJavaScriptGlobalCompletions1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/internal/fourslash/tests/gen/getJavaScriptQuickInfo1_test.go b/internal/fourslash/tests/gen/getJavaScriptQuickInfo1_test.go index d399d9c8a6..7ad7c51daf 100644 --- a/internal/fourslash/tests/gen/getJavaScriptQuickInfo1_test.go +++ b/internal/fourslash/tests/gen/getJavaScriptQuickInfo1_test.go @@ -9,7 +9,7 @@ import ( func TestGetJavaScriptQuickInfo1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/internal/fourslash/tests/gen/getJavaScriptQuickInfo2_test.go b/internal/fourslash/tests/gen/getJavaScriptQuickInfo2_test.go index a71ec08653..54c4583e2e 100644 --- a/internal/fourslash/tests/gen/getJavaScriptQuickInfo2_test.go +++ b/internal/fourslash/tests/gen/getJavaScriptQuickInfo2_test.go @@ -9,7 +9,7 @@ import ( func TestGetJavaScriptQuickInfo2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/internal/fourslash/tests/gen/getJavaScriptQuickInfo3_test.go b/internal/fourslash/tests/gen/getJavaScriptQuickInfo3_test.go index 55cee7d135..ff32abb45f 100644 --- a/internal/fourslash/tests/gen/getJavaScriptQuickInfo3_test.go +++ b/internal/fourslash/tests/gen/getJavaScriptQuickInfo3_test.go @@ -9,7 +9,7 @@ import ( func TestGetJavaScriptQuickInfo3(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/internal/fourslash/tests/gen/getJavaScriptQuickInfo4_test.go b/internal/fourslash/tests/gen/getJavaScriptQuickInfo4_test.go index 41ab101ccf..f563bc54ac 100644 --- a/internal/fourslash/tests/gen/getJavaScriptQuickInfo4_test.go +++ b/internal/fourslash/tests/gen/getJavaScriptQuickInfo4_test.go @@ -9,7 +9,7 @@ import ( func TestGetJavaScriptQuickInfo4(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/internal/fourslash/tests/gen/getJavaScriptQuickInfo5_test.go b/internal/fourslash/tests/gen/getJavaScriptQuickInfo5_test.go index 10522f84ec..f9b16d3868 100644 --- a/internal/fourslash/tests/gen/getJavaScriptQuickInfo5_test.go +++ b/internal/fourslash/tests/gen/getJavaScriptQuickInfo5_test.go @@ -9,7 +9,7 @@ import ( func TestGetJavaScriptQuickInfo5(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/internal/fourslash/tests/gen/getJavaScriptQuickInfo6_test.go b/internal/fourslash/tests/gen/getJavaScriptQuickInfo6_test.go index aa042f2a31..6ea036bc6a 100644 --- a/internal/fourslash/tests/gen/getJavaScriptQuickInfo6_test.go +++ b/internal/fourslash/tests/gen/getJavaScriptQuickInfo6_test.go @@ -9,7 +9,7 @@ import ( func TestGetJavaScriptQuickInfo6(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/internal/fourslash/tests/gen/getJavaScriptQuickInfo7_test.go b/internal/fourslash/tests/gen/getJavaScriptQuickInfo7_test.go index 27a849e36d..5f7d07ac48 100644 --- a/internal/fourslash/tests/gen/getJavaScriptQuickInfo7_test.go +++ b/internal/fourslash/tests/gen/getJavaScriptQuickInfo7_test.go @@ -9,7 +9,7 @@ import ( func TestGetJavaScriptQuickInfo7(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: file.js diff --git a/internal/fourslash/tests/gen/getJavaScriptQuickInfo8_test.go b/internal/fourslash/tests/gen/getJavaScriptQuickInfo8_test.go index 36185ff9e7..6cab385ba3 100644 --- a/internal/fourslash/tests/gen/getJavaScriptQuickInfo8_test.go +++ b/internal/fourslash/tests/gen/getJavaScriptQuickInfo8_test.go @@ -11,7 +11,7 @@ import ( func TestGetJavaScriptQuickInfo8(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: file.js diff --git a/internal/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics24_test.go b/internal/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics24_test.go index 08367d0d2c..efd755a36b 100644 --- a/internal/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics24_test.go +++ b/internal/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics24_test.go @@ -9,7 +9,7 @@ import ( func TestGetJavaScriptSyntacticDiagnostics24(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/internal/fourslash/tests/gen/getQuickInfoForIntersectionTypes_test.go b/internal/fourslash/tests/gen/getQuickInfoForIntersectionTypes_test.go index d3d68ddc6b..fb71b8925f 100644 --- a/internal/fourslash/tests/gen/getQuickInfoForIntersectionTypes_test.go +++ b/internal/fourslash/tests/gen/getQuickInfoForIntersectionTypes_test.go @@ -9,7 +9,7 @@ import ( func TestGetQuickInfoForIntersectionTypes(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f(): string & {(): any} { return {}; diff --git a/internal/fourslash/tests/gen/hoverOverComment_test.go b/internal/fourslash/tests/gen/hoverOverComment_test.go index 971e578dc1..6a44584e7a 100644 --- a/internal/fourslash/tests/gen/hoverOverComment_test.go +++ b/internal/fourslash/tests/gen/hoverOverComment_test.go @@ -9,7 +9,7 @@ import ( func TestHoverOverComment(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export function f() {} //foo diff --git a/internal/fourslash/tests/gen/importCompletionsPackageJsonExportsSpecifierEndsInTs_test.go b/internal/fourslash/tests/gen/importCompletionsPackageJsonExportsSpecifierEndsInTs_test.go index 7cced610eb..6c47dab393 100644 --- a/internal/fourslash/tests/gen/importCompletionsPackageJsonExportsSpecifierEndsInTs_test.go +++ b/internal/fourslash/tests/gen/importCompletionsPackageJsonExportsSpecifierEndsInTs_test.go @@ -10,7 +10,7 @@ import ( func TestImportCompletionsPackageJsonExportsSpecifierEndsInTs(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /node_modules/pkg/package.json diff --git a/internal/fourslash/tests/gen/importCompletionsPackageJsonExportsTrailingSlash1_test.go b/internal/fourslash/tests/gen/importCompletionsPackageJsonExportsTrailingSlash1_test.go index ff355c08b1..6315957963 100644 --- a/internal/fourslash/tests/gen/importCompletionsPackageJsonExportsTrailingSlash1_test.go +++ b/internal/fourslash/tests/gen/importCompletionsPackageJsonExportsTrailingSlash1_test.go @@ -10,7 +10,7 @@ import ( func TestImportCompletionsPackageJsonExportsTrailingSlash1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @moduleResolution: nodenext diff --git a/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsConditions1_test.go b/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsConditions1_test.go index 034cc9d84b..c47b737169 100644 --- a/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsConditions1_test.go +++ b/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsConditions1_test.go @@ -10,7 +10,7 @@ import ( func TestImportCompletionsPackageJsonImportsConditions1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsLength1_test.go b/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsLength1_test.go index a19d5265b6..85d6457efb 100644 --- a/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsLength1_test.go +++ b/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsLength1_test.go @@ -10,7 +10,7 @@ import ( func TestImportCompletionsPackageJsonImportsLength1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsLength2_test.go b/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsLength2_test.go index 35423be56f..b35dd205f1 100644 --- a/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsLength2_test.go +++ b/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsLength2_test.go @@ -10,7 +10,7 @@ import ( func TestImportCompletionsPackageJsonImportsLength2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern2_test.go b/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern2_test.go index d18355698f..77d5ad0a71 100644 --- a/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern2_test.go +++ b/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern2_test.go @@ -10,7 +10,7 @@ import ( func TestImportCompletionsPackageJsonImportsPattern2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @allowImportingTsExtensions: true diff --git a/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_capsInPath1_test.go b/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_capsInPath1_test.go index 3e60546461..48a018b79c 100644 --- a/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_capsInPath1_test.go +++ b/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_capsInPath1_test.go @@ -10,7 +10,7 @@ import ( func TestImportCompletionsPackageJsonImportsPattern_capsInPath1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /Dev/package.json diff --git a/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_capsInPath2_test.go b/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_capsInPath2_test.go index 3622101a5c..a396855428 100644 --- a/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_capsInPath2_test.go +++ b/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_capsInPath2_test.go @@ -10,7 +10,7 @@ import ( func TestImportCompletionsPackageJsonImportsPattern_capsInPath2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /Dev/package.json diff --git a/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_js_ts_test.go b/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_js_ts_test.go index 85657c5791..85f392080e 100644 --- a/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_js_ts_test.go +++ b/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_js_ts_test.go @@ -10,7 +10,7 @@ import ( func TestImportCompletionsPackageJsonImportsPattern_js_ts(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_test.go b/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_test.go index 582992f37b..730cc145eb 100644 --- a/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_test.go +++ b/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_test.go @@ -10,7 +10,7 @@ import ( func TestImportCompletionsPackageJsonImportsPattern(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_ts_test.go b/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_ts_test.go index 20a8b630ad..1c6afa8268 100644 --- a/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_ts_test.go +++ b/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_ts_test.go @@ -10,7 +10,7 @@ import ( func TestImportCompletionsPackageJsonImportsPattern_ts(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_ts_ts_test.go b/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_ts_ts_test.go index cf60b73451..74cfae2748 100644 --- a/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_ts_ts_test.go +++ b/internal/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_ts_ts_test.go @@ -10,7 +10,7 @@ import ( func TestImportCompletionsPackageJsonImportsPattern_ts_ts(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/internal/fourslash/tests/gen/importCompletionsPackageJsonImports_ts_test.go b/internal/fourslash/tests/gen/importCompletionsPackageJsonImports_ts_test.go index 0c49106de5..6c0ce52b53 100644 --- a/internal/fourslash/tests/gen/importCompletionsPackageJsonImports_ts_test.go +++ b/internal/fourslash/tests/gen/importCompletionsPackageJsonImports_ts_test.go @@ -10,7 +10,7 @@ import ( func TestImportCompletionsPackageJsonImports_ts(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/internal/fourslash/tests/gen/importCompletions_importsMap1_test.go b/internal/fourslash/tests/gen/importCompletions_importsMap1_test.go index 4b173fb093..54e948f687 100644 --- a/internal/fourslash/tests/gen/importCompletions_importsMap1_test.go +++ b/internal/fourslash/tests/gen/importCompletions_importsMap1_test.go @@ -10,7 +10,7 @@ import ( func TestImportCompletions_importsMap1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { diff --git a/internal/fourslash/tests/gen/importCompletions_importsMap2_test.go b/internal/fourslash/tests/gen/importCompletions_importsMap2_test.go index 8a602bf253..b483c631a6 100644 --- a/internal/fourslash/tests/gen/importCompletions_importsMap2_test.go +++ b/internal/fourslash/tests/gen/importCompletions_importsMap2_test.go @@ -10,7 +10,7 @@ import ( func TestImportCompletions_importsMap2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { diff --git a/internal/fourslash/tests/gen/importCompletions_importsMap3_test.go b/internal/fourslash/tests/gen/importCompletions_importsMap3_test.go index 8b7ddfd85d..69aaa875bb 100644 --- a/internal/fourslash/tests/gen/importCompletions_importsMap3_test.go +++ b/internal/fourslash/tests/gen/importCompletions_importsMap3_test.go @@ -10,7 +10,7 @@ import ( func TestImportCompletions_importsMap3(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { diff --git a/internal/fourslash/tests/gen/importCompletions_importsMap4_test.go b/internal/fourslash/tests/gen/importCompletions_importsMap4_test.go index d1ed920327..e11d7c1389 100644 --- a/internal/fourslash/tests/gen/importCompletions_importsMap4_test.go +++ b/internal/fourslash/tests/gen/importCompletions_importsMap4_test.go @@ -10,7 +10,7 @@ import ( func TestImportCompletions_importsMap4(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { diff --git a/internal/fourslash/tests/gen/importCompletions_importsMap5_test.go b/internal/fourslash/tests/gen/importCompletions_importsMap5_test.go index 18b3397015..ca5820d7c4 100644 --- a/internal/fourslash/tests/gen/importCompletions_importsMap5_test.go +++ b/internal/fourslash/tests/gen/importCompletions_importsMap5_test.go @@ -10,7 +10,7 @@ import ( func TestImportCompletions_importsMap5(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { diff --git a/internal/fourslash/tests/gen/importStatementCompletions4_test.go b/internal/fourslash/tests/gen/importStatementCompletions4_test.go index 30c586e479..274183401c 100644 --- a/internal/fourslash/tests/gen/importStatementCompletions4_test.go +++ b/internal/fourslash/tests/gen/importStatementCompletions4_test.go @@ -12,7 +12,7 @@ import ( func TestImportStatementCompletions4(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/internal/fourslash/tests/gen/importStatementCompletions_noPatternAmbient_test.go b/internal/fourslash/tests/gen/importStatementCompletions_noPatternAmbient_test.go index 09532666fa..4700a41492 100644 --- a/internal/fourslash/tests/gen/importStatementCompletions_noPatternAmbient_test.go +++ b/internal/fourslash/tests/gen/importStatementCompletions_noPatternAmbient_test.go @@ -12,7 +12,7 @@ import ( func TestImportStatementCompletions_noPatternAmbient(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /types.d.ts declare module "*.css" { diff --git a/internal/fourslash/tests/gen/importStatementCompletions_pnpmTransitive_test.go b/internal/fourslash/tests/gen/importStatementCompletions_pnpmTransitive_test.go index becc9be3b2..297213158f 100644 --- a/internal/fourslash/tests/gen/importStatementCompletions_pnpmTransitive_test.go +++ b/internal/fourslash/tests/gen/importStatementCompletions_pnpmTransitive_test.go @@ -12,7 +12,7 @@ import ( func TestImportStatementCompletions_pnpmTransitive(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { "compilerOptions": { "module": "commonjs" } } diff --git a/internal/fourslash/tests/gen/instanceTypesForGenericType1_test.go b/internal/fourslash/tests/gen/instanceTypesForGenericType1_test.go index 41f065341c..341cc639a5 100644 --- a/internal/fourslash/tests/gen/instanceTypesForGenericType1_test.go +++ b/internal/fourslash/tests/gen/instanceTypesForGenericType1_test.go @@ -9,7 +9,7 @@ import ( func TestInstanceTypesForGenericType1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class G { // Introduce type parameter T self: G; // Use T as type argument to form instance type diff --git a/internal/fourslash/tests/gen/javascriptModules20_test.go b/internal/fourslash/tests/gen/javascriptModules20_test.go index a8bbbd9744..762fbd1de4 100644 --- a/internal/fourslash/tests/gen/javascriptModules20_test.go +++ b/internal/fourslash/tests/gen/javascriptModules20_test.go @@ -12,7 +12,7 @@ import ( func TestJavascriptModules20(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: mod.js diff --git a/internal/fourslash/tests/gen/javascriptModules21_test.go b/internal/fourslash/tests/gen/javascriptModules21_test.go index 9e73e2b5d2..0f3c99ff0d 100644 --- a/internal/fourslash/tests/gen/javascriptModules21_test.go +++ b/internal/fourslash/tests/gen/javascriptModules21_test.go @@ -12,7 +12,7 @@ import ( func TestJavascriptModules21(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @module: system diff --git a/internal/fourslash/tests/gen/javascriptModulesTypeImport_test.go b/internal/fourslash/tests/gen/javascriptModulesTypeImport_test.go index 5ddc19a411..8a52d74992 100644 --- a/internal/fourslash/tests/gen/javascriptModulesTypeImport_test.go +++ b/internal/fourslash/tests/gen/javascriptModulesTypeImport_test.go @@ -10,7 +10,7 @@ import ( func TestJavascriptModulesTypeImport(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: types.js diff --git a/internal/fourslash/tests/gen/jsDocAugments_test.go b/internal/fourslash/tests/gen/jsDocAugments_test.go index f02040cbc4..e06b2b4f3a 100644 --- a/internal/fourslash/tests/gen/jsDocAugments_test.go +++ b/internal/fourslash/tests/gen/jsDocAugments_test.go @@ -9,7 +9,7 @@ import ( func TestJsDocAugments(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: dummy.js diff --git a/internal/fourslash/tests/gen/jsDocExtends_test.go b/internal/fourslash/tests/gen/jsDocExtends_test.go index 72667906f7..af28c91ec0 100644 --- a/internal/fourslash/tests/gen/jsDocExtends_test.go +++ b/internal/fourslash/tests/gen/jsDocExtends_test.go @@ -9,7 +9,7 @@ import ( func TestJsDocExtends(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: dummy.js diff --git a/internal/fourslash/tests/gen/jsDocFunctionSignatures10_test.go b/internal/fourslash/tests/gen/jsDocFunctionSignatures10_test.go index 19f7997c53..f85bc51a64 100644 --- a/internal/fourslash/tests/gen/jsDocFunctionSignatures10_test.go +++ b/internal/fourslash/tests/gen/jsDocFunctionSignatures10_test.go @@ -9,7 +9,7 @@ import ( func TestJsDocFunctionSignatures10(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: Foo.js diff --git a/internal/fourslash/tests/gen/jsDocFunctionSignatures12_test.go b/internal/fourslash/tests/gen/jsDocFunctionSignatures12_test.go index e698ab0b43..d2c4f23cfa 100644 --- a/internal/fourslash/tests/gen/jsDocFunctionSignatures12_test.go +++ b/internal/fourslash/tests/gen/jsDocFunctionSignatures12_test.go @@ -9,7 +9,7 @@ import ( func TestJsDocFunctionSignatures12(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: jsDocFunctionSignatures.js diff --git a/internal/fourslash/tests/gen/jsDocGenerics2_test.go b/internal/fourslash/tests/gen/jsDocGenerics2_test.go index 12f12b26d6..4cd28354ac 100644 --- a/internal/fourslash/tests/gen/jsDocGenerics2_test.go +++ b/internal/fourslash/tests/gen/jsDocGenerics2_test.go @@ -9,7 +9,7 @@ import ( func TestJsDocGenerics2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/internal/fourslash/tests/gen/jsDocInheritDoc_test.go b/internal/fourslash/tests/gen/jsDocInheritDoc_test.go index ae87d97d56..0a42834974 100644 --- a/internal/fourslash/tests/gen/jsDocInheritDoc_test.go +++ b/internal/fourslash/tests/gen/jsDocInheritDoc_test.go @@ -9,7 +9,7 @@ import ( func TestJsDocInheritDoc(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: inheritDoc.ts class Foo { diff --git a/internal/fourslash/tests/gen/jsDocPropertyDescription10_test.go b/internal/fourslash/tests/gen/jsDocPropertyDescription10_test.go index 0982119379..060d60f7de 100644 --- a/internal/fourslash/tests/gen/jsDocPropertyDescription10_test.go +++ b/internal/fourslash/tests/gen/jsDocPropertyDescription10_test.go @@ -9,7 +9,7 @@ import ( func TestJsDocPropertyDescription10(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class MultipleClass { /** Something generic */ diff --git a/internal/fourslash/tests/gen/jsDocPropertyDescription11_test.go b/internal/fourslash/tests/gen/jsDocPropertyDescription11_test.go index 6d3bea94b5..c4b9583ed1 100644 --- a/internal/fourslash/tests/gen/jsDocPropertyDescription11_test.go +++ b/internal/fourslash/tests/gen/jsDocPropertyDescription11_test.go @@ -9,7 +9,7 @@ import ( func TestJsDocPropertyDescription11(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type AliasExample = { /** Something generic */ diff --git a/internal/fourslash/tests/gen/jsDocPropertyDescription12_test.go b/internal/fourslash/tests/gen/jsDocPropertyDescription12_test.go index 2a9ef2cd40..bbe80ae7a5 100644 --- a/internal/fourslash/tests/gen/jsDocPropertyDescription12_test.go +++ b/internal/fourslash/tests/gen/jsDocPropertyDescription12_test.go @@ -9,7 +9,7 @@ import ( func TestJsDocPropertyDescription12(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type SymbolAlias = { /** Something generic */ diff --git a/internal/fourslash/tests/gen/jsDocPropertyDescription1_test.go b/internal/fourslash/tests/gen/jsDocPropertyDescription1_test.go index 78ae5c2eec..178450ade9 100644 --- a/internal/fourslash/tests/gen/jsDocPropertyDescription1_test.go +++ b/internal/fourslash/tests/gen/jsDocPropertyDescription1_test.go @@ -9,7 +9,7 @@ import ( func TestJsDocPropertyDescription1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface StringExample { /** Something generic */ diff --git a/internal/fourslash/tests/gen/jsDocPropertyDescription2_test.go b/internal/fourslash/tests/gen/jsDocPropertyDescription2_test.go index 61e9efc2cf..b46d39e62d 100644 --- a/internal/fourslash/tests/gen/jsDocPropertyDescription2_test.go +++ b/internal/fourslash/tests/gen/jsDocPropertyDescription2_test.go @@ -9,7 +9,7 @@ import ( func TestJsDocPropertyDescription2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface SymbolExample { /** Something generic */ diff --git a/internal/fourslash/tests/gen/jsDocPropertyDescription3_test.go b/internal/fourslash/tests/gen/jsDocPropertyDescription3_test.go index a6bc5fa585..9878fb69a3 100644 --- a/internal/fourslash/tests/gen/jsDocPropertyDescription3_test.go +++ b/internal/fourslash/tests/gen/jsDocPropertyDescription3_test.go @@ -9,7 +9,7 @@ import ( func TestJsDocPropertyDescription3(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface LiteralExample { /** Something generic */ diff --git a/internal/fourslash/tests/gen/jsdocTemplatePrototypeCompletions_test.go b/internal/fourslash/tests/gen/jsdocTemplatePrototypeCompletions_test.go index d6c4cca4df..4c9f6c8031 100644 --- a/internal/fourslash/tests/gen/jsdocTemplatePrototypeCompletions_test.go +++ b/internal/fourslash/tests/gen/jsdocTemplatePrototypeCompletions_test.go @@ -10,7 +10,7 @@ import ( func TestJsdocTemplatePrototypeCompletions(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @checkJs: true // @filename: index.js diff --git a/internal/fourslash/tests/gen/jsdocThrowsTagCompletion_test.go b/internal/fourslash/tests/gen/jsdocThrowsTagCompletion_test.go index bf4682bdee..1699c43d58 100644 --- a/internal/fourslash/tests/gen/jsdocThrowsTagCompletion_test.go +++ b/internal/fourslash/tests/gen/jsdocThrowsTagCompletion_test.go @@ -10,7 +10,7 @@ import ( func TestJsdocThrowsTagCompletion(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * @throws {/**/} description diff --git a/internal/fourslash/tests/gen/jsxFindAllReferencesOnRuntimeImportWithPaths1_test.go b/internal/fourslash/tests/gen/jsxFindAllReferencesOnRuntimeImportWithPaths1_test.go index 21d0c0ed94..83a9c2d649 100644 --- a/internal/fourslash/tests/gen/jsxFindAllReferencesOnRuntimeImportWithPaths1_test.go +++ b/internal/fourslash/tests/gen/jsxFindAllReferencesOnRuntimeImportWithPaths1_test.go @@ -9,7 +9,7 @@ import ( func TestJsxFindAllReferencesOnRuntimeImportWithPaths1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: project/src/foo.ts import * as x from /**/"@foo/dir/jsx-runtime"; diff --git a/internal/fourslash/tests/gen/letQuickInfoAndCompletionList_test.go b/internal/fourslash/tests/gen/letQuickInfoAndCompletionList_test.go index 66756dab7a..2c0f5781f1 100644 --- a/internal/fourslash/tests/gen/letQuickInfoAndCompletionList_test.go +++ b/internal/fourslash/tests/gen/letQuickInfoAndCompletionList_test.go @@ -11,7 +11,7 @@ import ( func TestLetQuickInfoAndCompletionList(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let /*1*/a = 10; /*2*/a = 30; diff --git a/internal/fourslash/tests/gen/localGetReferences_test.go b/internal/fourslash/tests/gen/localGetReferences_test.go index 9a301f5d68..a64ef60797 100644 --- a/internal/fourslash/tests/gen/localGetReferences_test.go +++ b/internal/fourslash/tests/gen/localGetReferences_test.go @@ -9,7 +9,7 @@ import ( func TestLocalGetReferences(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: localGetReferences_1.ts // Comment Refence Test: g/*43*/lobalVar diff --git a/internal/fourslash/tests/gen/memberListOfExportedClass_test.go b/internal/fourslash/tests/gen/memberListOfExportedClass_test.go index 1bbeae0c0d..d2bc75aafe 100644 --- a/internal/fourslash/tests/gen/memberListOfExportedClass_test.go +++ b/internal/fourslash/tests/gen/memberListOfExportedClass_test.go @@ -11,7 +11,7 @@ import ( func TestMemberListOfExportedClass(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module M { export class C { public pub = 0; private priv = 1; } diff --git a/internal/fourslash/tests/gen/memberListOnContextualThis_test.go b/internal/fourslash/tests/gen/memberListOnContextualThis_test.go index 8cff2cde74..6c201b4412 100644 --- a/internal/fourslash/tests/gen/memberListOnContextualThis_test.go +++ b/internal/fourslash/tests/gen/memberListOnContextualThis_test.go @@ -11,7 +11,7 @@ import ( func TestMemberListOnContextualThis(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface A { a: string; diff --git a/internal/fourslash/tests/gen/moduleReexportedIntoGlobalQuickInfo_test.go b/internal/fourslash/tests/gen/moduleReexportedIntoGlobalQuickInfo_test.go index 4c94ce915e..2693ca9194 100644 --- a/internal/fourslash/tests/gen/moduleReexportedIntoGlobalQuickInfo_test.go +++ b/internal/fourslash/tests/gen/moduleReexportedIntoGlobalQuickInfo_test.go @@ -9,7 +9,7 @@ import ( func TestModuleReexportedIntoGlobalQuickInfo(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /node_modules/@types/three/index.d.ts export class Vector3 {} diff --git a/internal/fourslash/tests/gen/ngProxy1_test.go b/internal/fourslash/tests/gen/ngProxy1_test.go index 7c23c1665b..bafeb858fd 100644 --- a/internal/fourslash/tests/gen/ngProxy1_test.go +++ b/internal/fourslash/tests/gen/ngProxy1_test.go @@ -9,7 +9,7 @@ import ( func TestNgProxy1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tsconfig.json { diff --git a/internal/fourslash/tests/gen/noQuickInfoForLabel_test.go b/internal/fourslash/tests/gen/noQuickInfoForLabel_test.go index c7002dd57d..341dde28fd 100644 --- a/internal/fourslash/tests/gen/noQuickInfoForLabel_test.go +++ b/internal/fourslash/tests/gen/noQuickInfoForLabel_test.go @@ -9,7 +9,7 @@ import ( func TestNoQuickInfoForLabel(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/label : while(true){ break /*2*/label; diff --git a/internal/fourslash/tests/gen/noQuickInfoInWhitespace_test.go b/internal/fourslash/tests/gen/noQuickInfoInWhitespace_test.go index 6bd9ccdcae..124afaa33c 100644 --- a/internal/fourslash/tests/gen/noQuickInfoInWhitespace_test.go +++ b/internal/fourslash/tests/gen/noQuickInfoInWhitespace_test.go @@ -9,7 +9,7 @@ import ( func TestNoQuickInfoInWhitespace(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { /*1*/ private _mspointerupHandler(args) { diff --git a/internal/fourslash/tests/gen/nodeModulesImportCompletions1_test.go b/internal/fourslash/tests/gen/nodeModulesImportCompletions1_test.go index 0d2c48d62c..0efffeb04e 100644 --- a/internal/fourslash/tests/gen/nodeModulesImportCompletions1_test.go +++ b/internal/fourslash/tests/gen/nodeModulesImportCompletions1_test.go @@ -10,7 +10,7 @@ import ( func TestNodeModulesImportCompletions1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @module: node18 diff --git a/internal/fourslash/tests/gen/numericPropertyNames_test.go b/internal/fourslash/tests/gen/numericPropertyNames_test.go index 1cc96bd91a..cb5162b595 100644 --- a/internal/fourslash/tests/gen/numericPropertyNames_test.go +++ b/internal/fourslash/tests/gen/numericPropertyNames_test.go @@ -9,7 +9,7 @@ import ( func TestNumericPropertyNames(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var /**/t2 = { 0: 1, 1: "" };` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/internal/fourslash/tests/gen/overloadQuickInfo_test.go b/internal/fourslash/tests/gen/overloadQuickInfo_test.go index cb80335610..eccdb2fcf3 100644 --- a/internal/fourslash/tests/gen/overloadQuickInfo_test.go +++ b/internal/fourslash/tests/gen/overloadQuickInfo_test.go @@ -9,7 +9,7 @@ import ( func TestOverloadQuickInfo(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function Foo(a: string, b: number, c: boolean); function Foo(a: any, name: string, age: number); diff --git a/internal/fourslash/tests/gen/parameterWithDestructuring_test.go b/internal/fourslash/tests/gen/parameterWithDestructuring_test.go index 749a2d2213..cbb40866b2 100644 --- a/internal/fourslash/tests/gen/parameterWithDestructuring_test.go +++ b/internal/fourslash/tests/gen/parameterWithDestructuring_test.go @@ -9,7 +9,7 @@ import ( func TestParameterWithDestructuring(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const result = [{ a: 'hello' }] .map(({ /*1*/a }) => /*2*/a) diff --git a/internal/fourslash/tests/gen/parameterWithNestedDestructuring_test.go b/internal/fourslash/tests/gen/parameterWithNestedDestructuring_test.go index e4e5929e5f..56b13ea5cb 100644 --- a/internal/fourslash/tests/gen/parameterWithNestedDestructuring_test.go +++ b/internal/fourslash/tests/gen/parameterWithNestedDestructuring_test.go @@ -9,7 +9,7 @@ import ( func TestParameterWithNestedDestructuring(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[[{ a: 'hello', b: [1] }]] .map(([{ a, b: [c] }]) => /*1*/a + /*2*/c); diff --git a/internal/fourslash/tests/gen/pathCompletionsAllowModuleAugmentationExtensions_test.go b/internal/fourslash/tests/gen/pathCompletionsAllowModuleAugmentationExtensions_test.go index 191b789fa3..bf3a2b2ce8 100644 --- a/internal/fourslash/tests/gen/pathCompletionsAllowModuleAugmentationExtensions_test.go +++ b/internal/fourslash/tests/gen/pathCompletionsAllowModuleAugmentationExtensions_test.go @@ -10,7 +10,7 @@ import ( func TestPathCompletionsAllowModuleAugmentationExtensions(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /project/foo.css export const foo = 0; diff --git a/internal/fourslash/tests/gen/pathCompletionsAllowTsExtensions_test.go b/internal/fourslash/tests/gen/pathCompletionsAllowTsExtensions_test.go index 29d38202a1..f62376432e 100644 --- a/internal/fourslash/tests/gen/pathCompletionsAllowTsExtensions_test.go +++ b/internal/fourslash/tests/gen/pathCompletionsAllowTsExtensions_test.go @@ -10,7 +10,7 @@ import ( func TestPathCompletionsAllowTsExtensions(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @moduleResolution: bundler // @allowImportingTsExtensions: true diff --git a/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsBundlerNoNodeCondition_test.go b/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsBundlerNoNodeCondition_test.go index efdb47e16a..09c0c6b1e1 100644 --- a/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsBundlerNoNodeCondition_test.go +++ b/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsBundlerNoNodeCondition_test.go @@ -11,7 +11,7 @@ import ( func TestPathCompletionsPackageJsonExportsBundlerNoNodeCondition(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @moduleResolution: bundler // @Filename: /node_modules/foo/package.json diff --git a/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsCustomConditions_test.go b/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsCustomConditions_test.go index 18c0993327..47c494aec8 100644 --- a/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsCustomConditions_test.go +++ b/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsCustomConditions_test.go @@ -11,7 +11,7 @@ import ( func TestPathCompletionsPackageJsonExportsCustomConditions(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @customConditions: custom-condition diff --git a/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard10_test.go b/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard10_test.go index d990404866..4bd211ca28 100644 --- a/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard10_test.go +++ b/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard10_test.go @@ -11,7 +11,7 @@ import ( func TestPathCompletionsPackageJsonExportsWildcard10(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: preserve // @moduleResolution: bundler diff --git a/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard3_test.go b/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard3_test.go index 9966a03fae..dbe9c6b51d 100644 --- a/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard3_test.go +++ b/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard3_test.go @@ -11,7 +11,7 @@ import ( func TestPathCompletionsPackageJsonExportsWildcard3(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /node_modules/foo/package.json diff --git a/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard4_test.go b/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard4_test.go index 15722a70f4..4cfc4de081 100644 --- a/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard4_test.go +++ b/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard4_test.go @@ -11,7 +11,7 @@ import ( func TestPathCompletionsPackageJsonExportsWildcard4(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /node_modules/foo/package.json diff --git a/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard5_test.go b/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard5_test.go index 40f7e40386..d1e588ce16 100644 --- a/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard5_test.go +++ b/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard5_test.go @@ -11,7 +11,7 @@ import ( func TestPathCompletionsPackageJsonExportsWildcard5(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /node_modules/foo/package.json diff --git a/internal/fourslash/tests/gen/quickInfoBindingPatternInJsdocNoCrash1_test.go b/internal/fourslash/tests/gen/quickInfoBindingPatternInJsdocNoCrash1_test.go index 7baa2ca0df..fa34b71931 100644 --- a/internal/fourslash/tests/gen/quickInfoBindingPatternInJsdocNoCrash1_test.go +++ b/internal/fourslash/tests/gen/quickInfoBindingPatternInJsdocNoCrash1_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoBindingPatternInJsdocNoCrash1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** @type {({ /*1*/data: any }?) => { data: string[] }} */ function useQuery({ data }): { data: string[] } { diff --git a/internal/fourslash/tests/gen/quickInfoClassKeyword_test.go b/internal/fourslash/tests/gen/quickInfoClassKeyword_test.go index 38c351a248..64df102d86 100644 --- a/internal/fourslash/tests/gen/quickInfoClassKeyword_test.go +++ b/internal/fourslash/tests/gen/quickInfoClassKeyword_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoClassKeyword(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[1].forEach(cla/*1*/ss {}); [1].forEach(cla/*2*/ss OK{});` diff --git a/internal/fourslash/tests/gen/quickInfoContextualTyping_test.go b/internal/fourslash/tests/gen/quickInfoContextualTyping_test.go index 270d6c285a..529d0347d3 100644 --- a/internal/fourslash/tests/gen/quickInfoContextualTyping_test.go +++ b/internal/fourslash/tests/gen/quickInfoContextualTyping_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoContextualTyping(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// DEFAULT INTERFACES interface IFoo { diff --git a/internal/fourslash/tests/gen/quickInfoContextuallyTypedSignatureOptionalParameterFromIntersection1_test.go b/internal/fourslash/tests/gen/quickInfoContextuallyTypedSignatureOptionalParameterFromIntersection1_test.go index 8ece7e9d9d..852e11587c 100644 --- a/internal/fourslash/tests/gen/quickInfoContextuallyTypedSignatureOptionalParameterFromIntersection1_test.go +++ b/internal/fourslash/tests/gen/quickInfoContextuallyTypedSignatureOptionalParameterFromIntersection1_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoContextuallyTypedSignatureOptionalParameterFromIntersection1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true const optionals: ((a?: number) => unknown) & ((b?: string) => unknown) = ( diff --git a/internal/fourslash/tests/gen/quickInfoDisplayPartsIife_test.go b/internal/fourslash/tests/gen/quickInfoDisplayPartsIife_test.go index 13f2a17364..3926fccbff 100644 --- a/internal/fourslash/tests/gen/quickInfoDisplayPartsIife_test.go +++ b/internal/fourslash/tests/gen/quickInfoDisplayPartsIife_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoDisplayPartsIife(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strictNullChecks: true var iife = (function foo/*1*/(x, y) { return x })(12);` diff --git a/internal/fourslash/tests/gen/quickInfoGenerics_test.go b/internal/fourslash/tests/gen/quickInfoGenerics_test.go index 64c60b8208..81291d1488 100644 --- a/internal/fourslash/tests/gen/quickInfoGenerics_test.go +++ b/internal/fourslash/tests/gen/quickInfoGenerics_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoGenerics(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Con/*1*/tainer { x: T; diff --git a/internal/fourslash/tests/gen/quickInfoGetterSetter_test.go b/internal/fourslash/tests/gen/quickInfoGetterSetter_test.go index ae6570157b..2ab419e713 100644 --- a/internal/fourslash/tests/gen/quickInfoGetterSetter_test.go +++ b/internal/fourslash/tests/gen/quickInfoGetterSetter_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoGetterSetter(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @target: es2015 class C { diff --git a/internal/fourslash/tests/gen/quickInfoImportNonunicodePath_test.go b/internal/fourslash/tests/gen/quickInfoImportNonunicodePath_test.go index ae1f033526..a805007638 100644 --- a/internal/fourslash/tests/gen/quickInfoImportNonunicodePath_test.go +++ b/internal/fourslash/tests/gen/quickInfoImportNonunicodePath_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoImportNonunicodePath(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /江南今何在/tmp.ts export const foo = 1; diff --git a/internal/fourslash/tests/gen/quickInfoInInvalidIndexSignature_test.go b/internal/fourslash/tests/gen/quickInfoInInvalidIndexSignature_test.go index 67f0c19a65..d0ebbbf8ae 100644 --- a/internal/fourslash/tests/gen/quickInfoInInvalidIndexSignature_test.go +++ b/internal/fourslash/tests/gen/quickInfoInInvalidIndexSignature_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoInInvalidIndexSignature(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function method() { var /**/dictionary = <{ [index]: string; }>{}; }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/internal/fourslash/tests/gen/quickInfoInJsdocInTsFile1_test.go b/internal/fourslash/tests/gen/quickInfoInJsdocInTsFile1_test.go index 11909b3bdc..c9a1334314 100644 --- a/internal/fourslash/tests/gen/quickInfoInJsdocInTsFile1_test.go +++ b/internal/fourslash/tests/gen/quickInfoInJsdocInTsFile1_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoInJsdocInTsFile1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** @type {() => { /*1*/data: string[] }} */ function test(): { data: string[] } { diff --git a/internal/fourslash/tests/gen/quickInfoInOptionalChain_test.go b/internal/fourslash/tests/gen/quickInfoInOptionalChain_test.go index 25cd51a97b..d1e2de1a16 100644 --- a/internal/fourslash/tests/gen/quickInfoInOptionalChain_test.go +++ b/internal/fourslash/tests/gen/quickInfoInOptionalChain_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoInOptionalChain(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface A { diff --git a/internal/fourslash/tests/gen/quickInfoInWithBlock_test.go b/internal/fourslash/tests/gen/quickInfoInWithBlock_test.go index 98eade74fe..8d900f498e 100644 --- a/internal/fourslash/tests/gen/quickInfoInWithBlock_test.go +++ b/internal/fourslash/tests/gen/quickInfoInWithBlock_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoInWithBlock(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `with (x) { function /*1*/f() { } diff --git a/internal/fourslash/tests/gen/quickInfoJSDocBackticks_test.go b/internal/fourslash/tests/gen/quickInfoJSDocBackticks_test.go index 4bf7818748..5e0cb106a6 100644 --- a/internal/fourslash/tests/gen/quickInfoJSDocBackticks_test.go +++ b/internal/fourslash/tests/gen/quickInfoJSDocBackticks_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoJSDocBackticks(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noEmit: true // @allowJs: true diff --git a/internal/fourslash/tests/gen/quickInfoJSDocFunctionNew_test.go b/internal/fourslash/tests/gen/quickInfoJSDocFunctionNew_test.go index 3154ce1174..aa7d6cdb3d 100644 --- a/internal/fourslash/tests/gen/quickInfoJSDocFunctionNew_test.go +++ b/internal/fourslash/tests/gen/quickInfoJSDocFunctionNew_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoJSDocFunctionNew(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: Foo.js diff --git a/internal/fourslash/tests/gen/quickInfoJSDocFunctionThis_test.go b/internal/fourslash/tests/gen/quickInfoJSDocFunctionThis_test.go index d8cd4721bd..17d572ebc9 100644 --- a/internal/fourslash/tests/gen/quickInfoJSDocFunctionThis_test.go +++ b/internal/fourslash/tests/gen/quickInfoJSDocFunctionThis_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoJSDocFunctionThis(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: Foo.js diff --git a/internal/fourslash/tests/gen/quickInfoJSExport_test.go b/internal/fourslash/tests/gen/quickInfoJSExport_test.go index d8678172b0..61cc885b59 100644 --- a/internal/fourslash/tests/gen/quickInfoJSExport_test.go +++ b/internal/fourslash/tests/gen/quickInfoJSExport_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoJSExport(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.js // @allowJs: true diff --git a/internal/fourslash/tests/gen/quickInfoJsDocGetterSetterNoCrash1_test.go b/internal/fourslash/tests/gen/quickInfoJsDocGetterSetterNoCrash1_test.go index 886aa06fbe..bce8d14781 100644 --- a/internal/fourslash/tests/gen/quickInfoJsDocGetterSetterNoCrash1_test.go +++ b/internal/fourslash/tests/gen/quickInfoJsDocGetterSetterNoCrash1_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoJsDocGetterSetterNoCrash1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class A implements A { get x(): string { return "" } diff --git a/internal/fourslash/tests/gen/quickInfoJsDocNonDiscriminatedUnionSharedProp_test.go b/internal/fourslash/tests/gen/quickInfoJsDocNonDiscriminatedUnionSharedProp_test.go index f51e5b0189..78dc877d6d 100644 --- a/internal/fourslash/tests/gen/quickInfoJsDocNonDiscriminatedUnionSharedProp_test.go +++ b/internal/fourslash/tests/gen/quickInfoJsDocNonDiscriminatedUnionSharedProp_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoJsDocNonDiscriminatedUnionSharedProp(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Entries { /** diff --git a/internal/fourslash/tests/gen/quickInfoMappedTypeMethods_test.go b/internal/fourslash/tests/gen/quickInfoMappedTypeMethods_test.go index aa599f2a08..60a3ef6150 100644 --- a/internal/fourslash/tests/gen/quickInfoMappedTypeMethods_test.go +++ b/internal/fourslash/tests/gen/quickInfoMappedTypeMethods_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoMappedTypeMethods(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type M = { [K in 'one']: any }; const x: M = { diff --git a/internal/fourslash/tests/gen/quickInfoMappedTypeRecursiveInference_test.go b/internal/fourslash/tests/gen/quickInfoMappedTypeRecursiveInference_test.go index 3e5a2acb7e..322e2ded99 100644 --- a/internal/fourslash/tests/gen/quickInfoMappedTypeRecursiveInference_test.go +++ b/internal/fourslash/tests/gen/quickInfoMappedTypeRecursiveInference_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoMappedTypeRecursiveInference(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: test.ts interface A { a: A } diff --git a/internal/fourslash/tests/gen/quickInfoMappedType_test.go b/internal/fourslash/tests/gen/quickInfoMappedType_test.go index b6ccbcedb2..ab92f6a6bf 100644 --- a/internal/fourslash/tests/gen/quickInfoMappedType_test.go +++ b/internal/fourslash/tests/gen/quickInfoMappedType_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoMappedType(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { /** m documentation */ m(): void; diff --git a/internal/fourslash/tests/gen/quickInfoModuleVariables_test.go b/internal/fourslash/tests/gen/quickInfoModuleVariables_test.go index 3c88e8879f..f4d1ce82f2 100644 --- a/internal/fourslash/tests/gen/quickInfoModuleVariables_test.go +++ b/internal/fourslash/tests/gen/quickInfoModuleVariables_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoModuleVariables(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = 1; module M { diff --git a/internal/fourslash/tests/gen/quickInfoNarrowedTypeOfAliasSymbol_test.go b/internal/fourslash/tests/gen/quickInfoNarrowedTypeOfAliasSymbol_test.go index 9bd31a2bfa..93786c3383 100644 --- a/internal/fourslash/tests/gen/quickInfoNarrowedTypeOfAliasSymbol_test.go +++ b/internal/fourslash/tests/gen/quickInfoNarrowedTypeOfAliasSymbol_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoNarrowedTypeOfAliasSymbol(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @Filename: modules.ts diff --git a/internal/fourslash/tests/gen/quickInfoNestedGenericCalls_test.go b/internal/fourslash/tests/gen/quickInfoNestedGenericCalls_test.go index c7566cdfc8..61ac1b40fd 100644 --- a/internal/fourslash/tests/gen/quickInfoNestedGenericCalls_test.go +++ b/internal/fourslash/tests/gen/quickInfoNestedGenericCalls_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoNestedGenericCalls(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true /*1*/m({ foo: /*2*/$("foo") }); diff --git a/internal/fourslash/tests/gen/quickInfoOnArgumentsInsideFunction_test.go b/internal/fourslash/tests/gen/quickInfoOnArgumentsInsideFunction_test.go index b79aef3459..1dca68f7b8 100644 --- a/internal/fourslash/tests/gen/quickInfoOnArgumentsInsideFunction_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnArgumentsInsideFunction_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnArgumentsInsideFunction(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(x: string) { return /*1*/arguments; diff --git a/internal/fourslash/tests/gen/quickInfoOnCatchVariable_test.go b/internal/fourslash/tests/gen/quickInfoOnCatchVariable_test.go index 03f314d827..7cc1447fd7 100644 --- a/internal/fourslash/tests/gen/quickInfoOnCatchVariable_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnCatchVariable_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnCatchVariable(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f() { try { } catch (/**/e) { } diff --git a/internal/fourslash/tests/gen/quickInfoOnClosingJsx_test.go b/internal/fourslash/tests/gen/quickInfoOnClosingJsx_test.go index c85c6abf9d..aafa61e679 100644 --- a/internal/fourslash/tests/gen/quickInfoOnClosingJsx_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnClosingJsx_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnClosingJsx(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: foo.tsx let x =

diff --git a/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation1_test.go b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation1_test.go index cfc5a8c428..07c1c08695 100644 --- a/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation1_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation1_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnElementAccessInWriteLocation1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @exactOptionalPropertyTypes: true diff --git a/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation2_test.go b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation2_test.go index 70cdd15d45..fe809c81ea 100644 --- a/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation2_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation2_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnElementAccessInWriteLocation2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @exactOptionalPropertyTypes: true diff --git a/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation3_test.go b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation3_test.go index 88d59e414d..392033b4a3 100644 --- a/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation3_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation3_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnElementAccessInWriteLocation3(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @exactOptionalPropertyTypes: true diff --git a/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation4_test.go b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation4_test.go index 6efad423d2..cd40eccd62 100644 --- a/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation4_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation4_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnElementAccessInWriteLocation4(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface Serializer { diff --git a/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation5_test.go b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation5_test.go index 18e109dd7d..6a962962fb 100644 --- a/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation5_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation5_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnElementAccessInWriteLocation5(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface Serializer { diff --git a/internal/fourslash/tests/gen/quickInfoOnErrorTypes1_test.go b/internal/fourslash/tests/gen/quickInfoOnErrorTypes1_test.go index 65eb91b01b..0d6a747e02 100644 --- a/internal/fourslash/tests/gen/quickInfoOnErrorTypes1_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnErrorTypes1_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnErrorTypes1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var /*A*/f: { x: number; diff --git a/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction1_test.go b/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction1_test.go index 7784764eb8..c76e12a576 100644 --- a/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction1_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction1_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnFunctionPropertyReturnedFromGenericFunction1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function createProps(t: T) { function getProps() {} diff --git a/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction2_test.go b/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction2_test.go index df60ba097f..8c3998f742 100644 --- a/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction2_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction2_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnFunctionPropertyReturnedFromGenericFunction2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function createProps(t: T) { const getProps = function() {} diff --git a/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction3_test.go b/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction3_test.go index f64d4e8699..d57777412c 100644 --- a/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction3_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction3_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnFunctionPropertyReturnedFromGenericFunction3(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function createProps(t: T) { const getProps = () => {} diff --git a/internal/fourslash/tests/gen/quickInfoOnGenericWithConstraints1_test.go b/internal/fourslash/tests/gen/quickInfoOnGenericWithConstraints1_test.go index 789d25fafd..2cf890fc23 100644 --- a/internal/fourslash/tests/gen/quickInfoOnGenericWithConstraints1_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnGenericWithConstraints1_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnGenericWithConstraints1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Fo/*1*/o {}` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/internal/fourslash/tests/gen/quickInfoOnInternalAliases_test.go b/internal/fourslash/tests/gen/quickInfoOnInternalAliases_test.go index 1fc5359155..dbf9348311 100644 --- a/internal/fourslash/tests/gen/quickInfoOnInternalAliases_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnInternalAliases_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnInternalAliases(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** Module comment*/ export module m1 { diff --git a/internal/fourslash/tests/gen/quickInfoOnMethodOfImportEquals_test.go b/internal/fourslash/tests/gen/quickInfoOnMethodOfImportEquals_test.go index 1d8059c708..743a7dc7b6 100644 --- a/internal/fourslash/tests/gen/quickInfoOnMethodOfImportEquals_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnMethodOfImportEquals_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnMethodOfImportEquals(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.d.ts declare class C { diff --git a/internal/fourslash/tests/gen/quickInfoOnThis_test.go b/internal/fourslash/tests/gen/quickInfoOnThis_test.go index 207b2dddff..ad489f1635 100644 --- a/internal/fourslash/tests/gen/quickInfoOnThis_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnThis_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnThis(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Restricted { n: number; diff --git a/internal/fourslash/tests/gen/quickInfoOnUndefined_test.go b/internal/fourslash/tests/gen/quickInfoOnUndefined_test.go index 5c1beb6b0d..fc975cbc54 100644 --- a/internal/fourslash/tests/gen/quickInfoOnUndefined_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnUndefined_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnUndefined(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(a: string) { } diff --git a/internal/fourslash/tests/gen/quickInfoOnVarInArrowExpression_test.go b/internal/fourslash/tests/gen/quickInfoOnVarInArrowExpression_test.go index afbd52b1d2..b888df96e2 100644 --- a/internal/fourslash/tests/gen/quickInfoOnVarInArrowExpression_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnVarInArrowExpression_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnVarInArrowExpression(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IMap { [key: string]: T; diff --git a/internal/fourslash/tests/gen/stringCompletionsImportOrExportSpecifier_test.go b/internal/fourslash/tests/gen/stringCompletionsImportOrExportSpecifier_test.go index 53cf64bfac..aa30a667ee 100644 --- a/internal/fourslash/tests/gen/stringCompletionsImportOrExportSpecifier_test.go +++ b/internal/fourslash/tests/gen/stringCompletionsImportOrExportSpecifier_test.go @@ -10,7 +10,7 @@ import ( func TestStringCompletionsImportOrExportSpecifier(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: exports.ts export let foo = 1; diff --git a/internal/fourslash/tests/gen/stringCompletionsVsEscaping_test.go b/internal/fourslash/tests/gen/stringCompletionsVsEscaping_test.go index 19708dc3fc..23df266492 100644 --- a/internal/fourslash/tests/gen/stringCompletionsVsEscaping_test.go +++ b/internal/fourslash/tests/gen/stringCompletionsVsEscaping_test.go @@ -10,7 +10,7 @@ import ( func TestStringCompletionsVsEscaping(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type Value

= ` + "`" + `var(--\\\\, ${P})` + "`" + ` export const value: Value<'one' | 'two'> = "/*1*/" diff --git a/internal/fourslash/tests/gen/tsxCompletion8_test.go b/internal/fourslash/tests/gen/tsxCompletion8_test.go index 9dd5c3cfd5..9afbccbdea 100644 --- a/internal/fourslash/tests/gen/tsxCompletion8_test.go +++ b/internal/fourslash/tests/gen/tsxCompletion8_test.go @@ -10,7 +10,7 @@ import ( func TestTsxCompletion8(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx declare module JSX { From 55847b604722166f06fa8738e3ca1ceb114a1202 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Fri, 15 Aug 2025 10:33:30 -0700 Subject: [PATCH 6/6] Fix race --- internal/fourslash/_scripts/failingTests.txt | 110 +++++++++--------- internal/fourslash/fourslash.go | 14 +-- ...ForStringLiteralNonrelativeImport7_test.go | 2 +- ...ngLiteralNonrelativeImportTypings2_test.go | 2 +- ...ionForStringLiteralRelativeImport4_test.go | 2 +- ...ngLiteralRelativeImportAllowJSTrue_test.go | 2 +- .../tests/gen/completionInJsDoc_test.go | 2 +- ...lderLocations_VariableDeclarations_test.go | 2 +- .../gen/completionListForDerivedType1_test.go | 2 +- .../tests/gen/indexerReturnTypes1_test.go | 2 +- .../gen/indirectClassInstantiation_test.go | 2 +- .../gen/jsDocFunctionSignatures11_test.go | 2 +- .../gen/jsDocFunctionSignatures13_test.go | 2 +- .../gen/jsDocFunctionSignatures7_test.go | 2 +- .../gen/jsDocFunctionSignatures8_test.go | 2 +- .../gen/jsDocPropertyDescription4_test.go | 2 +- .../gen/jsDocPropertyDescription5_test.go | 2 +- .../gen/jsDocPropertyDescription6_test.go | 2 +- .../gen/jsDocPropertyDescription7_test.go | 2 +- .../gen/jsDocPropertyDescription8_test.go | 2 +- .../gen/jsDocPropertyDescription9_test.go | 2 +- .../tests/gen/jsDocTagsWithHyphen_test.go | 2 +- ...jsQuickInfoGenerallyAcceptableSize_test.go | 2 +- .../tests/gen/jsRequireQuickInfo_test.go | 2 +- .../tests/gen/jsdocCallbackTag_test.go | 2 +- .../fourslash/tests/gen/jsdocLink2_test.go | 2 +- .../fourslash/tests/gen/jsdocLink3_test.go | 2 +- .../fourslash/tests/gen/jsdocLink6_test.go | 2 +- .../gen/jsdocLink_findAllReferences1_test.go | 2 +- .../tests/gen/jsdocTypedefTag2_test.go | 2 +- .../gen/jsdocTypedefTagNamespace_test.go | 2 +- .../tests/gen/jsdocTypedefTag_test.go | 2 +- .../fourslash/tests/gen/localFunction_test.go | 2 +- .../gen/memberListInReopenedEnum_test.go | 2 +- .../tests/gen/memberListInWithBlock_test.go | 2 +- .../tests/gen/overloadQuickInfo_test.go | 2 +- .../gen/parameterWithDestructuring_test.go | 2 +- .../parameterWithNestedDestructuring_test.go | 2 +- ...sAllowModuleAugmentationExtensions_test.go | 2 +- .../pathCompletionsAllowTsExtensions_test.go | 2 +- ...eJsonExportsBundlerNoNodeCondition_test.go | 2 +- ...PackageJsonExportsCustomConditions_test.go | 2 +- ...etionsPackageJsonExportsWildcard10_test.go | 2 +- ...letionsPackageJsonExportsWildcard3_test.go | 2 +- ...letionsPackageJsonExportsWildcard4_test.go | 2 +- ...letionsPackageJsonExportsWildcard5_test.go | 2 +- ...hCompletionsTypesVersionsWildcard1_test.go | 2 +- ...hCompletionsTypesVersionsWildcard2_test.go | 2 +- ...hCompletionsTypesVersionsWildcard4_test.go | 2 +- ...hCompletionsTypesVersionsWildcard5_test.go | 2 +- ...hCompletionsTypesVersionsWildcard6_test.go | 2 +- ...kInfoBindingPatternInJsdocNoCrash1_test.go | 2 +- .../tests/gen/quickInfoClassKeyword_test.go | 2 +- .../gen/quickInfoContextualTyping_test.go | 2 +- ...OptionalParameterFromIntersection1_test.go | 2 +- .../gen/quickInfoDisplayPartsIife_test.go | 2 +- .../tests/gen/quickInfoGenerics_test.go | 2 +- .../tests/gen/quickInfoGetterSetter_test.go | 2 +- .../gen/quickInfoImportNonunicodePath_test.go | 2 +- .../quickInfoInInvalidIndexSignature_test.go | 2 +- .../gen/quickInfoInJsdocInTsFile1_test.go | 2 +- .../gen/quickInfoInOptionalChain_test.go | 2 +- .../tests/gen/quickInfoInWithBlock_test.go | 2 +- .../tests/gen/quickInfoJSDocBackticks_test.go | 2 +- .../gen/quickInfoJSDocFunctionNew_test.go | 2 +- .../gen/quickInfoJSDocFunctionThis_test.go | 2 +- .../tests/gen/quickInfoJSExport_test.go | 2 +- ...quickInfoJsDocGetterSetterNoCrash1_test.go | 2 +- ...DocNonDiscriminatedUnionSharedProp_test.go | 2 +- ...ertyAssignedAfterMethodDeclaration_test.go | 2 +- .../quickInfoJsdocTypedefMissingType_test.go | 2 +- .../gen/quickInfoMappedSpreadTypes_test.go | 2 +- .../gen/quickInfoOnCatchVariable_test.go | 2 +- .../tests/gen/quickInfoOnClosingJsx_test.go | 2 +- ...nfoOnElementAccessInWriteLocation1_test.go | 2 +- ...nfoOnElementAccessInWriteLocation2_test.go | 2 +- ...nfoOnElementAccessInWriteLocation3_test.go | 2 +- ...nfoOnElementAccessInWriteLocation4_test.go | 2 +- ...nfoOnElementAccessInWriteLocation5_test.go | 2 +- .../tests/gen/quickInfoOnErrorTypes1_test.go | 2 +- ...opertyReturnedFromGenericFunction1_test.go | 2 +- ...opertyReturnedFromGenericFunction2_test.go | 2 +- ...opertyReturnedFromGenericFunction3_test.go | 2 +- ...quickInfoOnGenericWithConstraints1_test.go | 2 +- .../gen/quickInfoOnInternalAliases_test.go | 2 +- .../quickInfoOnMethodOfImportEquals_test.go | 2 +- .../tests/gen/quickInfoOnThis_test.go | 2 +- .../tests/gen/quickInfoOnUndefined_test.go | 2 +- .../quickInfoOnVarInArrowExpression_test.go | 2 +- .../gen/referencesForExportedValues_test.go | 2 +- ...CompletionsImportOrExportSpecifier_test.go | 2 +- .../gen/stringCompletionsVsEscaping_test.go | 2 +- ...heticImportFromBabelGeneratedFile1_test.go | 2 +- ...heticImportFromBabelGeneratedFile2_test.go | 2 +- .../tests/gen/thisBindingInLambda_test.go | 2 +- .../thisPredicateFunctionQuickInfo01_test.go | 2 +- .../thisPredicateFunctionQuickInfo02_test.go | 2 +- ...lashRefPathCompletionAbsolutePaths_test.go | 2 +- ...ripleSlashRefPathCompletionContext_test.go | 2 +- ...thCompletionExtensionsAllowJSFalse_test.go | 2 +- ...athCompletionExtensionsAllowJSTrue_test.go | 2 +- ...leSlashRefPathCompletionHiddenFile_test.go | 2 +- ...ipleSlashRefPathCompletionRootdirs_test.go | 2 +- ...eferencesOnRuntimeImportWithPaths1_test.go | 2 +- .../tests/gen/tsxCompletion12_test.go | 2 +- .../tests/gen/tsxCompletion13_test.go | 2 +- .../tests/gen/tsxCompletion14_test.go | 2 +- .../tests/gen/tsxCompletion15_test.go | 2 +- .../gen/tsxCompletionNonTagLessThan_test.go | 2 +- .../fourslash/tests/gen/tsxQuickInfo4_test.go | 2 +- .../fourslash/tests/gen/tsxQuickInfo5_test.go | 2 +- .../fourslash/tests/gen/tsxQuickInfo6_test.go | 2 +- 112 files changed, 167 insertions(+), 177 deletions(-) diff --git a/internal/fourslash/_scripts/failingTests.txt b/internal/fourslash/_scripts/failingTests.txt index d2eed637ec..230bca09e4 100644 --- a/internal/fourslash/_scripts/failingTests.txt +++ b/internal/fourslash/_scripts/failingTests.txt @@ -1,8 +1,8 @@ TestCompletionForStringLiteral +TestCompletionForStringLiteralNonrelativeImport7 +TestCompletionForStringLiteralNonrelativeImportTypings2 TestCompletionForStringLiteralNonrelativeImportTypings3 -TestCompletionForStringLiteralRelativeImport4 TestCompletionForStringLiteralRelativeImport6 -TestCompletionForStringLiteralRelativeImportAllowJSTrue TestCompletionForStringLiteralWithDynamicImport TestCompletionForStringLiteral_details TestCompletionForStringLiteral_quotePreference @@ -24,39 +24,25 @@ TestCompletionImportModuleSpecifierEndingTsxPreserve TestCompletionImportModuleSpecifierEndingTsxReact TestCompletionImportModuleSpecifierEndingUnsupportedExtension TestCompletionInFunctionLikeBody_includesPrimitiveTypes -TestCompletionInJsDoc TestCompletionInNamedImportLocation TestCompletionInUncheckedJSFile -TestIndexerReturnTypes1 -TestIndirectClassInstantiation -TestJsDocFunctionSignatures11 -TestJsDocFunctionSignatures13 -TestJsDocFunctionSignatures7 -TestJsDocFunctionSignatures8 -TestJsDocPropertyDescription4 -TestJsDocPropertyDescription5 -TestJsDocPropertyDescription6 -TestJsDocPropertyDescription7 -TestJsDocPropertyDescription8 -TestJsDocPropertyDescription9 -TestJsDocTagsWithHyphen -TestJsQuickInfoGenerallyAcceptableSize -TestJsRequireQuickInfo -TestJsdocCallbackTag -TestJsdocLink2 -TestJsdocLink3 -TestJsdocLink6 -TestJsdocLink_findAllReferences1 -TestJsdocTypedefTag -TestJsdocTypedefTag2 -TestJsdocTypedefTagNamespace -TestLocalFunction -TestMemberListInReopenedEnum -TestMemberListInWithBlock +TestCompletionListBuilderLocations_VariableDeclarations +TestCompletionListForDerivedType1 +TestOverloadQuickInfo +TestParameterWithDestructuring +TestParameterWithNestedDestructuring +TestPathCompletionsAllowModuleAugmentationExtensions +TestPathCompletionsAllowTsExtensions +TestPathCompletionsPackageJsonExportsBundlerNoNodeCondition +TestPathCompletionsPackageJsonExportsCustomConditions TestPathCompletionsPackageJsonExportsWildcard1 +TestPathCompletionsPackageJsonExportsWildcard10 TestPathCompletionsPackageJsonExportsWildcard11 TestPathCompletionsPackageJsonExportsWildcard12 TestPathCompletionsPackageJsonExportsWildcard2 +TestPathCompletionsPackageJsonExportsWildcard3 +TestPathCompletionsPackageJsonExportsWildcard4 +TestPathCompletionsPackageJsonExportsWildcard5 TestPathCompletionsPackageJsonExportsWildcard6 TestPathCompletionsPackageJsonExportsWildcard7 TestPathCompletionsPackageJsonExportsWildcard8 @@ -87,15 +73,15 @@ TestPathCompletionsPackageJsonImportsWildcard7 TestPathCompletionsPackageJsonImportsWildcard8 TestPathCompletionsPackageJsonImportsWildcard9 TestPathCompletionsTypesVersionsLocal -TestPathCompletionsTypesVersionsWildcard1 -TestPathCompletionsTypesVersionsWildcard2 TestPathCompletionsTypesVersionsWildcard3 -TestPathCompletionsTypesVersionsWildcard4 -TestPathCompletionsTypesVersionsWildcard5 -TestPathCompletionsTypesVersionsWildcard6 TestProtoVarVisibleWithOuterScopeUnderscoreProto TestQuickInfoAlias TestQuickInfoAssertionNodeNotReusedWhenTypeNotEquivalent1 +TestQuickInfoBindingPatternInJsdocNoCrash1 +TestQuickInfoClassKeyword +TestQuickInfoContextualTyping +TestQuickInfoContextuallyTypedSignatureOptionalParameterFromIntersection1 +TestQuickInfoDisplayPartsIife TestQuickInfoElementAccessDeclaration TestQuickInfoForConstTypeReference TestQuickInfoForContextuallyTypedArrowFunctionInSuperCall @@ -116,9 +102,33 @@ TestQuickInfoForTypeofParameter TestQuickInfoForUMDModuleAlias TestQuickInfoFromContextualType TestQuickInfoFunctionKeyword -TestQuickInfoJsPropertyAssignedAfterMethodDeclaration -TestQuickInfoJsdocTypedefMissingType -TestQuickInfoMappedSpreadTypes +TestQuickInfoGenerics +TestQuickInfoGetterSetter +TestQuickInfoImportNonunicodePath +TestQuickInfoInInvalidIndexSignature +TestQuickInfoInJsdocInTsFile1 +TestQuickInfoInOptionalChain +TestQuickInfoInWithBlock +TestQuickInfoJSDocBackticks +TestQuickInfoJSDocFunctionNew +TestQuickInfoJSDocFunctionThis +TestQuickInfoJSExport +TestQuickInfoJsDocGetterSetterNoCrash1 +TestQuickInfoJsDocNonDiscriminatedUnionSharedProp +TestQuickInfoOnCatchVariable +TestQuickInfoOnClosingJsx +TestQuickInfoOnElementAccessInWriteLocation1 +TestQuickInfoOnElementAccessInWriteLocation2 +TestQuickInfoOnElementAccessInWriteLocation3 +TestQuickInfoOnElementAccessInWriteLocation4 +TestQuickInfoOnElementAccessInWriteLocation5 +TestQuickInfoOnErrorTypes1 +TestQuickInfoOnFunctionPropertyReturnedFromGenericFunction1 +TestQuickInfoOnFunctionPropertyReturnedFromGenericFunction2 +TestQuickInfoOnFunctionPropertyReturnedFromGenericFunction3 +TestQuickInfoOnGenericWithConstraints1 +TestQuickInfoOnInternalAliases +TestQuickInfoOnMethodOfImportEquals TestQuickInfoOnNarrowedType TestQuickInfoOnNarrowedTypeInModule TestQuickInfoOnNewKeyword01 @@ -131,9 +141,12 @@ TestQuickInfoOnPropertyAccessInWriteLocation2 TestQuickInfoOnPropertyAccessInWriteLocation3 TestQuickInfoOnPropertyAccessInWriteLocation4 TestQuickInfoOnPropertyAccessInWriteLocation5 +TestQuickInfoOnThis TestQuickInfoOnThis2 TestQuickInfoOnThis3 TestQuickInfoOnThis4 +TestQuickInfoOnUndefined +TestQuickInfoOnVarInArrowExpression TestQuickInfoPrivateIdentifierInTypeReferenceNoCrash1 TestQuickInfoPropertyTag TestQuickInfoSignatureOptionalParameterFromUnion1 @@ -158,7 +171,6 @@ TestQuickinfoForNamespaceMergeWithClassConstrainedToSelf TestQuickinfoForUnionProperty TestQuickinfoWrongComment TestRecursiveInternalModuleImport -TestReferencesForExportedValues TestReferencesForStatementKeywords TestReferencesInComment TestReferencesInEmptyFile @@ -167,26 +179,8 @@ TestRegexDetection TestReverseMappedTypeQuickInfo TestSelfReferencedExternalModule TestSignatureHelpInferenceJsDocImportTag -TestSyntheticImportFromBabelGeneratedFile1 -TestSyntheticImportFromBabelGeneratedFile2 -TestThisBindingInLambda -TestThisPredicateFunctionQuickInfo01 -TestThisPredicateFunctionQuickInfo02 -TestTripleSlashRefPathCompletionAbsolutePaths -TestTripleSlashRefPathCompletionContext -TestTripleSlashRefPathCompletionExtensionsAllowJSFalse -TestTripleSlashRefPathCompletionExtensionsAllowJSTrue -TestTripleSlashRefPathCompletionHiddenFile -TestTripleSlashRefPathCompletionRootdirs -TestTslibFindAllReferencesOnRuntimeImportWithPaths1 -TestTsxCompletion12 -TestTsxCompletion13 -TestTsxCompletion14 -TestTsxCompletion15 -TestTsxCompletionNonTagLessThan +TestStringCompletionsImportOrExportSpecifier +TestStringCompletionsVsEscaping TestTsxQuickInfo1 -TestTsxQuickInfo4 -TestTsxQuickInfo5 -TestTsxQuickInfo6 TestTsxQuickInfo7 TestTypeOperatorNodeBuilding diff --git a/internal/fourslash/fourslash.go b/internal/fourslash/fourslash.go index 502b6d339c..57e27f509e 100644 --- a/internal/fourslash/fourslash.go +++ b/internal/fourslash/fourslash.go @@ -141,7 +141,6 @@ func NewFourslash(t *testing.T, capabilities *lsproto.ClientCapabilities, conten // Just skip this for now. t.Skip("bundled files are not embedded") } - ctx := t.Context() fileName := getFileNameFromTest(t) testfs := make(map[string]string) @@ -174,7 +173,7 @@ func NewFourslash(t *testing.T, capabilities *lsproto.ClientCapabilities, conten ParsedFileCache: &parsedFileCache{}, }) - lspCtx, lspCancel := context.WithCancel(ctx) + lspCtx, lspCancel := context.WithCancel(t.Context()) lspErrChan := make(chan error, 1) go func() { @@ -182,6 +181,7 @@ func NewFourslash(t *testing.T, capabilities *lsproto.ClientCapabilities, conten outputWriter.Close() }() lspErrChan <- server.Run(lspCtx) + t.Log("LSP server exited") }() converters := ls.NewConverters(lsproto.PositionEncodingKindUTF8, func(fileName string) *ls.LineMap { @@ -215,13 +215,9 @@ func NewFourslash(t *testing.T, capabilities *lsproto.ClientCapabilities, conten lspCancel() inputWriter.Close() - select { - case <-ctx.Done(): - // do nothing - case err := <-lspErrChan: - if err != nil && lspCtx.Err() == nil { - t.Errorf("LSP server exited with error: %v", err) - } + t.Log("Waiting for LSP server to exit") + if err := <-lspErrChan; err != nil && lspCtx.Err() == nil { + t.Errorf("LSP server exited with error: %v", err) } }) return f diff --git a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport7_test.go b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport7_test.go index 5c6740e18f..59b0088b59 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport7_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport7_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralNonrelativeImport7(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @baseUrl: tests/cases/fourslash/modules // @Filename: tests/test0.ts diff --git a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings2_test.go b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings2_test.go index 212ba99e46..c223cdcb2d 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings2_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings2_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralNonrelativeImportTypings2(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @typeRoots: my_typings,my_other_typings // @types: module-x,module-z diff --git a/internal/fourslash/tests/gen/completionForStringLiteralRelativeImport4_test.go b/internal/fourslash/tests/gen/completionForStringLiteralRelativeImport4_test.go index 0ba6a1cc31..1cae7ca821 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralRelativeImport4_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralRelativeImport4_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralRelativeImport4(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @rootDirs: /sub/src1,/src2 // @Filename: /src2/test0.ts diff --git a/internal/fourslash/tests/gen/completionForStringLiteralRelativeImportAllowJSTrue_test.go b/internal/fourslash/tests/gen/completionForStringLiteralRelativeImportAllowJSTrue_test.go index 8728e914e2..5e236af93d 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralRelativeImportAllowJSTrue_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralRelativeImportAllowJSTrue_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralRelativeImportAllowJSTrue(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: test0.ts diff --git a/internal/fourslash/tests/gen/completionInJsDoc_test.go b/internal/fourslash/tests/gen/completionInJsDoc_test.go index d950da13fe..9ff833eb6b 100644 --- a/internal/fourslash/tests/gen/completionInJsDoc_test.go +++ b/internal/fourslash/tests/gen/completionInJsDoc_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionInJsDoc(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: Foo.js diff --git a/internal/fourslash/tests/gen/completionListBuilderLocations_VariableDeclarations_test.go b/internal/fourslash/tests/gen/completionListBuilderLocations_VariableDeclarations_test.go index 751f782ea8..5f1b2f3b13 100644 --- a/internal/fourslash/tests/gen/completionListBuilderLocations_VariableDeclarations_test.go +++ b/internal/fourslash/tests/gen/completionListBuilderLocations_VariableDeclarations_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListBuilderLocations_VariableDeclarations(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = a/*var1*/ var x = (b/*var2*/ diff --git a/internal/fourslash/tests/gen/completionListForDerivedType1_test.go b/internal/fourslash/tests/gen/completionListForDerivedType1_test.go index f0d3102487..3121c2f843 100644 --- a/internal/fourslash/tests/gen/completionListForDerivedType1_test.go +++ b/internal/fourslash/tests/gen/completionListForDerivedType1_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionListForDerivedType1(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IFoo { bar(): IFoo; diff --git a/internal/fourslash/tests/gen/indexerReturnTypes1_test.go b/internal/fourslash/tests/gen/indexerReturnTypes1_test.go index af97f8d54e..0665476f26 100644 --- a/internal/fourslash/tests/gen/indexerReturnTypes1_test.go +++ b/internal/fourslash/tests/gen/indexerReturnTypes1_test.go @@ -9,7 +9,7 @@ import ( func TestIndexerReturnTypes1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Numeric { [x: number]: Date; diff --git a/internal/fourslash/tests/gen/indirectClassInstantiation_test.go b/internal/fourslash/tests/gen/indirectClassInstantiation_test.go index 58b160aa68..5d6a9aa49c 100644 --- a/internal/fourslash/tests/gen/indirectClassInstantiation_test.go +++ b/internal/fourslash/tests/gen/indirectClassInstantiation_test.go @@ -12,7 +12,7 @@ import ( func TestIndirectClassInstantiation(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: something.js diff --git a/internal/fourslash/tests/gen/jsDocFunctionSignatures11_test.go b/internal/fourslash/tests/gen/jsDocFunctionSignatures11_test.go index d0714782d1..892a0f3494 100644 --- a/internal/fourslash/tests/gen/jsDocFunctionSignatures11_test.go +++ b/internal/fourslash/tests/gen/jsDocFunctionSignatures11_test.go @@ -9,7 +9,7 @@ import ( func TestJsDocFunctionSignatures11(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: Foo.js diff --git a/internal/fourslash/tests/gen/jsDocFunctionSignatures13_test.go b/internal/fourslash/tests/gen/jsDocFunctionSignatures13_test.go index 324010971a..2d8ee6c7af 100644 --- a/internal/fourslash/tests/gen/jsDocFunctionSignatures13_test.go +++ b/internal/fourslash/tests/gen/jsDocFunctionSignatures13_test.go @@ -9,7 +9,7 @@ import ( func TestJsDocFunctionSignatures13(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * @template {string} K/**/ a golden opportunity diff --git a/internal/fourslash/tests/gen/jsDocFunctionSignatures7_test.go b/internal/fourslash/tests/gen/jsDocFunctionSignatures7_test.go index 84ad441cdb..6fe045fdf1 100644 --- a/internal/fourslash/tests/gen/jsDocFunctionSignatures7_test.go +++ b/internal/fourslash/tests/gen/jsDocFunctionSignatures7_test.go @@ -9,7 +9,7 @@ import ( func TestJsDocFunctionSignatures7(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: Foo.js diff --git a/internal/fourslash/tests/gen/jsDocFunctionSignatures8_test.go b/internal/fourslash/tests/gen/jsDocFunctionSignatures8_test.go index fa2cf459bd..a82daa9e61 100644 --- a/internal/fourslash/tests/gen/jsDocFunctionSignatures8_test.go +++ b/internal/fourslash/tests/gen/jsDocFunctionSignatures8_test.go @@ -9,7 +9,7 @@ import ( func TestJsDocFunctionSignatures8(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: Foo.js diff --git a/internal/fourslash/tests/gen/jsDocPropertyDescription4_test.go b/internal/fourslash/tests/gen/jsDocPropertyDescription4_test.go index 5899937759..0c451b587f 100644 --- a/internal/fourslash/tests/gen/jsDocPropertyDescription4_test.go +++ b/internal/fourslash/tests/gen/jsDocPropertyDescription4_test.go @@ -9,7 +9,7 @@ import ( func TestJsDocPropertyDescription4(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface MultipleExample { /** Something generic */ diff --git a/internal/fourslash/tests/gen/jsDocPropertyDescription5_test.go b/internal/fourslash/tests/gen/jsDocPropertyDescription5_test.go index a0f8bd9893..d2558ed8cf 100644 --- a/internal/fourslash/tests/gen/jsDocPropertyDescription5_test.go +++ b/internal/fourslash/tests/gen/jsDocPropertyDescription5_test.go @@ -9,7 +9,7 @@ import ( func TestJsDocPropertyDescription5(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Multiple1Example { /** Something generic */ diff --git a/internal/fourslash/tests/gen/jsDocPropertyDescription6_test.go b/internal/fourslash/tests/gen/jsDocPropertyDescription6_test.go index 7e92d0b94e..09ec306c59 100644 --- a/internal/fourslash/tests/gen/jsDocPropertyDescription6_test.go +++ b/internal/fourslash/tests/gen/jsDocPropertyDescription6_test.go @@ -9,7 +9,7 @@ import ( func TestJsDocPropertyDescription6(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Literal1Example { [key: ` + "`" + `prefix${string}` + "`" + `]: number | string; diff --git a/internal/fourslash/tests/gen/jsDocPropertyDescription7_test.go b/internal/fourslash/tests/gen/jsDocPropertyDescription7_test.go index 57bba95d06..368b1bca7a 100644 --- a/internal/fourslash/tests/gen/jsDocPropertyDescription7_test.go +++ b/internal/fourslash/tests/gen/jsDocPropertyDescription7_test.go @@ -9,7 +9,7 @@ import ( func TestJsDocPropertyDescription7(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class StringClass { /** Something generic */ diff --git a/internal/fourslash/tests/gen/jsDocPropertyDescription8_test.go b/internal/fourslash/tests/gen/jsDocPropertyDescription8_test.go index aa02fc7e96..d66a0f34dd 100644 --- a/internal/fourslash/tests/gen/jsDocPropertyDescription8_test.go +++ b/internal/fourslash/tests/gen/jsDocPropertyDescription8_test.go @@ -9,7 +9,7 @@ import ( func TestJsDocPropertyDescription8(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class SymbolClass { /** Something generic */ diff --git a/internal/fourslash/tests/gen/jsDocPropertyDescription9_test.go b/internal/fourslash/tests/gen/jsDocPropertyDescription9_test.go index ece23930bc..3e5685471c 100644 --- a/internal/fourslash/tests/gen/jsDocPropertyDescription9_test.go +++ b/internal/fourslash/tests/gen/jsDocPropertyDescription9_test.go @@ -9,7 +9,7 @@ import ( func TestJsDocPropertyDescription9(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class LiteralClass { /** Something generic */ diff --git a/internal/fourslash/tests/gen/jsDocTagsWithHyphen_test.go b/internal/fourslash/tests/gen/jsDocTagsWithHyphen_test.go index 000ca15bdd..6fcabf0d34 100644 --- a/internal/fourslash/tests/gen/jsDocTagsWithHyphen_test.go +++ b/internal/fourslash/tests/gen/jsDocTagsWithHyphen_test.go @@ -10,7 +10,7 @@ import ( func TestJsDocTagsWithHyphen(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: dummy.js diff --git a/internal/fourslash/tests/gen/jsQuickInfoGenerallyAcceptableSize_test.go b/internal/fourslash/tests/gen/jsQuickInfoGenerallyAcceptableSize_test.go index 04eed16d88..883a1f69fb 100644 --- a/internal/fourslash/tests/gen/jsQuickInfoGenerallyAcceptableSize_test.go +++ b/internal/fourslash/tests/gen/jsQuickInfoGenerallyAcceptableSize_test.go @@ -9,7 +9,7 @@ import ( func TestJsQuickInfoGenerallyAcceptableSize(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/internal/fourslash/tests/gen/jsRequireQuickInfo_test.go b/internal/fourslash/tests/gen/jsRequireQuickInfo_test.go index 69f9d9de68..afe950c9e3 100644 --- a/internal/fourslash/tests/gen/jsRequireQuickInfo_test.go +++ b/internal/fourslash/tests/gen/jsRequireQuickInfo_test.go @@ -9,7 +9,7 @@ import ( func TestJsRequireQuickInfo(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/internal/fourslash/tests/gen/jsdocCallbackTag_test.go b/internal/fourslash/tests/gen/jsdocCallbackTag_test.go index 0a2845f5b7..7dd4ff0578 100644 --- a/internal/fourslash/tests/gen/jsdocCallbackTag_test.go +++ b/internal/fourslash/tests/gen/jsdocCallbackTag_test.go @@ -9,7 +9,7 @@ import ( func TestJsdocCallbackTag(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: jsdocCallbackTag.js diff --git a/internal/fourslash/tests/gen/jsdocLink2_test.go b/internal/fourslash/tests/gen/jsdocLink2_test.go index 5da1a8bd51..5058b64a72 100644 --- a/internal/fourslash/tests/gen/jsdocLink2_test.go +++ b/internal/fourslash/tests/gen/jsdocLink2_test.go @@ -9,7 +9,7 @@ import ( func TestJsdocLink2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: jsdocLink2.ts class C { diff --git a/internal/fourslash/tests/gen/jsdocLink3_test.go b/internal/fourslash/tests/gen/jsdocLink3_test.go index b8b21773f0..ec3606c751 100644 --- a/internal/fourslash/tests/gen/jsdocLink3_test.go +++ b/internal/fourslash/tests/gen/jsdocLink3_test.go @@ -9,7 +9,7 @@ import ( func TestJsdocLink3(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /jsdocLink3.ts export class C { diff --git a/internal/fourslash/tests/gen/jsdocLink6_test.go b/internal/fourslash/tests/gen/jsdocLink6_test.go index ce6d540900..bafe0bbb1f 100644 --- a/internal/fourslash/tests/gen/jsdocLink6_test.go +++ b/internal/fourslash/tests/gen/jsdocLink6_test.go @@ -9,7 +9,7 @@ import ( func TestJsdocLink6(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: /a.ts export default function A() { } diff --git a/internal/fourslash/tests/gen/jsdocLink_findAllReferences1_test.go b/internal/fourslash/tests/gen/jsdocLink_findAllReferences1_test.go index a5a5a3c751..8a6ba41c5b 100644 --- a/internal/fourslash/tests/gen/jsdocLink_findAllReferences1_test.go +++ b/internal/fourslash/tests/gen/jsdocLink_findAllReferences1_test.go @@ -9,7 +9,7 @@ import ( func TestJsdocLink_findAllReferences1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface A/**/ {} /** diff --git a/internal/fourslash/tests/gen/jsdocTypedefTag2_test.go b/internal/fourslash/tests/gen/jsdocTypedefTag2_test.go index 25244841a1..1b2adaa61a 100644 --- a/internal/fourslash/tests/gen/jsdocTypedefTag2_test.go +++ b/internal/fourslash/tests/gen/jsdocTypedefTag2_test.go @@ -10,7 +10,7 @@ import ( func TestJsdocTypedefTag2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: jsdocCompletion_typedef.js diff --git a/internal/fourslash/tests/gen/jsdocTypedefTagNamespace_test.go b/internal/fourslash/tests/gen/jsdocTypedefTagNamespace_test.go index 700956e582..461cd19890 100644 --- a/internal/fourslash/tests/gen/jsdocTypedefTagNamespace_test.go +++ b/internal/fourslash/tests/gen/jsdocTypedefTagNamespace_test.go @@ -12,7 +12,7 @@ import ( func TestJsdocTypedefTagNamespace(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: jsdocCompletion_typedef.js diff --git a/internal/fourslash/tests/gen/jsdocTypedefTag_test.go b/internal/fourslash/tests/gen/jsdocTypedefTag_test.go index a003ca03d3..c3eb620f0f 100644 --- a/internal/fourslash/tests/gen/jsdocTypedefTag_test.go +++ b/internal/fourslash/tests/gen/jsdocTypedefTag_test.go @@ -10,7 +10,7 @@ import ( func TestJsdocTypedefTag(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: jsdocCompletion_typedef.js diff --git a/internal/fourslash/tests/gen/localFunction_test.go b/internal/fourslash/tests/gen/localFunction_test.go index 6a3c46a10f..0837fbaa33 100644 --- a/internal/fourslash/tests/gen/localFunction_test.go +++ b/internal/fourslash/tests/gen/localFunction_test.go @@ -9,7 +9,7 @@ import ( func TestLocalFunction(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function /*1*/foo() { function /*2*/bar2() { diff --git a/internal/fourslash/tests/gen/memberListInReopenedEnum_test.go b/internal/fourslash/tests/gen/memberListInReopenedEnum_test.go index 3a8471ac88..6a9a295f41 100644 --- a/internal/fourslash/tests/gen/memberListInReopenedEnum_test.go +++ b/internal/fourslash/tests/gen/memberListInReopenedEnum_test.go @@ -11,7 +11,7 @@ import ( func TestMemberListInReopenedEnum(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module M { enum E { diff --git a/internal/fourslash/tests/gen/memberListInWithBlock_test.go b/internal/fourslash/tests/gen/memberListInWithBlock_test.go index 9f4a1ee25f..931299f6e9 100644 --- a/internal/fourslash/tests/gen/memberListInWithBlock_test.go +++ b/internal/fourslash/tests/gen/memberListInWithBlock_test.go @@ -10,7 +10,7 @@ import ( func TestMemberListInWithBlock(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class c { static x: number; diff --git a/internal/fourslash/tests/gen/overloadQuickInfo_test.go b/internal/fourslash/tests/gen/overloadQuickInfo_test.go index eccdb2fcf3..cb80335610 100644 --- a/internal/fourslash/tests/gen/overloadQuickInfo_test.go +++ b/internal/fourslash/tests/gen/overloadQuickInfo_test.go @@ -9,7 +9,7 @@ import ( func TestOverloadQuickInfo(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function Foo(a: string, b: number, c: boolean); function Foo(a: any, name: string, age: number); diff --git a/internal/fourslash/tests/gen/parameterWithDestructuring_test.go b/internal/fourslash/tests/gen/parameterWithDestructuring_test.go index cbb40866b2..749a2d2213 100644 --- a/internal/fourslash/tests/gen/parameterWithDestructuring_test.go +++ b/internal/fourslash/tests/gen/parameterWithDestructuring_test.go @@ -9,7 +9,7 @@ import ( func TestParameterWithDestructuring(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const result = [{ a: 'hello' }] .map(({ /*1*/a }) => /*2*/a) diff --git a/internal/fourslash/tests/gen/parameterWithNestedDestructuring_test.go b/internal/fourslash/tests/gen/parameterWithNestedDestructuring_test.go index 56b13ea5cb..e4e5929e5f 100644 --- a/internal/fourslash/tests/gen/parameterWithNestedDestructuring_test.go +++ b/internal/fourslash/tests/gen/parameterWithNestedDestructuring_test.go @@ -9,7 +9,7 @@ import ( func TestParameterWithNestedDestructuring(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[[{ a: 'hello', b: [1] }]] .map(([{ a, b: [c] }]) => /*1*/a + /*2*/c); diff --git a/internal/fourslash/tests/gen/pathCompletionsAllowModuleAugmentationExtensions_test.go b/internal/fourslash/tests/gen/pathCompletionsAllowModuleAugmentationExtensions_test.go index bf3a2b2ce8..191b789fa3 100644 --- a/internal/fourslash/tests/gen/pathCompletionsAllowModuleAugmentationExtensions_test.go +++ b/internal/fourslash/tests/gen/pathCompletionsAllowModuleAugmentationExtensions_test.go @@ -10,7 +10,7 @@ import ( func TestPathCompletionsAllowModuleAugmentationExtensions(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /project/foo.css export const foo = 0; diff --git a/internal/fourslash/tests/gen/pathCompletionsAllowTsExtensions_test.go b/internal/fourslash/tests/gen/pathCompletionsAllowTsExtensions_test.go index f62376432e..29d38202a1 100644 --- a/internal/fourslash/tests/gen/pathCompletionsAllowTsExtensions_test.go +++ b/internal/fourslash/tests/gen/pathCompletionsAllowTsExtensions_test.go @@ -10,7 +10,7 @@ import ( func TestPathCompletionsAllowTsExtensions(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @moduleResolution: bundler // @allowImportingTsExtensions: true diff --git a/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsBundlerNoNodeCondition_test.go b/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsBundlerNoNodeCondition_test.go index 09c0c6b1e1..efdb47e16a 100644 --- a/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsBundlerNoNodeCondition_test.go +++ b/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsBundlerNoNodeCondition_test.go @@ -11,7 +11,7 @@ import ( func TestPathCompletionsPackageJsonExportsBundlerNoNodeCondition(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @moduleResolution: bundler // @Filename: /node_modules/foo/package.json diff --git a/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsCustomConditions_test.go b/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsCustomConditions_test.go index 47c494aec8..18c0993327 100644 --- a/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsCustomConditions_test.go +++ b/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsCustomConditions_test.go @@ -11,7 +11,7 @@ import ( func TestPathCompletionsPackageJsonExportsCustomConditions(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @customConditions: custom-condition diff --git a/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard10_test.go b/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard10_test.go index 4bd211ca28..d990404866 100644 --- a/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard10_test.go +++ b/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard10_test.go @@ -11,7 +11,7 @@ import ( func TestPathCompletionsPackageJsonExportsWildcard10(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: preserve // @moduleResolution: bundler diff --git a/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard3_test.go b/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard3_test.go index dbe9c6b51d..9966a03fae 100644 --- a/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard3_test.go +++ b/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard3_test.go @@ -11,7 +11,7 @@ import ( func TestPathCompletionsPackageJsonExportsWildcard3(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /node_modules/foo/package.json diff --git a/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard4_test.go b/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard4_test.go index 4cfc4de081..15722a70f4 100644 --- a/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard4_test.go +++ b/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard4_test.go @@ -11,7 +11,7 @@ import ( func TestPathCompletionsPackageJsonExportsWildcard4(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /node_modules/foo/package.json diff --git a/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard5_test.go b/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard5_test.go index d1e588ce16..40f7e40386 100644 --- a/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard5_test.go +++ b/internal/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard5_test.go @@ -11,7 +11,7 @@ import ( func TestPathCompletionsPackageJsonExportsWildcard5(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /node_modules/foo/package.json diff --git a/internal/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard1_test.go b/internal/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard1_test.go index d50766bf55..9ca9a9c8f4 100644 --- a/internal/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard1_test.go +++ b/internal/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard1_test.go @@ -10,7 +10,7 @@ import ( func TestPathCompletionsTypesVersionsWildcard1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @Filename: /node_modules/foo/package.json diff --git a/internal/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard2_test.go b/internal/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard2_test.go index 558efd2c05..e8c725e752 100644 --- a/internal/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard2_test.go +++ b/internal/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard2_test.go @@ -10,7 +10,7 @@ import ( func TestPathCompletionsTypesVersionsWildcard2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @Filename: /node_modules/foo/package.json diff --git a/internal/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard4_test.go b/internal/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard4_test.go index 320a68bfb2..edb847e0c1 100644 --- a/internal/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard4_test.go +++ b/internal/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard4_test.go @@ -10,7 +10,7 @@ import ( func TestPathCompletionsTypesVersionsWildcard4(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @Filename: /node_modules/foo/package.json diff --git a/internal/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard5_test.go b/internal/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard5_test.go index b6b38c7d31..69dcd464d1 100644 --- a/internal/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard5_test.go +++ b/internal/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard5_test.go @@ -10,7 +10,7 @@ import ( func TestPathCompletionsTypesVersionsWildcard5(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @Filename: /node_modules/foo/package.json diff --git a/internal/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard6_test.go b/internal/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard6_test.go index 8b79533655..481a5f6c94 100644 --- a/internal/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard6_test.go +++ b/internal/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard6_test.go @@ -10,7 +10,7 @@ import ( func TestPathCompletionsTypesVersionsWildcard6(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @Filename: /node_modules/foo/package.json diff --git a/internal/fourslash/tests/gen/quickInfoBindingPatternInJsdocNoCrash1_test.go b/internal/fourslash/tests/gen/quickInfoBindingPatternInJsdocNoCrash1_test.go index fa34b71931..7baa2ca0df 100644 --- a/internal/fourslash/tests/gen/quickInfoBindingPatternInJsdocNoCrash1_test.go +++ b/internal/fourslash/tests/gen/quickInfoBindingPatternInJsdocNoCrash1_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoBindingPatternInJsdocNoCrash1(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** @type {({ /*1*/data: any }?) => { data: string[] }} */ function useQuery({ data }): { data: string[] } { diff --git a/internal/fourslash/tests/gen/quickInfoClassKeyword_test.go b/internal/fourslash/tests/gen/quickInfoClassKeyword_test.go index 64df102d86..38c351a248 100644 --- a/internal/fourslash/tests/gen/quickInfoClassKeyword_test.go +++ b/internal/fourslash/tests/gen/quickInfoClassKeyword_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoClassKeyword(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[1].forEach(cla/*1*/ss {}); [1].forEach(cla/*2*/ss OK{});` diff --git a/internal/fourslash/tests/gen/quickInfoContextualTyping_test.go b/internal/fourslash/tests/gen/quickInfoContextualTyping_test.go index 529d0347d3..270d6c285a 100644 --- a/internal/fourslash/tests/gen/quickInfoContextualTyping_test.go +++ b/internal/fourslash/tests/gen/quickInfoContextualTyping_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoContextualTyping(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// DEFAULT INTERFACES interface IFoo { diff --git a/internal/fourslash/tests/gen/quickInfoContextuallyTypedSignatureOptionalParameterFromIntersection1_test.go b/internal/fourslash/tests/gen/quickInfoContextuallyTypedSignatureOptionalParameterFromIntersection1_test.go index 852e11587c..8ece7e9d9d 100644 --- a/internal/fourslash/tests/gen/quickInfoContextuallyTypedSignatureOptionalParameterFromIntersection1_test.go +++ b/internal/fourslash/tests/gen/quickInfoContextuallyTypedSignatureOptionalParameterFromIntersection1_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoContextuallyTypedSignatureOptionalParameterFromIntersection1(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true const optionals: ((a?: number) => unknown) & ((b?: string) => unknown) = ( diff --git a/internal/fourslash/tests/gen/quickInfoDisplayPartsIife_test.go b/internal/fourslash/tests/gen/quickInfoDisplayPartsIife_test.go index 3926fccbff..13f2a17364 100644 --- a/internal/fourslash/tests/gen/quickInfoDisplayPartsIife_test.go +++ b/internal/fourslash/tests/gen/quickInfoDisplayPartsIife_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoDisplayPartsIife(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strictNullChecks: true var iife = (function foo/*1*/(x, y) { return x })(12);` diff --git a/internal/fourslash/tests/gen/quickInfoGenerics_test.go b/internal/fourslash/tests/gen/quickInfoGenerics_test.go index 81291d1488..64c60b8208 100644 --- a/internal/fourslash/tests/gen/quickInfoGenerics_test.go +++ b/internal/fourslash/tests/gen/quickInfoGenerics_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoGenerics(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Con/*1*/tainer { x: T; diff --git a/internal/fourslash/tests/gen/quickInfoGetterSetter_test.go b/internal/fourslash/tests/gen/quickInfoGetterSetter_test.go index 2ab419e713..ae6570157b 100644 --- a/internal/fourslash/tests/gen/quickInfoGetterSetter_test.go +++ b/internal/fourslash/tests/gen/quickInfoGetterSetter_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoGetterSetter(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @target: es2015 class C { diff --git a/internal/fourslash/tests/gen/quickInfoImportNonunicodePath_test.go b/internal/fourslash/tests/gen/quickInfoImportNonunicodePath_test.go index a805007638..ae1f033526 100644 --- a/internal/fourslash/tests/gen/quickInfoImportNonunicodePath_test.go +++ b/internal/fourslash/tests/gen/quickInfoImportNonunicodePath_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoImportNonunicodePath(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /江南今何在/tmp.ts export const foo = 1; diff --git a/internal/fourslash/tests/gen/quickInfoInInvalidIndexSignature_test.go b/internal/fourslash/tests/gen/quickInfoInInvalidIndexSignature_test.go index d0ebbbf8ae..67f0c19a65 100644 --- a/internal/fourslash/tests/gen/quickInfoInInvalidIndexSignature_test.go +++ b/internal/fourslash/tests/gen/quickInfoInInvalidIndexSignature_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoInInvalidIndexSignature(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function method() { var /**/dictionary = <{ [index]: string; }>{}; }` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/internal/fourslash/tests/gen/quickInfoInJsdocInTsFile1_test.go b/internal/fourslash/tests/gen/quickInfoInJsdocInTsFile1_test.go index c9a1334314..11909b3bdc 100644 --- a/internal/fourslash/tests/gen/quickInfoInJsdocInTsFile1_test.go +++ b/internal/fourslash/tests/gen/quickInfoInJsdocInTsFile1_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoInJsdocInTsFile1(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** @type {() => { /*1*/data: string[] }} */ function test(): { data: string[] } { diff --git a/internal/fourslash/tests/gen/quickInfoInOptionalChain_test.go b/internal/fourslash/tests/gen/quickInfoInOptionalChain_test.go index d1e2de1a16..25cd51a97b 100644 --- a/internal/fourslash/tests/gen/quickInfoInOptionalChain_test.go +++ b/internal/fourslash/tests/gen/quickInfoInOptionalChain_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoInOptionalChain(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface A { diff --git a/internal/fourslash/tests/gen/quickInfoInWithBlock_test.go b/internal/fourslash/tests/gen/quickInfoInWithBlock_test.go index 8d900f498e..98eade74fe 100644 --- a/internal/fourslash/tests/gen/quickInfoInWithBlock_test.go +++ b/internal/fourslash/tests/gen/quickInfoInWithBlock_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoInWithBlock(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `with (x) { function /*1*/f() { } diff --git a/internal/fourslash/tests/gen/quickInfoJSDocBackticks_test.go b/internal/fourslash/tests/gen/quickInfoJSDocBackticks_test.go index 5e0cb106a6..4bf7818748 100644 --- a/internal/fourslash/tests/gen/quickInfoJSDocBackticks_test.go +++ b/internal/fourslash/tests/gen/quickInfoJSDocBackticks_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoJSDocBackticks(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noEmit: true // @allowJs: true diff --git a/internal/fourslash/tests/gen/quickInfoJSDocFunctionNew_test.go b/internal/fourslash/tests/gen/quickInfoJSDocFunctionNew_test.go index aa7d6cdb3d..3154ce1174 100644 --- a/internal/fourslash/tests/gen/quickInfoJSDocFunctionNew_test.go +++ b/internal/fourslash/tests/gen/quickInfoJSDocFunctionNew_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoJSDocFunctionNew(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: Foo.js diff --git a/internal/fourslash/tests/gen/quickInfoJSDocFunctionThis_test.go b/internal/fourslash/tests/gen/quickInfoJSDocFunctionThis_test.go index 17d572ebc9..d8cd4721bd 100644 --- a/internal/fourslash/tests/gen/quickInfoJSDocFunctionThis_test.go +++ b/internal/fourslash/tests/gen/quickInfoJSDocFunctionThis_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoJSDocFunctionThis(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: Foo.js diff --git a/internal/fourslash/tests/gen/quickInfoJSExport_test.go b/internal/fourslash/tests/gen/quickInfoJSExport_test.go index 61cc885b59..d8678172b0 100644 --- a/internal/fourslash/tests/gen/quickInfoJSExport_test.go +++ b/internal/fourslash/tests/gen/quickInfoJSExport_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoJSExport(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.js // @allowJs: true diff --git a/internal/fourslash/tests/gen/quickInfoJsDocGetterSetterNoCrash1_test.go b/internal/fourslash/tests/gen/quickInfoJsDocGetterSetterNoCrash1_test.go index bce8d14781..886aa06fbe 100644 --- a/internal/fourslash/tests/gen/quickInfoJsDocGetterSetterNoCrash1_test.go +++ b/internal/fourslash/tests/gen/quickInfoJsDocGetterSetterNoCrash1_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoJsDocGetterSetterNoCrash1(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class A implements A { get x(): string { return "" } diff --git a/internal/fourslash/tests/gen/quickInfoJsDocNonDiscriminatedUnionSharedProp_test.go b/internal/fourslash/tests/gen/quickInfoJsDocNonDiscriminatedUnionSharedProp_test.go index 78dc877d6d..f51e5b0189 100644 --- a/internal/fourslash/tests/gen/quickInfoJsDocNonDiscriminatedUnionSharedProp_test.go +++ b/internal/fourslash/tests/gen/quickInfoJsDocNonDiscriminatedUnionSharedProp_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoJsDocNonDiscriminatedUnionSharedProp(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Entries { /** diff --git a/internal/fourslash/tests/gen/quickInfoJsPropertyAssignedAfterMethodDeclaration_test.go b/internal/fourslash/tests/gen/quickInfoJsPropertyAssignedAfterMethodDeclaration_test.go index fec1804e5b..44bde5ac76 100644 --- a/internal/fourslash/tests/gen/quickInfoJsPropertyAssignedAfterMethodDeclaration_test.go +++ b/internal/fourslash/tests/gen/quickInfoJsPropertyAssignedAfterMethodDeclaration_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoJsPropertyAssignedAfterMethodDeclaration(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noLib: true // @allowJs: true diff --git a/internal/fourslash/tests/gen/quickInfoJsdocTypedefMissingType_test.go b/internal/fourslash/tests/gen/quickInfoJsdocTypedefMissingType_test.go index e4997d6712..b727b2ba00 100644 --- a/internal/fourslash/tests/gen/quickInfoJsdocTypedefMissingType_test.go +++ b/internal/fourslash/tests/gen/quickInfoJsdocTypedefMissingType_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoJsdocTypedefMissingType(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/internal/fourslash/tests/gen/quickInfoMappedSpreadTypes_test.go b/internal/fourslash/tests/gen/quickInfoMappedSpreadTypes_test.go index 0b4dd5b3a0..bb4b656f98 100644 --- a/internal/fourslash/tests/gen/quickInfoMappedSpreadTypes_test.go +++ b/internal/fourslash/tests/gen/quickInfoMappedSpreadTypes_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoMappedSpreadTypes(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { /** Doc */ diff --git a/internal/fourslash/tests/gen/quickInfoOnCatchVariable_test.go b/internal/fourslash/tests/gen/quickInfoOnCatchVariable_test.go index 7cc1447fd7..03f314d827 100644 --- a/internal/fourslash/tests/gen/quickInfoOnCatchVariable_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnCatchVariable_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnCatchVariable(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f() { try { } catch (/**/e) { } diff --git a/internal/fourslash/tests/gen/quickInfoOnClosingJsx_test.go b/internal/fourslash/tests/gen/quickInfoOnClosingJsx_test.go index aafa61e679..c85c6abf9d 100644 --- a/internal/fourslash/tests/gen/quickInfoOnClosingJsx_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnClosingJsx_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnClosingJsx(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: foo.tsx let x =

diff --git a/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation1_test.go b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation1_test.go index 07c1c08695..cfc5a8c428 100644 --- a/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation1_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation1_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnElementAccessInWriteLocation1(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @exactOptionalPropertyTypes: true diff --git a/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation2_test.go b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation2_test.go index fe809c81ea..70cdd15d45 100644 --- a/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation2_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation2_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnElementAccessInWriteLocation2(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @exactOptionalPropertyTypes: true diff --git a/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation3_test.go b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation3_test.go index 392033b4a3..88d59e414d 100644 --- a/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation3_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation3_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnElementAccessInWriteLocation3(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @exactOptionalPropertyTypes: true diff --git a/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation4_test.go b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation4_test.go index cd40eccd62..6efad423d2 100644 --- a/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation4_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation4_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnElementAccessInWriteLocation4(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface Serializer { diff --git a/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation5_test.go b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation5_test.go index 6a962962fb..18e109dd7d 100644 --- a/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation5_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation5_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnElementAccessInWriteLocation5(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface Serializer { diff --git a/internal/fourslash/tests/gen/quickInfoOnErrorTypes1_test.go b/internal/fourslash/tests/gen/quickInfoOnErrorTypes1_test.go index 0d6a747e02..65eb91b01b 100644 --- a/internal/fourslash/tests/gen/quickInfoOnErrorTypes1_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnErrorTypes1_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnErrorTypes1(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var /*A*/f: { x: number; diff --git a/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction1_test.go b/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction1_test.go index c76e12a576..7784764eb8 100644 --- a/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction1_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction1_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnFunctionPropertyReturnedFromGenericFunction1(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function createProps(t: T) { function getProps() {} diff --git a/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction2_test.go b/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction2_test.go index 8c3998f742..df60ba097f 100644 --- a/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction2_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction2_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnFunctionPropertyReturnedFromGenericFunction2(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function createProps(t: T) { const getProps = function() {} diff --git a/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction3_test.go b/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction3_test.go index d57777412c..f64d4e8699 100644 --- a/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction3_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction3_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnFunctionPropertyReturnedFromGenericFunction3(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function createProps(t: T) { const getProps = () => {} diff --git a/internal/fourslash/tests/gen/quickInfoOnGenericWithConstraints1_test.go b/internal/fourslash/tests/gen/quickInfoOnGenericWithConstraints1_test.go index 2cf890fc23..789d25fafd 100644 --- a/internal/fourslash/tests/gen/quickInfoOnGenericWithConstraints1_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnGenericWithConstraints1_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnGenericWithConstraints1(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Fo/*1*/o {}` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/internal/fourslash/tests/gen/quickInfoOnInternalAliases_test.go b/internal/fourslash/tests/gen/quickInfoOnInternalAliases_test.go index dbf9348311..1fc5359155 100644 --- a/internal/fourslash/tests/gen/quickInfoOnInternalAliases_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnInternalAliases_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnInternalAliases(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** Module comment*/ export module m1 { diff --git a/internal/fourslash/tests/gen/quickInfoOnMethodOfImportEquals_test.go b/internal/fourslash/tests/gen/quickInfoOnMethodOfImportEquals_test.go index 743a7dc7b6..1d8059c708 100644 --- a/internal/fourslash/tests/gen/quickInfoOnMethodOfImportEquals_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnMethodOfImportEquals_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnMethodOfImportEquals(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.d.ts declare class C { diff --git a/internal/fourslash/tests/gen/quickInfoOnThis_test.go b/internal/fourslash/tests/gen/quickInfoOnThis_test.go index ad489f1635..207b2dddff 100644 --- a/internal/fourslash/tests/gen/quickInfoOnThis_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnThis_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnThis(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Restricted { n: number; diff --git a/internal/fourslash/tests/gen/quickInfoOnUndefined_test.go b/internal/fourslash/tests/gen/quickInfoOnUndefined_test.go index fc975cbc54..5c1beb6b0d 100644 --- a/internal/fourslash/tests/gen/quickInfoOnUndefined_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnUndefined_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnUndefined(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(a: string) { } diff --git a/internal/fourslash/tests/gen/quickInfoOnVarInArrowExpression_test.go b/internal/fourslash/tests/gen/quickInfoOnVarInArrowExpression_test.go index b888df96e2..afbd52b1d2 100644 --- a/internal/fourslash/tests/gen/quickInfoOnVarInArrowExpression_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnVarInArrowExpression_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnVarInArrowExpression(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IMap { [key: string]: T; diff --git a/internal/fourslash/tests/gen/referencesForExportedValues_test.go b/internal/fourslash/tests/gen/referencesForExportedValues_test.go index dd5c8b12ca..3398a768ab 100644 --- a/internal/fourslash/tests/gen/referencesForExportedValues_test.go +++ b/internal/fourslash/tests/gen/referencesForExportedValues_test.go @@ -9,7 +9,7 @@ import ( func TestReferencesForExportedValues(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module M { /*1*/export var /*2*/variable = 0; diff --git a/internal/fourslash/tests/gen/stringCompletionsImportOrExportSpecifier_test.go b/internal/fourslash/tests/gen/stringCompletionsImportOrExportSpecifier_test.go index aa30a667ee..53cf64bfac 100644 --- a/internal/fourslash/tests/gen/stringCompletionsImportOrExportSpecifier_test.go +++ b/internal/fourslash/tests/gen/stringCompletionsImportOrExportSpecifier_test.go @@ -10,7 +10,7 @@ import ( func TestStringCompletionsImportOrExportSpecifier(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: exports.ts export let foo = 1; diff --git a/internal/fourslash/tests/gen/stringCompletionsVsEscaping_test.go b/internal/fourslash/tests/gen/stringCompletionsVsEscaping_test.go index 23df266492..19708dc3fc 100644 --- a/internal/fourslash/tests/gen/stringCompletionsVsEscaping_test.go +++ b/internal/fourslash/tests/gen/stringCompletionsVsEscaping_test.go @@ -10,7 +10,7 @@ import ( func TestStringCompletionsVsEscaping(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type Value

= ` + "`" + `var(--\\\\, ${P})` + "`" + ` export const value: Value<'one' | 'two'> = "/*1*/" diff --git a/internal/fourslash/tests/gen/syntheticImportFromBabelGeneratedFile1_test.go b/internal/fourslash/tests/gen/syntheticImportFromBabelGeneratedFile1_test.go index 6291486b2f..5803e6a895 100644 --- a/internal/fourslash/tests/gen/syntheticImportFromBabelGeneratedFile1_test.go +++ b/internal/fourslash/tests/gen/syntheticImportFromBabelGeneratedFile1_test.go @@ -9,7 +9,7 @@ import ( func TestSyntheticImportFromBabelGeneratedFile1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @allowSyntheticDefaultImports: true diff --git a/internal/fourslash/tests/gen/syntheticImportFromBabelGeneratedFile2_test.go b/internal/fourslash/tests/gen/syntheticImportFromBabelGeneratedFile2_test.go index c0bb77a861..163571dd7e 100644 --- a/internal/fourslash/tests/gen/syntheticImportFromBabelGeneratedFile2_test.go +++ b/internal/fourslash/tests/gen/syntheticImportFromBabelGeneratedFile2_test.go @@ -9,7 +9,7 @@ import ( func TestSyntheticImportFromBabelGeneratedFile2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @allowSyntheticDefaultImports: true diff --git a/internal/fourslash/tests/gen/thisBindingInLambda_test.go b/internal/fourslash/tests/gen/thisBindingInLambda_test.go index 85f333fac9..f2c80eb871 100644 --- a/internal/fourslash/tests/gen/thisBindingInLambda_test.go +++ b/internal/fourslash/tests/gen/thisBindingInLambda_test.go @@ -9,7 +9,7 @@ import ( func TestThisBindingInLambda(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Greeter { constructor() { diff --git a/internal/fourslash/tests/gen/thisPredicateFunctionQuickInfo01_test.go b/internal/fourslash/tests/gen/thisPredicateFunctionQuickInfo01_test.go index 198ea5e01f..2e84d4799f 100644 --- a/internal/fourslash/tests/gen/thisPredicateFunctionQuickInfo01_test.go +++ b/internal/fourslash/tests/gen/thisPredicateFunctionQuickInfo01_test.go @@ -9,7 +9,7 @@ import ( func TestThisPredicateFunctionQuickInfo01(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = ` class FileSystemObject { /*1*/isFile(): this is Item { diff --git a/internal/fourslash/tests/gen/thisPredicateFunctionQuickInfo02_test.go b/internal/fourslash/tests/gen/thisPredicateFunctionQuickInfo02_test.go index 450bd21e9e..4b4d0de345 100644 --- a/internal/fourslash/tests/gen/thisPredicateFunctionQuickInfo02_test.go +++ b/internal/fourslash/tests/gen/thisPredicateFunctionQuickInfo02_test.go @@ -9,7 +9,7 @@ import ( func TestThisPredicateFunctionQuickInfo02(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = ` interface Sundries { broken: boolean; diff --git a/internal/fourslash/tests/gen/tripleSlashRefPathCompletionAbsolutePaths_test.go b/internal/fourslash/tests/gen/tripleSlashRefPathCompletionAbsolutePaths_test.go index 51f1616547..4f4dfe8aea 100644 --- a/internal/fourslash/tests/gen/tripleSlashRefPathCompletionAbsolutePaths_test.go +++ b/internal/fourslash/tests/gen/tripleSlashRefPathCompletionAbsolutePaths_test.go @@ -10,7 +10,7 @@ import ( func TestTripleSlashRefPathCompletionAbsolutePaths(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tests/test0.ts ///