diff --git a/cmd/tsgo/lsp.go b/cmd/tsgo/lsp.go index 35c973a3a0..53773c5745 100644 --- a/cmd/tsgo/lsp.go +++ b/cmd/tsgo/lsp.go @@ -1,6 +1,7 @@ package main import ( + "context" "flag" "fmt" "os" @@ -14,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.") @@ -51,7 +52,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/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:]) } diff --git a/internal/fourslash/_scripts/failingTests.txt b/internal/fourslash/_scripts/failingTests.txt index e8055c04c5..230bca09e4 100644 --- a/internal/fourslash/_scripts/failingTests.txt +++ b/internal/fourslash/_scripts/failingTests.txt @@ -1,48 +1,8 @@ -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 -TestCompletionForStringLiteralRelativeImportAllowJSTrue TestCompletionForStringLiteralWithDynamicImport TestCompletionForStringLiteral_details TestCompletionForStringLiteral_quotePreference @@ -64,225 +24,10 @@ TestCompletionImportModuleSpecifierEndingTsxPreserve TestCompletionImportModuleSpecifierEndingTsxReact TestCompletionImportModuleSpecifierEndingUnsupportedExtension 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 -TestJsDocPropertyDescription7 -TestJsDocPropertyDescription8 -TestJsDocPropertyDescription9 -TestJsDocTagsWithHyphen -TestJsQuickInfoGenerallyAcceptableSize -TestJsRequireQuickInfo -TestJsdocCallbackTag -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 @@ -328,12 +73,7 @@ TestPathCompletionsPackageJsonImportsWildcard7 TestPathCompletionsPackageJsonImportsWildcard8 TestPathCompletionsPackageJsonImportsWildcard9 TestPathCompletionsTypesVersionsLocal -TestPathCompletionsTypesVersionsWildcard1 -TestPathCompletionsTypesVersionsWildcard2 TestPathCompletionsTypesVersionsWildcard3 -TestPathCompletionsTypesVersionsWildcard4 -TestPathCompletionsTypesVersionsWildcard5 -TestPathCompletionsTypesVersionsWildcard6 TestProtoVarVisibleWithOuterScopeUnderscoreProto TestQuickInfoAlias TestQuickInfoAssertionNodeNotReusedWhenTypeNotEquivalent1 @@ -375,16 +115,6 @@ TestQuickInfoJSDocFunctionThis TestQuickInfoJSExport TestQuickInfoJsDocGetterSetterNoCrash1 TestQuickInfoJsDocNonDiscriminatedUnionSharedProp -TestQuickInfoJsPropertyAssignedAfterMethodDeclaration -TestQuickInfoJsdocTypedefMissingType -TestQuickInfoMappedSpreadTypes -TestQuickInfoMappedType -TestQuickInfoMappedTypeMethods -TestQuickInfoMappedTypeRecursiveInference -TestQuickInfoModuleVariables -TestQuickInfoNarrowedTypeOfAliasSymbol -TestQuickInfoNestedGenericCalls -TestQuickInfoOnArgumentsInsideFunction TestQuickInfoOnCatchVariable TestQuickInfoOnClosingJsx TestQuickInfoOnElementAccessInWriteLocation1 @@ -441,7 +171,6 @@ TestQuickinfoForNamespaceMergeWithClassConstrainedToSelf TestQuickinfoForUnionProperty TestQuickinfoWrongComment TestRecursiveInternalModuleImport -TestReferencesForExportedValues TestReferencesForStatementKeywords TestReferencesInComment TestReferencesInEmptyFile @@ -452,27 +181,6 @@ TestSelfReferencedExternalModule TestSignatureHelpInferenceJsDocImportTag TestStringCompletionsImportOrExportSpecifier TestStringCompletionsVsEscaping -TestSyntheticImportFromBabelGeneratedFile1 -TestSyntheticImportFromBabelGeneratedFile2 -TestThisBindingInLambda -TestThisPredicateFunctionQuickInfo01 -TestThisPredicateFunctionQuickInfo02 -TestTripleSlashRefPathCompletionAbsolutePaths -TestTripleSlashRefPathCompletionContext -TestTripleSlashRefPathCompletionExtensionsAllowJSFalse -TestTripleSlashRefPathCompletionExtensionsAllowJSTrue -TestTripleSlashRefPathCompletionHiddenFile -TestTripleSlashRefPathCompletionRootdirs -TestTslibFindAllReferencesOnRuntimeImportWithPaths1 -TestTsxCompletion12 -TestTsxCompletion13 -TestTsxCompletion14 -TestTsxCompletion15 -TestTsxCompletion8 -TestTsxCompletionNonTagLessThan TestTsxQuickInfo1 -TestTsxQuickInfo4 -TestTsxQuickInfo5 -TestTsxQuickInfo6 TestTsxQuickInfo7 TestTypeOperatorNodeBuilding diff --git a/internal/fourslash/fourslash.go b/internal/fourslash/fourslash.go index 8b4526610f..57e27f509e 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,7 @@ func NewFourslash(t *testing.T, capabilities *lsproto.ClientCapabilities, conten // Just skip this for now. t.Skip("bundled files are not embedded") } + fileName := getFileNameFromTest(t) testfs := make(map[string]string) scriptInfos := make(map[string]*scriptInfo) @@ -159,11 +161,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, @@ -172,14 +173,15 @@ func NewFourslash(t *testing.T, capabilities *lsproto.ClientCapabilities, conten ParsedFileCache: &parsedFileCache{}, }) + lspCtx, lspCancel := context.WithCancel(t.Context()) + lspErrChan := make(chan error, 1) + go func() { defer func() { outputWriter.Close() }() - err := server.Run() - if err != nil { - t.Error("server error:", err) - } + lspErrChan <- server.Run(lspCtx) + t.Log("LSP server exited") }() converters := ls.NewConverters(lsproto.PositionEncodingKindUTF8, func(fileName string) *ls.LineMap { @@ -210,7 +212,13 @@ func NewFourslash(t *testing.T, capabilities *lsproto.ClientCapabilities, conten f.activeFilename = f.testData.Files[0].fileName t.Cleanup(func() { + lspCancel() inputWriter.Close() + + 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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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 ///