From 3497c5918bd20b1e759ebcebee2cd70a50a96e4b Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Mon, 18 Aug 2025 17:27:40 -0700 Subject: [PATCH 1/6] Add const enum inlining transform and synthetic comment emit support --- internal/checker/checker.go | 4 +- internal/checker/emitresolver.go | 7 ++ internal/compiler/emitter.go | 8 +- internal/printer/emitcontext.go | 44 +++++++++ internal/printer/emitresolver.go | 3 + internal/printer/printer.go | 98 +++++++++++++++------ internal/transformers/inliners/constenum.go | 88 ++++++++++++++++++ 7 files changed, 221 insertions(+), 31 deletions(-) create mode 100644 internal/transformers/inliners/constenum.go diff --git a/internal/checker/checker.go b/internal/checker/checker.go index 02ccc6d396..4a2023c319 100644 --- a/internal/checker/checker.go +++ b/internal/checker/checker.go @@ -15087,7 +15087,7 @@ func (c *Checker) resolveEntityName(name *ast.Node, meaning ast.SymbolFlags, ign name.Parent != nil && name.Parent.Kind == ast.KindJSExportAssignment) { c.markSymbolOfAliasDeclarationIfTypeOnly(getAliasDeclarationFromName(name), symbol, nil /*finalTarget*/, true /*overwriteEmpty*/, nil, "") } - if symbol.Flags&meaning == 0 && !dontResolveAlias { + if symbol.Flags&meaning == 0 && !dontResolveAlias && symbol.Flags&ast.SymbolFlagsAlias != 0 { return c.resolveAlias(symbol) } } @@ -15498,7 +15498,7 @@ func (c *Checker) ResolveAlias(symbol *ast.Symbol) (*ast.Symbol, bool) { func (c *Checker) resolveAlias(symbol *ast.Symbol) *ast.Symbol { if symbol.Flags&ast.SymbolFlagsAlias == 0 { - panic("Should only get alias here") + debug.Fail("Should only get alias here") } links := c.aliasSymbolLinks.Get(symbol) if links.aliasTarget == nil { diff --git a/internal/checker/emitresolver.go b/internal/checker/emitresolver.go index 9e20254047..fdd45511a2 100644 --- a/internal/checker/emitresolver.go +++ b/internal/checker/emitresolver.go @@ -1025,3 +1025,10 @@ func (r *emitResolver) GetResolutionModeOverride(node *ast.Node) core.Resolution defer r.checkerMu.Unlock() return r.checker.GetResolutionModeOverride(node.AsImportAttributes(), false) } + +func (r *emitResolver) GetConstantValue(node *ast.Node) any { + // node = emitContext.ParseNode(node) + r.checkerMu.Lock() + defer r.checkerMu.Unlock() + return r.checker.GetConstantValue(node) +} diff --git a/internal/compiler/emitter.go b/internal/compiler/emitter.go index d0cb58c162..23a49b0c6e 100644 --- a/internal/compiler/emitter.go +++ b/internal/compiler/emitter.go @@ -14,6 +14,7 @@ import ( "github.com/microsoft/typescript-go/internal/transformers" "github.com/microsoft/typescript-go/internal/transformers/declarations" "github.com/microsoft/typescript-go/internal/transformers/estransforms" + "github.com/microsoft/typescript-go/internal/transformers/inliners" "github.com/microsoft/typescript-go/internal/transformers/jsxtransforms" "github.com/microsoft/typescript-go/internal/transformers/moduletransforms" "github.com/microsoft/typescript-go/internal/transformers/tstransforms" @@ -86,7 +87,7 @@ func getScriptTransformers(emitContext *printer.EmitContext, host printer.EmitHo var emitResolver printer.EmitResolver var referenceResolver binder.ReferenceResolver - if importElisionEnabled || options.GetJSXTransformEnabled() { + if importElisionEnabled || options.GetJSXTransformEnabled() || !options.IsolatedModules.IsTrue() { // full emit resolver is needed for import ellision and const enum inlining emitResolver = host.GetEmitResolver() emitResolver.MarkLinkedReferencesRecursively(sourceFile) referenceResolver = emitResolver @@ -128,6 +129,11 @@ func getScriptTransformers(emitContext *printer.EmitContext, host printer.EmitHo // transform module syntax tx = append(tx, getModuleTransformer(&opts)) + + // inlining (formerly done via substitutions) + if !options.IsolatedModules.IsTrue() { + tx = append(tx, inliners.NewConstEnumInliningTransformer(&opts)) + } return tx } diff --git a/internal/printer/emitcontext.go b/internal/printer/emitcontext.go index a34f958757..1d5ce0a201 100644 --- a/internal/printer/emitcontext.go +++ b/internal/printer/emitcontext.go @@ -511,6 +511,14 @@ const ( hasSourceMapRange ) +type SynthesizedComment struct { + Kind ast.Kind + Loc core.TextRange + HasLeadingNewLine bool + HasTrailingNewLine bool + Text string +} + type emitNode struct { flags emitNodeFlags emitFlags EmitFlags @@ -519,6 +527,8 @@ type emitNode struct { tokenSourceMapRanges map[ast.Kind]core.TextRange helpers []*EmitHelper externalHelpersModuleName *ast.IdentifierNode + leadingComments []SynthesizedComment + trailingComments []SynthesizedComment } // NOTE: This method is not guaranteed to be thread-safe @@ -917,3 +927,37 @@ func (c *EmitContext) VisitIterationBody(body *ast.Statement, visitor *ast.NodeV return updated } + +func (c *EmitContext) SetSyntheticLeadingComments(node *ast.Node, comments []SynthesizedComment) *ast.Node { + c.emitNodes.Get(node).leadingComments = comments + return node +} + +func (c *EmitContext) AddSyntheticLeadingComment(node *ast.Node, kind ast.Kind, text string, hasTrailingNewLine bool) *ast.Node { + c.emitNodes.Get(node).leadingComments = append(c.emitNodes.Get(node).leadingComments, SynthesizedComment{Kind: kind, Loc: core.NewTextRange(-1, -1), HasTrailingNewLine: hasTrailingNewLine, Text: text}) + return node +} + +func (c *EmitContext) GetSyntheticLeadingComments(node *ast.Node) []SynthesizedComment { + if c.emitNodes.Has(node) { + return c.emitNodes.Get(node).leadingComments + } + return nil +} + +func (c *EmitContext) SetSyntheticTrailingComments(node *ast.Node, comments []SynthesizedComment) *ast.Node { + c.emitNodes.Get(node).trailingComments = comments + return node +} + +func (c *EmitContext) AddSyntheticTrailingComment(node *ast.Node, kind ast.Kind, text string, hasTrailingNewLine bool) *ast.Node { + c.emitNodes.Get(node).trailingComments = append(c.emitNodes.Get(node).trailingComments, SynthesizedComment{Kind: kind, Loc: core.NewTextRange(-1, -1), HasTrailingNewLine: hasTrailingNewLine, Text: text}) + return node +} + +func (c *EmitContext) GetSyntheticTrailingComments(node *ast.Node) []SynthesizedComment { + if c.emitNodes.Has(node) { + return c.emitNodes.Get(node).trailingComments + } + return nil +} diff --git a/internal/printer/emitresolver.go b/internal/printer/emitresolver.go index b973bdca41..6330d2e737 100644 --- a/internal/printer/emitresolver.go +++ b/internal/printer/emitresolver.go @@ -35,6 +35,9 @@ type EmitResolver interface { GetEffectiveDeclarationFlags(node *ast.Node, flags ast.ModifierFlags) ast.ModifierFlags GetResolutionModeOverride(node *ast.Node) core.ResolutionMode + // const enum inlining + GetConstantValue(node *ast.Node) any + // JSX Emit GetJsxFactoryEntity(location *ast.Node) *ast.Node GetJsxFragmentFactoryEntity(location *ast.Node) *ast.Node diff --git a/internal/printer/printer.go b/internal/printer/printer.go index a33871c6bb..fe6aaf365a 100644 --- a/internal/printer/printer.go +++ b/internal/printer/printer.go @@ -24,7 +24,6 @@ import ( "github.com/microsoft/typescript-go/internal/ast" "github.com/microsoft/typescript-go/internal/core" - "github.com/microsoft/typescript-go/internal/jsnum" "github.com/microsoft/typescript-go/internal/scanner" "github.com/microsoft/typescript-go/internal/sourcemap" "github.com/microsoft/typescript-go/internal/stringutil" @@ -630,15 +629,19 @@ func (p *Printer) writeCommentRange(comment ast.CommentRange) { } text := p.currentSourceFile.Text() - if comment.Kind == ast.KindMultiLineCommentTrivia { - lineMap := p.currentSourceFile.LineMap() + lineMap := p.currentSourceFile.LineMap() + p.writeCommentRangeWorker(text, lineMap, comment.Kind, comment.TextRange) +} + +func (p *Printer) writeCommentRangeWorker(text string, lineMap []core.TextPos, kind ast.Kind, loc core.TextRange) { + if kind == ast.KindMultiLineCommentTrivia { indentSize := len(getIndentString(1)) - firstLine := scanner.ComputeLineOfPosition(lineMap, comment.Pos()) + firstLine := scanner.ComputeLineOfPosition(lineMap, loc.Pos()) lineCount := len(lineMap) firstCommentLineIndent := -1 - pos := comment.Pos() + pos := loc.Pos() currentLine := firstLine - for ; pos < comment.End(); currentLine++ { + for ; pos < loc.End(); currentLine++ { var nextLineStart int if currentLine+1 == lineCount { nextLineStart = len(text) + 1 @@ -646,10 +649,10 @@ func (p *Printer) writeCommentRange(comment ast.CommentRange) { nextLineStart = int(lineMap[currentLine+1]) } - if pos != comment.Pos() { + if pos != loc.Pos() { // If we are not emitting first line, we need to write the spaces to adjust the alignment if firstCommentLineIndent == -1 { - firstCommentLineIndent = calculateIndent(text, int(lineMap[firstLine]), comment.Pos()) + firstCommentLineIndent = calculateIndent(text, int(lineMap[firstLine]), loc.Pos()) } // These are number of spaces writer is going to write at current indent @@ -689,11 +692,11 @@ func (p *Printer) writeCommentRange(comment ast.CommentRange) { } // Write the comment line text - end := min(comment.End(), nextLineStart-1) + end := min(loc.End(), nextLineStart-1) currentLineText := strings.TrimSpace(text[pos:end]) if len(currentLineText) > 0 { p.writeComment(currentLineText) - if end != comment.End() { + if end != loc.End() { p.writeLine() } } else { @@ -705,7 +708,7 @@ func (p *Printer) writeCommentRange(comment ast.CommentRange) { } } else { // Single line comment of style //.... - p.writeComment(text[comment.Pos():comment.End()]) + p.writeComment(text[loc.Pos():loc.End()]) } } @@ -713,11 +716,6 @@ func (p *Printer) writeCommentRange(comment ast.CommentRange) { // Custom emit behavior stubs (i.e., from `EmitNode`, `EmitFlags`, etc.) // -func (p *Printer) getConstantValue(node *ast.Node) any { - // !!! Const-enum inlining (low priority) - return nil -} - func (p *Printer) shouldEmitComments(node *ast.Node) bool { return !p.commentsDisabled && p.currentSourceFile != nil && @@ -2428,12 +2426,6 @@ func (p *Printer) mayNeedDotDotForPropertyAccess(expression *ast.Expression) boo !strings.Contains(text, scanner.TokenToString(ast.KindDotToken)) && !strings.Contains(text, "E") && !strings.Contains(text, "e") - } else if ast.IsAccessExpression(expression) { - // check if constant enum value is a non-negative integer - if constantValue, ok := p.getConstantValue(expression).(jsnum.Number); ok { - return !constantValue.IsInf() && constantValue >= 0 && constantValue.Floor() == constantValue - } - return false } return false } @@ -5017,7 +5009,7 @@ func (p *Printer) emitCommentsBeforeNode(node *ast.Node) *commentState { // Emit leading comments p.emitLeadingCommentsOfNode(node, emitFlags, commentRange) - p.emitLeadingSyntheticCommentsOfNode(node) + p.emitLeadingSyntheticCommentsOfNode(node, emitFlags) if emitFlags&EFNoNestedComments != 0 { p.commentsDisabled = true } @@ -5043,7 +5035,7 @@ func (p *Printer) emitCommentsAfterNode(node *ast.Node, state *commentState) { p.commentsDisabled = false } - p.emitTrailingSyntheticCommentsOfNode(node) + p.emitTrailingSyntheticCommentsOfNode(node, emitFlags) p.emitTrailingCommentsOfNode(node, emitFlags, commentRange, containerPos, containerEnd, declarationListContainerEnd) // !!! Preserve comments from type annotation: @@ -5182,12 +5174,62 @@ func (p *Printer) emitTrailingCommentsOfNode(node *ast.Node, emitFlags EmitFlags } } -func (p *Printer) emitLeadingSyntheticCommentsOfNode(node *ast.Node) { - // !!! +func (p *Printer) emitLeadingSyntheticCommentsOfNode(node *ast.Node, emitFlags EmitFlags) { + if emitFlags&EFNoLeadingComments != 0 { + return + } + synth := p.emitContext.GetSyntheticLeadingComments(node) + for _, c := range synth { + p.emitLeadingSynthesizedComment(c) + } } -func (p *Printer) emitTrailingSyntheticCommentsOfNode(node *ast.Node) { - // !!! +func (p *Printer) emitLeadingSynthesizedComment(comment SynthesizedComment) { + if comment.HasLeadingNewLine || comment.Kind == ast.KindSingleLineCommentTrivia { + p.writer.WriteLine() + } + p.writeSynthesizedComment(comment) + if comment.HasTrailingNewLine || comment.Kind == ast.KindSingleLineCommentTrivia { + p.writer.WriteLine() + } else { + p.writer.WriteSpace(" ") + } +} + +func (p *Printer) emitTrailingSyntheticCommentsOfNode(node *ast.Node, emitFlags EmitFlags) { + if emitFlags&EFNoTrailingComments != 0 { + return + } + synth := p.emitContext.GetSyntheticTrailingComments(node) + for _, c := range synth { + p.emitTrailingSynthesizedComment(c) + } +} + +func (p *Printer) emitTrailingSynthesizedComment(comment SynthesizedComment) { + if !p.writer.IsAtStartOfLine() { + p.writer.WriteSpace(" ") + } + p.writeSynthesizedComment(comment) + if comment.HasTrailingNewLine { + p.writer.WriteLine() + } +} + +func formatSynthesizedComment(comment SynthesizedComment) string { + if comment.Kind == ast.KindMultiLineCommentTrivia { + return "/*" + comment.Text + "*/" + } + return "//" + comment.Text +} + +func (p *Printer) writeSynthesizedComment(comment SynthesizedComment) { + text := formatSynthesizedComment(comment) + var lineMap []core.TextPos + if comment.Kind == ast.KindMultiLineCommentTrivia { + lineMap = core.ComputeLineStarts(text) + } + p.writeCommentRangeWorker(text, lineMap, comment.Kind, core.NewTextRange(0, len(text))) } func (p *Printer) emitLeadingComments(pos int, elided bool) bool { diff --git a/internal/transformers/inliners/constenum.go b/internal/transformers/inliners/constenum.go new file mode 100644 index 0000000000..dbb2d930d5 --- /dev/null +++ b/internal/transformers/inliners/constenum.go @@ -0,0 +1,88 @@ +package inliners + +import ( + "strings" + + "github.com/microsoft/typescript-go/internal/ast" + "github.com/microsoft/typescript-go/internal/core" + "github.com/microsoft/typescript-go/internal/debug" + "github.com/microsoft/typescript-go/internal/jsnum" + "github.com/microsoft/typescript-go/internal/printer" + "github.com/microsoft/typescript-go/internal/scanner" + "github.com/microsoft/typescript-go/internal/transformers" +) + +type ConstEnumInliningTransformer struct { + transformers.Transformer + compilerOptions *core.CompilerOptions + currentSourceFile *ast.SourceFile + emitResolver printer.EmitResolver +} + +func NewConstEnumInliningTransformer(opt *transformers.TransformOptions) *transformers.Transformer { + compilerOptions := opt.CompilerOptions + emitContext := opt.Context + if compilerOptions.IsolatedModules.IsTrue() { + debug.Fail("const enums are not inlined under isolated modules") + } + tx := &ConstEnumInliningTransformer{compilerOptions: compilerOptions, emitResolver: opt.EmitResolver} + return tx.NewTransformer(tx.visit, emitContext) +} + +func (tx *ConstEnumInliningTransformer) visit(node *ast.Node) *ast.Node { + switch node.Kind { + case ast.KindPropertyAccessExpression, ast.KindElementAccessExpression: + { + parse := tx.EmitContext().ParseNode(node) + if parse == nil { + return tx.Visitor().VisitEachChild(node) + } + value := tx.emitResolver.GetConstantValue(parse) + if value != nil { + var replacement *ast.Node + switch v := value.(type) { + case jsnum.Number: + if v.IsInf() { + if v.Abs() == v { + replacement = tx.Factory().NewIdentifier("Infinity") + } else { + replacement = tx.Factory().NewPrefixUnaryExpression(ast.KindMinusToken, tx.Factory().NewIdentifier("Infinity")) + } + } else if v.IsNaN() { + replacement = tx.Factory().NewIdentifier("NaN") + } else if v.Abs() == v { + replacement = tx.Factory().NewNumericLiteral(v.String()) + } else { + replacement = tx.Factory().NewPrefixUnaryExpression(ast.KindMinusToken, tx.Factory().NewNumericLiteral(v.Abs().String())) + } + case string: + replacement = tx.Factory().NewStringLiteral(v) + case jsnum.PseudoBigInt: // technically not supported by strada, and issues a checker error, handled here for completeness + if v == (jsnum.PseudoBigInt{}) { + replacement = tx.Factory().NewBigIntLiteral("0") + } else if !v.Negative { + replacement = tx.Factory().NewBigIntLiteral(v.Base10Value) + } else { + replacement = tx.Factory().NewPrefixUnaryExpression(ast.KindMinusToken, tx.Factory().NewBigIntLiteral(v.Base10Value)) + } + } + + if tx.compilerOptions.RemoveComments.IsFalseOrUnknown() { + original := tx.EmitContext().MostOriginal(node) + if original != nil && !ast.NodeIsSynthesized(original) { + originalText := scanner.GetTextOfNode(original) + escapedText := " " + safeMultiLineComment(originalText) + " " + tx.EmitContext().AddSyntheticTrailingComment(replacement, ast.KindMultiLineCommentTrivia, escapedText, false) + } + } + return replacement + } + return tx.Visitor().VisitEachChild(node) + } + } + return tx.Visitor().VisitEachChild(node) +} + +func safeMultiLineComment(text string) string { + return strings.ReplaceAll(text, "*/", "*_/") +} From eb5048e04e7e0b649e1ab3202f906639bf1e489d Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Mon, 18 Aug 2025 17:28:28 -0700 Subject: [PATCH 2/6] Accept baselines --- .../assignmentNonObjectTypeConstraints.js | 2 +- ...assignmentNonObjectTypeConstraints.js.diff | 3 +- .../blockScopedEnumVariablesUseBeforeDef.js | 4 +- ...ockScopedEnumVariablesUseBeforeDef.js.diff | 9 +- ...copedEnumVariablesUseBeforeDef_preserve.js | 4 +- ...EnumVariablesUseBeforeDef_preserve.js.diff | 19 --- ...iablesUseBeforeDef_verbatimModuleSyntax.js | 4 +- ...sUseBeforeDef_verbatimModuleSyntax.js.diff | 19 +++ .../compiler/commentsdoNotEmitComments.js | 2 +- .../commentsdoNotEmitComments.js.diff | 3 +- .../computedPropertiesWithSetterAssignment.js | 2 +- ...utedPropertiesWithSetterAssignment.js.diff | 4 +- ...ceCausesNoImport(isolatedmodules=false).js | 2 +- ...sesNoImport(isolatedmodules=false).js.diff | 11 +- ...stEnumNamespaceReferenceCausesNoImport2.js | 2 +- ...mNamespaceReferenceCausesNoImport2.js.diff | 10 +- .../compiler/constEnumNoEmitReexport.js | 8 +- .../compiler/constEnumNoEmitReexport.js.diff | 20 +-- .../constEnumNoPreserveDeclarationReexport.js | 6 +- ...tEnumNoPreserveDeclarationReexport.js.diff | 12 -- .../compiler/constEnumOnlyModuleMerging.js | 2 +- .../constEnumOnlyModuleMerging.js.diff | 10 -- .../constEnumSyntheticNodesComments.js | 8 +- .../constEnumSyntheticNodesComments.js.diff | 19 --- .../compiler/constEnumToStringNoComments.js | 24 ++-- .../constEnumToStringNoComments.js.diff | 27 +--- .../compiler/constEnumToStringWithComments.js | 24 ++-- .../constEnumToStringWithComments.js.diff | 27 +--- .../submodule/compiler/constEnums.js | 92 +++++++------- .../submodule/compiler/constEnums.js.diff | 119 +----------------- .../submodule/compiler/constIndexedAccess.js | 8 +- .../compiler/constIndexedAccess.js.diff | 13 +- .../submodule/compiler/constantEnumAssert.js | 4 +- .../compiler/constantEnumAssert.js.diff | 15 +-- ...ationEmitStringEnumUsedInNonlocalSpread.js | 4 +- ...EmitStringEnumUsedInNonlocalSpread.js.diff | 7 -- .../compiler/discriminantPropertyCheck.js | 4 +- .../discriminantPropertyCheck.js.diff | 10 +- .../compiler/enumUsedBeforeDeclaration.js | 2 +- .../enumUsedBeforeDeclaration.js.diff | 10 +- .../compiler/es6ModuleConstEnumDeclaration.js | 22 ++-- .../es6ModuleConstEnumDeclaration.js.diff | 34 ++--- .../es6ModuleConstEnumDeclaration2.js | 22 ++-- .../es6ModuleConstEnumDeclaration2.js.diff | 42 +------ .../compiler/importAliasFromNamespace.js | 2 +- .../compiler/importAliasFromNamespace.js.diff | 6 +- .../compiler/mixedTypeEnumComparison.js | 10 +- .../compiler/mixedTypeEnumComparison.js.diff | 17 +-- ...eDeclarations(preserveconstenums=false).js | 8 +- ...arations(preserveconstenums=false).js.diff | 23 +--- ...leDeclarations(preserveconstenums=true).js | 8 +- ...larations(preserveconstenums=true).js.diff | 25 +--- .../submodule/conformance/constEnum3.js | 4 +- .../submodule/conformance/constEnum3.js.diff | 7 +- .../conformance/constEnumPropertyAccess1.js | 12 +- .../constEnumPropertyAccess1.js.diff | 17 +-- .../conformance/constEnumPropertyAccess2.js | 4 +- .../constEnumPropertyAccess2.js.diff | 9 +- .../conformance/constEnumPropertyAccess3.js | 18 +-- .../constEnumPropertyAccess3.js.diff | 21 +--- .../destructuringParameterDeclaration3ES5.js | 2 +- ...tructuringParameterDeclaration3ES5.js.diff | 3 +- ...cturingParameterDeclaration3ES5iterable.js | 2 +- ...ngParameterDeclaration3ES5iterable.js.diff | 3 +- .../destructuringParameterDeclaration3ES6.js | 2 +- ...tructuringParameterDeclaration3ES6.js.diff | 3 +- .../conformance/enumLiteralTypes1.js | 22 ++-- .../conformance/enumLiteralTypes1.js.diff | 60 +-------- .../conformance/enumLiteralTypes2.js | 22 ++-- .../conformance/enumLiteralTypes2.js.diff | 60 +-------- .../conformance/enumLiteralTypes3.js | 72 +++++------ .../conformance/enumLiteralTypes3.js.diff | 105 +--------------- .../reference/submodule/conformance/enums.js | 4 +- .../submodule/conformance/enums.js.diff | 12 +- .../conformance/exportNamespace_js.js | 2 +- .../conformance/exportNamespace_js.js.diff | 3 +- .../importElisionConstEnumMerge1.js | 2 +- .../importElisionConstEnumMerge1.js.diff | 3 +- .../instantiationExpressionErrors.js | 2 +- .../instantiationExpressionErrors.js.diff | 5 +- .../jsxCheckJsxNoTypeArgumentsAllowed.js | 2 +- .../jsxCheckJsxNoTypeArgumentsAllowed.js.diff | 2 +- .../conformance/stringEnumLiteralTypes1.js | 22 ++-- .../stringEnumLiteralTypes1.js.diff | 60 +-------- .../conformance/stringEnumLiteralTypes2.js | 22 ++-- .../stringEnumLiteralTypes2.js.diff | 60 +-------- .../conformance/stringEnumLiteralTypes3.js | 72 +++++------ .../stringEnumLiteralTypes3.js.diff | 105 +--------------- .../conformance/templateLiteralTypes4.js | 4 +- .../conformance/templateLiteralTypes4.js.diff | 4 +- .../const-enums-aliased-in-different-file.js | 28 ++++- .../tsc/incremental/const-enums-aliased.js | 28 ++++- .../reference/tsc/incremental/const-enums.js | 28 ++++- ...erveConstEnums-and-verbatimModuleSyntax.js | 4 +- 94 files changed, 442 insertions(+), 1274 deletions(-) delete mode 100644 testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef_preserve.js.diff create mode 100644 testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.js.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/constEnumNoPreserveDeclarationReexport.js.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/constEnumOnlyModuleMerging.js.diff diff --git a/testdata/baselines/reference/submodule/compiler/assignmentNonObjectTypeConstraints.js b/testdata/baselines/reference/submodule/compiler/assignmentNonObjectTypeConstraints.js index 0fa845f33f..f1e41c503f 100644 --- a/testdata/baselines/reference/submodule/compiler/assignmentNonObjectTypeConstraints.js +++ b/testdata/baselines/reference/submodule/compiler/assignmentNonObjectTypeConstraints.js @@ -32,7 +32,7 @@ function foo(x) { var y = x; // Ok } foo(5); -foo(E.A); +foo(0 /* E.A */); class A { a; } diff --git a/testdata/baselines/reference/submodule/compiler/assignmentNonObjectTypeConstraints.js.diff b/testdata/baselines/reference/submodule/compiler/assignmentNonObjectTypeConstraints.js.diff index 8cd1b29c34..3a68622e94 100644 --- a/testdata/baselines/reference/submodule/compiler/assignmentNonObjectTypeConstraints.js.diff +++ b/testdata/baselines/reference/submodule/compiler/assignmentNonObjectTypeConstraints.js.diff @@ -14,8 +14,7 @@ var y = x; // Ok } foo(5); --foo(0 /* E.A */); -+foo(E.A); + foo(0 /* E.A */); class A { + a; } diff --git a/testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef.js b/testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef.js index c3df7cde84..cf621070cc 100644 --- a/testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef.js +++ b/testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef.js @@ -29,14 +29,14 @@ function foo1() { })(E || (E = {})); } function foo2() { - return E.A; + return 0 /* E.A */; let E; (function (E) { E[E["A"] = 0] = "A"; })(E || (E = {})); } const config = { - a: AfterObject.A, + a: 2 /* AfterObject.A */, }; var AfterObject; (function (AfterObject) { diff --git a/testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef.js.diff b/testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef.js.diff index b4457378b2..7290443b9f 100644 --- a/testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef.js.diff +++ b/testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef.js.diff @@ -1,19 +1,16 @@ --- old.blockScopedEnumVariablesUseBeforeDef.js +++ new.blockScopedEnumVariablesUseBeforeDef.js -@@= skipped -28, +28 lines =@@ - })(E || (E = {})); +@@= skipped -29, +29 lines =@@ } function foo2() { -- return 0 /* E.A */; -+ return E.A; + return 0 /* E.A */; + let E; + (function (E) { + E[E["A"] = 0] = "A"; + })(E || (E = {})); } const config = { -- a: 2 /* AfterObject.A */, -+ a: AfterObject.A, + a: 2 /* AfterObject.A */, }; +var AfterObject; +(function (AfterObject) { diff --git a/testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef_preserve.js b/testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef_preserve.js index 4bf2b804a8..232102d52d 100644 --- a/testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef_preserve.js +++ b/testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef_preserve.js @@ -29,14 +29,14 @@ function foo1() { })(E || (E = {})); } function foo2() { - return E.A; + return 0 /* E.A */; let E; (function (E) { E[E["A"] = 0] = "A"; })(E || (E = {})); } const config = { - a: AfterObject.A, + a: 2 /* AfterObject.A */, }; var AfterObject; (function (AfterObject) { diff --git a/testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef_preserve.js.diff b/testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef_preserve.js.diff deleted file mode 100644 index 54684af2fa..0000000000 --- a/testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef_preserve.js.diff +++ /dev/null @@ -1,19 +0,0 @@ ---- old.blockScopedEnumVariablesUseBeforeDef_preserve.js -+++ new.blockScopedEnumVariablesUseBeforeDef_preserve.js -@@= skipped -28, +28 lines =@@ - })(E || (E = {})); - } - function foo2() { -- return 0 /* E.A */; -+ return E.A; - let E; - (function (E) { - E[E["A"] = 0] = "A"; - })(E || (E = {})); - } - const config = { -- a: 2 /* AfterObject.A */, -+ a: AfterObject.A, - }; - var AfterObject; - (function (AfterObject) { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.js b/testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.js index 508dc616c1..23edd41bfa 100644 --- a/testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.js +++ b/testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.js @@ -29,14 +29,14 @@ function foo1() { })(E || (E = {})); } function foo2() { - return E.A; + return 0 /* E.A */; let E; (function (E) { E[E["A"] = 0] = "A"; })(E || (E = {})); } const config = { - a: AfterObject.A, + a: 2 /* AfterObject.A */, }; var AfterObject; (function (AfterObject) { diff --git a/testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.js.diff b/testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.js.diff new file mode 100644 index 0000000000..550611fefb --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.js.diff @@ -0,0 +1,19 @@ +--- old.blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.js ++++ new.blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.js +@@= skipped -28, +28 lines =@@ + })(E || (E = {})); + } + function foo2() { +- return E.A; ++ return 0 /* E.A */; + let E; + (function (E) { + E[E["A"] = 0] = "A"; + })(E || (E = {})); + } + const config = { +- a: AfterObject.A, ++ a: 2 /* AfterObject.A */, + }; + var AfterObject; + (function (AfterObject) { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/commentsdoNotEmitComments.js b/testdata/baselines/reference/submodule/compiler/commentsdoNotEmitComments.js index 06f577a220..9802ded582 100644 --- a/testdata/baselines/reference/submodule/compiler/commentsdoNotEmitComments.js +++ b/testdata/baselines/reference/submodule/compiler/commentsdoNotEmitComments.js @@ -136,7 +136,7 @@ var color; color[color["green"] = 1] = "green"; color[color["blue"] = 2] = "blue"; })(color || (color = {})); -var shade = color.green; +var shade = 1; //// [commentsdoNotEmitComments.d.ts] diff --git a/testdata/baselines/reference/submodule/compiler/commentsdoNotEmitComments.js.diff b/testdata/baselines/reference/submodule/compiler/commentsdoNotEmitComments.js.diff index a38a3c1820..4cd94ade17 100644 --- a/testdata/baselines/reference/submodule/compiler/commentsdoNotEmitComments.js.diff +++ b/testdata/baselines/reference/submodule/compiler/commentsdoNotEmitComments.js.diff @@ -29,14 +29,13 @@ } m1.b = b; })(m1 || (m1 = {})); --var shade = 1; +var color; +(function (color) { + color[color["red"] = 0] = "red"; + color[color["green"] = 1] = "green"; + color[color["blue"] = 2] = "blue"; +})(color || (color = {})); -+var shade = color.green; + var shade = 1; //// [commentsdoNotEmitComments.d.ts] diff --git a/testdata/baselines/reference/submodule/compiler/computedPropertiesWithSetterAssignment.js b/testdata/baselines/reference/submodule/compiler/computedPropertiesWithSetterAssignment.js index 7cdb07d4a5..3a804e4208 100644 --- a/testdata/baselines/reference/submodule/compiler/computedPropertiesWithSetterAssignment.js +++ b/testdata/baselines/reference/submodule/compiler/computedPropertiesWithSetterAssignment.js @@ -31,5 +31,5 @@ var Props; })(Props || (Props = {})); foo.k = ['foo']; foo['k'] = ['foo']; -foo[Props.k] = ['foo']; +foo["k" /* Props.k */] = ['foo']; foo[k] = ['foo']; diff --git a/testdata/baselines/reference/submodule/compiler/computedPropertiesWithSetterAssignment.js.diff b/testdata/baselines/reference/submodule/compiler/computedPropertiesWithSetterAssignment.js.diff index 84e40f496d..049e8df6e9 100644 --- a/testdata/baselines/reference/submodule/compiler/computedPropertiesWithSetterAssignment.js.diff +++ b/testdata/baselines/reference/submodule/compiler/computedPropertiesWithSetterAssignment.js.diff @@ -12,6 +12,4 @@ +})(Props || (Props = {})); foo.k = ['foo']; foo['k'] = ['foo']; --foo["k" /* Props.k */] = ['foo']; -+foo[Props.k] = ['foo']; - foo[k] = ['foo']; \ No newline at end of file + foo["k" /* Props.k */] = ['foo']; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/constEnumNamespaceReferenceCausesNoImport(isolatedmodules=false).js b/testdata/baselines/reference/submodule/compiler/constEnumNamespaceReferenceCausesNoImport(isolatedmodules=false).js index 31dccf1943..997cd71e28 100644 --- a/testdata/baselines/reference/submodule/compiler/constEnumNamespaceReferenceCausesNoImport(isolatedmodules=false).js +++ b/testdata/baselines/reference/submodule/compiler/constEnumNamespaceReferenceCausesNoImport(isolatedmodules=false).js @@ -35,7 +35,7 @@ function fooFunc() { } Object.defineProperty(exports, "__esModule", { value: true }); function check(x) { switch (x) { - case Foo.ConstFooEnum.Some: + case 0 /* Foo.ConstFooEnum.Some */: break; } } diff --git a/testdata/baselines/reference/submodule/compiler/constEnumNamespaceReferenceCausesNoImport(isolatedmodules=false).js.diff b/testdata/baselines/reference/submodule/compiler/constEnumNamespaceReferenceCausesNoImport(isolatedmodules=false).js.diff index 7685f3f9e0..7822500f18 100644 --- a/testdata/baselines/reference/submodule/compiler/constEnumNamespaceReferenceCausesNoImport(isolatedmodules=false).js.diff +++ b/testdata/baselines/reference/submodule/compiler/constEnumNamespaceReferenceCausesNoImport(isolatedmodules=false).js.diff @@ -14,13 +14,4 @@ +})(ConstFooEnum || (exports.ConstFooEnum = ConstFooEnum = {})); ; function fooFunc() { } - //// [index.js] -@@= skipped -8, +15 lines =@@ - Object.defineProperty(exports, "__esModule", { value: true }); - function check(x) { - switch (x) { -- case 0 /* Foo.ConstFooEnum.Some */: -+ case Foo.ConstFooEnum.Some: - break; - } - } \ No newline at end of file + //// [index.js] \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/constEnumNamespaceReferenceCausesNoImport2.js b/testdata/baselines/reference/submodule/compiler/constEnumNamespaceReferenceCausesNoImport2.js index 0e4b0d54d9..19bf2acc7d 100644 --- a/testdata/baselines/reference/submodule/compiler/constEnumNamespaceReferenceCausesNoImport2.js +++ b/testdata/baselines/reference/submodule/compiler/constEnumNamespaceReferenceCausesNoImport2.js @@ -44,7 +44,7 @@ module.exports = Foo.ConstEnumOnlyModule; Object.defineProperty(exports, "__esModule", { value: true }); function check(x) { switch (x) { - case Foo.ConstFooEnum.Some: + case 0 /* Foo.ConstFooEnum.Some */: break; } } diff --git a/testdata/baselines/reference/submodule/compiler/constEnumNamespaceReferenceCausesNoImport2.js.diff b/testdata/baselines/reference/submodule/compiler/constEnumNamespaceReferenceCausesNoImport2.js.diff index 98cdf95b38..83b57bd3ed 100644 --- a/testdata/baselines/reference/submodule/compiler/constEnumNamespaceReferenceCausesNoImport2.js.diff +++ b/testdata/baselines/reference/submodule/compiler/constEnumNamespaceReferenceCausesNoImport2.js.diff @@ -8,12 +8,4 @@ +const Foo = require("./foo"); module.exports = Foo.ConstEnumOnlyModule; //// [index.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - function check(x) { - switch (x) { -- case 0 /* Foo.ConstFooEnum.Some */: -+ case Foo.ConstFooEnum.Some: - break; - } - } \ No newline at end of file + "use strict"; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/constEnumNoEmitReexport.js b/testdata/baselines/reference/submodule/compiler/constEnumNoEmitReexport.js index 43c2918daa..e1a6f04c8c 100644 --- a/testdata/baselines/reference/submodule/compiler/constEnumNoEmitReexport.js +++ b/testdata/baselines/reference/submodule/compiler/constEnumNoEmitReexport.js @@ -53,13 +53,13 @@ Object.defineProperty(exports, "__esModule", { value: true }); //// [Usage1.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -ImportExportDefault_1.default.Foo; -ReExportDefault_1.default.Foo; +0 /* MyConstEnum1.Foo */; +0 /* MyConstEnum2.Foo */; //// [Usage2.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -ImportExport_1.MyConstEnum.Foo; +0 /* MyConstEnum.Foo */; //// [Usage3.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -ReExport_1.MyConstEnum.Foo; +0 /* MyConstEnum.Foo */; diff --git a/testdata/baselines/reference/submodule/compiler/constEnumNoEmitReexport.js.diff b/testdata/baselines/reference/submodule/compiler/constEnumNoEmitReexport.js.diff index b22befc12d..16a188baba 100644 --- a/testdata/baselines/reference/submodule/compiler/constEnumNoEmitReexport.js.diff +++ b/testdata/baselines/reference/submodule/compiler/constEnumNoEmitReexport.js.diff @@ -12,22 +12,4 @@ +})(MyConstEnum || (exports.MyConstEnum = MyConstEnum = {})); ; //// [ImportExport.js] - "use strict"; -@@= skipped -16, +22 lines =@@ - //// [Usage1.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --0 /* MyConstEnum1.Foo */; --0 /* MyConstEnum2.Foo */; -+ImportExportDefault_1.default.Foo; -+ReExportDefault_1.default.Foo; - //// [Usage2.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --0 /* MyConstEnum.Foo */; -+ImportExport_1.MyConstEnum.Foo; - //// [Usage3.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --0 /* MyConstEnum.Foo */; -+ReExport_1.MyConstEnum.Foo; \ No newline at end of file + "use strict"; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/constEnumNoPreserveDeclarationReexport.js b/testdata/baselines/reference/submodule/compiler/constEnumNoPreserveDeclarationReexport.js index 4848120419..976f9baf99 100644 --- a/testdata/baselines/reference/submodule/compiler/constEnumNoPreserveDeclarationReexport.js +++ b/testdata/baselines/reference/submodule/compiler/constEnumNoPreserveDeclarationReexport.js @@ -23,6 +23,6 @@ StillEnum.Foo; //// [usages.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -ConstEnum_1.MyConstEnum.Foo; -ImportExport_1.default.Foo; -ReExport_1.default.Foo; +0 /* MyConstEnum.Foo */; +0 /* AlsoEnum.Foo */; +0 /* StillEnum.Foo */; diff --git a/testdata/baselines/reference/submodule/compiler/constEnumNoPreserveDeclarationReexport.js.diff b/testdata/baselines/reference/submodule/compiler/constEnumNoPreserveDeclarationReexport.js.diff deleted file mode 100644 index c7607a1c46..0000000000 --- a/testdata/baselines/reference/submodule/compiler/constEnumNoPreserveDeclarationReexport.js.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- old.constEnumNoPreserveDeclarationReexport.js -+++ new.constEnumNoPreserveDeclarationReexport.js -@@= skipped -22, +22 lines =@@ - //// [usages.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --0 /* MyConstEnum.Foo */; --0 /* AlsoEnum.Foo */; --0 /* StillEnum.Foo */; -+ConstEnum_1.MyConstEnum.Foo; -+ImportExport_1.default.Foo; -+ReExport_1.default.Foo; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/constEnumOnlyModuleMerging.js b/testdata/baselines/reference/submodule/compiler/constEnumOnlyModuleMerging.js index 495df3ac06..d35fce7e17 100644 --- a/testdata/baselines/reference/submodule/compiler/constEnumOnlyModuleMerging.js +++ b/testdata/baselines/reference/submodule/compiler/constEnumOnlyModuleMerging.js @@ -23,6 +23,6 @@ var Outer; var B; (function (B) { var O = Outer; - var x = O.A.X; + var x = 0 /* O.A.X */; var y = O.x; })(B || (B = {})); diff --git a/testdata/baselines/reference/submodule/compiler/constEnumOnlyModuleMerging.js.diff b/testdata/baselines/reference/submodule/compiler/constEnumOnlyModuleMerging.js.diff deleted file mode 100644 index e7865f2d91..0000000000 --- a/testdata/baselines/reference/submodule/compiler/constEnumOnlyModuleMerging.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.constEnumOnlyModuleMerging.js -+++ new.constEnumOnlyModuleMerging.js -@@= skipped -22, +22 lines =@@ - var B; - (function (B) { - var O = Outer; -- var x = 0 /* O.A.X */; -+ var x = O.A.X; - var y = O.x; - })(B || (B = {})); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/constEnumSyntheticNodesComments.js b/testdata/baselines/reference/submodule/compiler/constEnumSyntheticNodesComments.js index ae61dc12ed..de7242b2c8 100644 --- a/testdata/baselines/reference/submodule/compiler/constEnumSyntheticNodesComments.js +++ b/testdata/baselines/reference/submodule/compiler/constEnumSyntheticNodesComments.js @@ -33,13 +33,13 @@ function assert(x) { } function verify(a) { switch (a) { - case En.A: + case 0 /* En.A */: return assert(a); - case En["B"]: + case 1 /* En["B"] */: return assert(a); - case En[`C`]: + case 2 /* En[`C`] */: return assert(a); - case En["\u{44}"]: + case 3 /* En["\u{44}"] */: return assert(a); } } diff --git a/testdata/baselines/reference/submodule/compiler/constEnumSyntheticNodesComments.js.diff b/testdata/baselines/reference/submodule/compiler/constEnumSyntheticNodesComments.js.diff index 4913cef100..6c40be39cf 100644 --- a/testdata/baselines/reference/submodule/compiler/constEnumSyntheticNodesComments.js.diff +++ b/testdata/baselines/reference/submodule/compiler/constEnumSyntheticNodesComments.js.diff @@ -13,23 +13,4 @@ +})(En || (En = {})); function assert(x) { return x; - } - function verify(a) { - switch (a) { -- case 0 /* En.A */: -- return assert(a); -- case 1 /* En["B"] */: -- return assert(a); -- case 2 /* En[`C`] */: -- return assert(a); -- case 3 /* En["\u{44}"] */: -+ case En.A: -+ return assert(a); -+ case En["B"]: -+ return assert(a); -+ case En[`C`]: -+ return assert(a); -+ case En["\u{44}"]: - return assert(a); - } } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/constEnumToStringNoComments.js b/testdata/baselines/reference/submodule/compiler/constEnumToStringNoComments.js index 9f5ad0b7a9..21806f7b40 100644 --- a/testdata/baselines/reference/submodule/compiler/constEnumToStringNoComments.js +++ b/testdata/baselines/reference/submodule/compiler/constEnumToStringNoComments.js @@ -34,15 +34,15 @@ var Foo; Foo[Foo["B"] = -1.5] = "B"; Foo[Foo["C"] = -1] = "C"; })(Foo || (Foo = {})); -let x0 = Foo.X.toString(); -let x1 = Foo["X"].toString(); -let y0 = Foo.Y.toString(); -let y1 = Foo["Y"].toString(); -let z0 = Foo.Z.toString(); -let z1 = Foo["Z"].toString(); -let a0 = Foo.A.toString(); -let a1 = Foo["A"].toString(); -let b0 = Foo.B.toString(); -let b1 = Foo["B"].toString(); -let c0 = Foo.C.toString(); -let c1 = Foo["C"].toString(); +let x0 = 100..toString(); +let x1 = 100..toString(); +let y0 = 0.5.toString(); +let y1 = 0.5.toString(); +let z0 = 2..toString(); +let z1 = 2..toString(); +let a0 = (-1).toString(); +let a1 = (-1).toString(); +let b0 = (-1.5).toString(); +let b1 = (-1.5).toString(); +let c0 = (-1).toString(); +let c1 = (-1).toString(); diff --git a/testdata/baselines/reference/submodule/compiler/constEnumToStringNoComments.js.diff b/testdata/baselines/reference/submodule/compiler/constEnumToStringNoComments.js.diff index 6b3efa9f73..0f8140e7b6 100644 --- a/testdata/baselines/reference/submodule/compiler/constEnumToStringNoComments.js.diff +++ b/testdata/baselines/reference/submodule/compiler/constEnumToStringNoComments.js.diff @@ -4,18 +4,6 @@ //// [constEnumToStringNoComments.js] --let x0 = 100..toString(); --let x1 = 100..toString(); --let y0 = 0.5.toString(); --let y1 = 0.5.toString(); --let z0 = 2..toString(); --let z1 = 2..toString(); --let a0 = (-1).toString(); --let a1 = (-1).toString(); --let b0 = (-1.5).toString(); --let b1 = (-1.5).toString(); --let c0 = (-1).toString(); --let c1 = (-1).toString(); +var Foo; +(function (Foo) { + Foo[Foo["X"] = 100] = "X"; @@ -25,15 +13,6 @@ + Foo[Foo["B"] = -1.5] = "B"; + Foo[Foo["C"] = -1] = "C"; +})(Foo || (Foo = {})); -+let x0 = Foo.X.toString(); -+let x1 = Foo["X"].toString(); -+let y0 = Foo.Y.toString(); -+let y1 = Foo["Y"].toString(); -+let z0 = Foo.Z.toString(); -+let z1 = Foo["Z"].toString(); -+let a0 = Foo.A.toString(); -+let a1 = Foo["A"].toString(); -+let b0 = Foo.B.toString(); -+let b1 = Foo["B"].toString(); -+let c0 = Foo.C.toString(); -+let c1 = Foo["C"].toString(); \ No newline at end of file + let x0 = 100..toString(); + let x1 = 100..toString(); + let y0 = 0.5.toString(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/constEnumToStringWithComments.js b/testdata/baselines/reference/submodule/compiler/constEnumToStringWithComments.js index 439226b8a6..8c4910b13e 100644 --- a/testdata/baselines/reference/submodule/compiler/constEnumToStringWithComments.js +++ b/testdata/baselines/reference/submodule/compiler/constEnumToStringWithComments.js @@ -34,15 +34,15 @@ var Foo; Foo[Foo["B"] = -1.5] = "B"; Foo[Foo["C"] = -1] = "C"; })(Foo || (Foo = {})); -let x0 = Foo.X.toString(); -let x1 = Foo["X"].toString(); -let y0 = Foo.Y.toString(); -let y1 = Foo["Y"].toString(); -let z0 = Foo.Z.toString(); -let z1 = Foo["Z"].toString(); -let a0 = Foo.A.toString(); -let a1 = Foo["A"].toString(); -let b0 = Foo.B.toString(); -let b1 = Foo["B"].toString(); -let c0 = Foo.C.toString(); -let c1 = Foo["C"].toString(); +let x0 = 100 /* Foo.X */.toString(); +let x1 = 100 /* Foo["X"] */.toString(); +let y0 = 0.5 /* Foo.Y */.toString(); +let y1 = 0.5 /* Foo["Y"] */.toString(); +let z0 = 2 /* Foo.Z */.toString(); +let z1 = 2 /* Foo["Z"] */.toString(); +let a0 = (-1 /* Foo.A */).toString(); +let a1 = (-1 /* Foo["A"] */).toString(); +let b0 = (-1.5 /* Foo.B */).toString(); +let b1 = (-1.5 /* Foo["B"] */).toString(); +let c0 = (-1 /* Foo.C */).toString(); +let c1 = (-1 /* Foo["C"] */).toString(); diff --git a/testdata/baselines/reference/submodule/compiler/constEnumToStringWithComments.js.diff b/testdata/baselines/reference/submodule/compiler/constEnumToStringWithComments.js.diff index 767b458cbd..20b507e6fb 100644 --- a/testdata/baselines/reference/submodule/compiler/constEnumToStringWithComments.js.diff +++ b/testdata/baselines/reference/submodule/compiler/constEnumToStringWithComments.js.diff @@ -4,18 +4,6 @@ //// [constEnumToStringWithComments.js] --let x0 = 100 /* Foo.X */.toString(); --let x1 = 100 /* Foo["X"] */.toString(); --let y0 = 0.5 /* Foo.Y */.toString(); --let y1 = 0.5 /* Foo["Y"] */.toString(); --let z0 = 2 /* Foo.Z */.toString(); --let z1 = 2 /* Foo["Z"] */.toString(); --let a0 = (-1 /* Foo.A */).toString(); --let a1 = (-1 /* Foo["A"] */).toString(); --let b0 = (-1.5 /* Foo.B */).toString(); --let b1 = (-1.5 /* Foo["B"] */).toString(); --let c0 = (-1 /* Foo.C */).toString(); --let c1 = (-1 /* Foo["C"] */).toString(); +var Foo; +(function (Foo) { + Foo[Foo["X"] = 100] = "X"; @@ -25,15 +13,6 @@ + Foo[Foo["B"] = -1.5] = "B"; + Foo[Foo["C"] = -1] = "C"; +})(Foo || (Foo = {})); -+let x0 = Foo.X.toString(); -+let x1 = Foo["X"].toString(); -+let y0 = Foo.Y.toString(); -+let y1 = Foo["Y"].toString(); -+let z0 = Foo.Z.toString(); -+let z1 = Foo["Z"].toString(); -+let a0 = Foo.A.toString(); -+let a1 = Foo["A"].toString(); -+let b0 = Foo.B.toString(); -+let b1 = Foo["B"].toString(); -+let c0 = Foo.C.toString(); -+let c1 = Foo["C"].toString(); \ No newline at end of file + let x0 = 100 /* Foo.X */.toString(); + let x1 = 100 /* Foo["X"] */.toString(); + let y0 = 0.5 /* Foo.Y */.toString(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/constEnums.js b/testdata/baselines/reference/submodule/compiler/constEnums.js index 77386c1b34..d86599ad19 100644 --- a/testdata/baselines/reference/submodule/compiler/constEnums.js +++ b/testdata/baselines/reference/submodule/compiler/constEnums.js @@ -214,9 +214,9 @@ var Enum1; // correct cases: reference to the enum member from different enum declaration Enum1["W1"] = A0; if (typeof Enum1.W1 !== "string") Enum1[Enum1.W1] = "W1"; - Enum1["W2"] = Enum1.A0; + Enum1["W2"] = 100 /* Enum1.A0 */; if (typeof Enum1.W2 !== "string") Enum1[Enum1.W2] = "W2"; - Enum1["W3"] = Enum1["A0"]; + Enum1["W3"] = 100 /* Enum1["A0"] */; if (typeof Enum1.W3 !== "string") Enum1[Enum1.W3] = "W3"; Enum1[Enum1["W4"] = 11] = "W4"; Enum1[Enum1["W5"] = 11] = "W5"; @@ -243,72 +243,72 @@ var A2; })(B = A2.B || (A2.B = {})); })(A2 || (A2 = {})); function foo0(e) { - if (e === I.V1) { + if (e === 1 /* I.V1 */) { } - else if (e === I.V2) { + else if (e === 101 /* I.V2 */) { } } function foo1(e) { - if (e === I1.C.E.V1) { + if (e === 10 /* I1.C.E.V1 */) { } - else if (e === I1.C.E.V2) { + else if (e === 110 /* I1.C.E.V2 */) { } } function foo2(e) { - if (e === I2.C.E.V1) { + if (e === 10 /* I2.C.E.V1 */) { } - else if (e === I2.C.E.V2) { + else if (e === 110 /* I2.C.E.V2 */) { } } function foo(x) { switch (x) { - case Enum1.A: - case Enum1.B: - case Enum1.C: - case Enum1.D: - case Enum1.E: - case Enum1.F: - case Enum1.G: - case Enum1.H: - case Enum1.I: - case Enum1.J: - case Enum1.K: - case Enum1.L: - case Enum1.M: - case Enum1.N: - case Enum1.O: - case Enum1.P: - case Enum1.PQ: - case Enum1.Q: - case Enum1.R: - case Enum1.S: - case Enum1["T"]: - case Enum1[`U`]: - case Enum1.V: - case Enum1.W: - case Enum1.W1: - case Enum1.W2: - case Enum1.W3: - case Enum1.W4: + case 0 /* Enum1.A */: + case 1 /* Enum1.B */: + case 10 /* Enum1.C */: + case 1 /* Enum1.D */: + case 1 /* Enum1.E */: + case 1 /* Enum1.F */: + case 1 /* Enum1.G */: + case -2 /* Enum1.H */: + case 0 /* Enum1.I */: + case 0 /* Enum1.J */: + case -6 /* Enum1.K */: + case -2 /* Enum1.L */: + case 2 /* Enum1.M */: + case 2 /* Enum1.N */: + case 0 /* Enum1.O */: + case 0 /* Enum1.P */: + case 1 /* Enum1.PQ */: + case -1 /* Enum1.Q */: + case 0 /* Enum1.R */: + case 0 /* Enum1.S */: + case 11 /* Enum1["T"] */: + case 11 /* Enum1[`U`] */: + case 11 /* Enum1.V */: + case 11 /* Enum1.W */: + case 100 /* Enum1.W1 */: + case 100 /* Enum1.W2 */: + case 100 /* Enum1.W3 */: + case 11 /* Enum1.W4 */: break; } } function bar(e) { switch (e) { - case A.B.C.E.V1: return 1; - case A.B.C.E.V2: return 1; - case A.B.C.E.V3: return 1; + case 1 /* A.B.C.E.V1 */: return 1; + case 101 /* A.B.C.E.V2 */: return 1; + case 64 /* A.B.C.E.V3 */: return 1; } } function baz(c) { switch (c) { - case Comments["//"]: - case Comments["/*"]: - case Comments["*/"]: - case Comments["///"]: - case Comments["#"]: - case Comments[""]: + case 0 /* Comments["//"] */: + case 1 /* Comments["/*"] */: + case 2 /* Comments["*_/"] */: + case 3 /* Comments["///"] */: + case 4 /* Comments["#"] */: + case 5 /* Comments[""] */: break; } } diff --git a/testdata/baselines/reference/submodule/compiler/constEnums.js.diff b/testdata/baselines/reference/submodule/compiler/constEnums.js.diff index cdea6712b7..f07520dd86 100644 --- a/testdata/baselines/reference/submodule/compiler/constEnums.js.diff +++ b/testdata/baselines/reference/submodule/compiler/constEnums.js.diff @@ -37,9 +37,9 @@ + // correct cases: reference to the enum member from different enum declaration + Enum1["W1"] = A0; + if (typeof Enum1.W1 !== "string") Enum1[Enum1.W1] = "W1"; -+ Enum1["W2"] = Enum1.A0; ++ Enum1["W2"] = 100 /* Enum1.A0 */; + if (typeof Enum1.W2 !== "string") Enum1[Enum1.W2] = "W2"; -+ Enum1["W3"] = Enum1["A0"]; ++ Enum1["W3"] = 100 /* Enum1["A0"] */; + if (typeof Enum1.W3 !== "string") Enum1[Enum1.W3] = "W3"; + Enum1[Enum1["W4"] = 11] = "W4"; + Enum1[Enum1["W5"] = 11] = "W5"; @@ -63,116 +63,5 @@ })(A2 || (A2 = {})); -var I2 = A2.B; function foo0(e) { -- if (e === 1 /* I.V1 */) { -+ if (e === I.V1) { - } -- else if (e === 101 /* I.V2 */) { -+ else if (e === I.V2) { - } - } - function foo1(e) { -- if (e === 10 /* I1.C.E.V1 */) { -+ if (e === I1.C.E.V1) { - } -- else if (e === 110 /* I1.C.E.V2 */) { -+ else if (e === I1.C.E.V2) { - } - } - function foo2(e) { -- if (e === 10 /* I2.C.E.V1 */) { -+ if (e === I2.C.E.V1) { - } -- else if (e === 110 /* I2.C.E.V2 */) { -+ else if (e === I2.C.E.V2) { - } - } - function foo(x) { - switch (x) { -- case 0 /* Enum1.A */: -- case 1 /* Enum1.B */: -- case 10 /* Enum1.C */: -- case 1 /* Enum1.D */: -- case 1 /* Enum1.E */: -- case 1 /* Enum1.F */: -- case 1 /* Enum1.G */: -- case -2 /* Enum1.H */: -- case 0 /* Enum1.I */: -- case 0 /* Enum1.J */: -- case -6 /* Enum1.K */: -- case -2 /* Enum1.L */: -- case 2 /* Enum1.M */: -- case 2 /* Enum1.N */: -- case 0 /* Enum1.O */: -- case 0 /* Enum1.P */: -- case 1 /* Enum1.PQ */: -- case -1 /* Enum1.Q */: -- case 0 /* Enum1.R */: -- case 0 /* Enum1.S */: -- case 11 /* Enum1["T"] */: -- case 11 /* Enum1[`U`] */: -- case 11 /* Enum1.V */: -- case 11 /* Enum1.W */: -- case 100 /* Enum1.W1 */: -- case 100 /* Enum1.W2 */: -- case 100 /* Enum1.W3 */: -- case 11 /* Enum1.W4 */: -+ case Enum1.A: -+ case Enum1.B: -+ case Enum1.C: -+ case Enum1.D: -+ case Enum1.E: -+ case Enum1.F: -+ case Enum1.G: -+ case Enum1.H: -+ case Enum1.I: -+ case Enum1.J: -+ case Enum1.K: -+ case Enum1.L: -+ case Enum1.M: -+ case Enum1.N: -+ case Enum1.O: -+ case Enum1.P: -+ case Enum1.PQ: -+ case Enum1.Q: -+ case Enum1.R: -+ case Enum1.S: -+ case Enum1["T"]: -+ case Enum1[`U`]: -+ case Enum1.V: -+ case Enum1.W: -+ case Enum1.W1: -+ case Enum1.W2: -+ case Enum1.W3: -+ case Enum1.W4: - break; - } - } - function bar(e) { - switch (e) { -- case 1 /* A.B.C.E.V1 */: return 1; -- case 101 /* A.B.C.E.V2 */: return 1; -- case 64 /* A.B.C.E.V3 */: return 1; -+ case A.B.C.E.V1: return 1; -+ case A.B.C.E.V2: return 1; -+ case A.B.C.E.V3: return 1; - } - } - function baz(c) { - switch (c) { -- case 0 /* Comments["//"] */: -- case 1 /* Comments["/*"] */: -- case 2 /* Comments["*_/"] */: -- case 3 /* Comments["///"] */: -- case 4 /* Comments["#"] */: -- case 5 /* Comments[""] */: -+ case Comments["//"]: -+ case Comments["/*"]: -+ case Comments["*/"]: -+ case Comments["///"]: -+ case Comments["#"]: -+ case Comments[""]: - break; - } - } \ No newline at end of file + if (e === 1 /* I.V1 */) { + } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/constIndexedAccess.js b/testdata/baselines/reference/submodule/compiler/constIndexedAccess.js index b4ed88d5d5..7b71afd1f1 100644 --- a/testdata/baselines/reference/submodule/compiler/constIndexedAccess.js +++ b/testdata/baselines/reference/submodule/compiler/constIndexedAccess.js @@ -40,10 +40,10 @@ var numbers; let test; let s = test[0]; let n = test[1]; -let s1 = test[numbers.zero]; -let n1 = test[numbers.one]; -let s2 = test[numbers["zero"]]; -let n2 = test[numbers["one"]]; +let s1 = test[0 /* numbers.zero */]; +let n1 = test[1 /* numbers.one */]; +let s2 = test[0 /* numbers["zero"] */]; +let n2 = test[1 /* numbers["one"] */]; var numbersNotConst; (function (numbersNotConst) { numbersNotConst[numbersNotConst["zero"] = 0] = "zero"; diff --git a/testdata/baselines/reference/submodule/compiler/constIndexedAccess.js.diff b/testdata/baselines/reference/submodule/compiler/constIndexedAccess.js.diff index 09dea1372e..55cd4a8c9b 100644 --- a/testdata/baselines/reference/submodule/compiler/constIndexedAccess.js.diff +++ b/testdata/baselines/reference/submodule/compiler/constIndexedAccess.js.diff @@ -11,15 +11,4 @@ +})(numbers || (numbers = {})); let test; let s = test[0]; - let n = test[1]; --let s1 = test[0 /* numbers.zero */]; --let n1 = test[1 /* numbers.one */]; --let s2 = test[0 /* numbers["zero"] */]; --let n2 = test[1 /* numbers["one"] */]; -+let s1 = test[numbers.zero]; -+let n1 = test[numbers.one]; -+let s2 = test[numbers["zero"]]; -+let n2 = test[numbers["one"]]; - var numbersNotConst; - (function (numbersNotConst) { - numbersNotConst[numbersNotConst["zero"] = 0] = "zero"; \ No newline at end of file + let n = test[1]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/constantEnumAssert.js b/testdata/baselines/reference/submodule/compiler/constantEnumAssert.js index c5bd35dfed..de37909a44 100644 --- a/testdata/baselines/reference/submodule/compiler/constantEnumAssert.js +++ b/testdata/baselines/reference/submodule/compiler/constantEnumAssert.js @@ -83,10 +83,10 @@ const foo2 = { a: E2.a }; const foo3 = { a: E1.a }; const foo4 = { a: E2.a }; const foo5 = { a: E3.a }; -const foo6 = { a: E4.a }; +const foo6 = { a: 0 /* E4.a */ }; const foo7 = { a: E5.a }; const foo8 = { a: E1.a }; const foo9 = { a: E2.a }; const foo10 = { a: E3.a }; -const foo11 = { a: E4.a }; +const foo11 = { a: 0 /* E4.a */ }; const foo12 = { a: E5.a }; diff --git a/testdata/baselines/reference/submodule/compiler/constantEnumAssert.js.diff b/testdata/baselines/reference/submodule/compiler/constantEnumAssert.js.diff index 6c6d943fff..f634ab33af 100644 --- a/testdata/baselines/reference/submodule/compiler/constantEnumAssert.js.diff +++ b/testdata/baselines/reference/submodule/compiler/constantEnumAssert.js.diff @@ -11,17 +11,4 @@ +})(E4 || (E4 = {})); const E5 = { a: 'a', - b: 'b' -@@= skipped -9, +14 lines =@@ - const foo3 = { a: E1.a }; - const foo4 = { a: E2.a }; - const foo5 = { a: E3.a }; --const foo6 = { a: 0 /* E4.a */ }; -+const foo6 = { a: E4.a }; - const foo7 = { a: E5.a }; - const foo8 = { a: E1.a }; - const foo9 = { a: E2.a }; - const foo10 = { a: E3.a }; --const foo11 = { a: 0 /* E4.a */ }; -+const foo11 = { a: E4.a }; - const foo12 = { a: E5.a }; \ No newline at end of file + b: 'b' \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitStringEnumUsedInNonlocalSpread.js b/testdata/baselines/reference/submodule/compiler/declarationEmitStringEnumUsedInNonlocalSpread.js index 70287b0933..ad2c7d62ac 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitStringEnumUsedInNonlocalSpread.js +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitStringEnumUsedInNonlocalSpread.js @@ -43,8 +43,8 @@ var TestEnum; class A { getA() { return { - [TestEnum.Test1]: '123', - [TestEnum.Test2]: '123', + ["123123" /* TestEnum.Test1 */]: '123', + ["12312312312" /* TestEnum.Test2 */]: '123', }; } } diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitStringEnumUsedInNonlocalSpread.js.diff b/testdata/baselines/reference/submodule/compiler/declarationEmitStringEnumUsedInNonlocalSpread.js.diff index adc2d75099..360d96fca1 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitStringEnumUsedInNonlocalSpread.js.diff +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitStringEnumUsedInNonlocalSpread.js.diff @@ -14,13 +14,6 @@ class A { getA() { return { -- ["123123" /* TestEnum.Test1 */]: '123', -- ["12312312312" /* TestEnum.Test2 */]: '123', -+ [TestEnum.Test1]: '123', -+ [TestEnum.Test2]: '123', - }; - } - } @@= skipped -25, +30 lines =@@ }; Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/testdata/baselines/reference/submodule/compiler/discriminantPropertyCheck.js b/testdata/baselines/reference/submodule/compiler/discriminantPropertyCheck.js index 8df3165004..3932f08230 100644 --- a/testdata/baselines/reference/submodule/compiler/discriminantPropertyCheck.js +++ b/testdata/baselines/reference/submodule/compiler/discriminantPropertyCheck.js @@ -327,9 +327,9 @@ var BarEnum; function func3(value) { if (value.type !== undefined) { switch (value.type) { - case BarEnum.bar1: + case 1 /* BarEnum.bar1 */: break; - case BarEnum.bar2: + case 2 /* BarEnum.bar2 */: break; default: never(value.type); diff --git a/testdata/baselines/reference/submodule/compiler/discriminantPropertyCheck.js.diff b/testdata/baselines/reference/submodule/compiler/discriminantPropertyCheck.js.diff index 65f7739ba4..eb1ebe5b3c 100644 --- a/testdata/baselines/reference/submodule/compiler/discriminantPropertyCheck.js.diff +++ b/testdata/baselines/reference/submodule/compiler/discriminantPropertyCheck.js.diff @@ -11,12 +11,4 @@ +})(BarEnum || (BarEnum = {})); function func3(value) { if (value.type !== undefined) { - switch (value.type) { -- case 1 /* BarEnum.bar1 */: -+ case BarEnum.bar1: - break; -- case 2 /* BarEnum.bar2 */: -+ case BarEnum.bar2: - break; - default: - never(value.type); \ No newline at end of file + switch (value.type) { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/enumUsedBeforeDeclaration.js b/testdata/baselines/reference/submodule/compiler/enumUsedBeforeDeclaration.js index 1479b24a0f..4dfb5d7479 100644 --- a/testdata/baselines/reference/submodule/compiler/enumUsedBeforeDeclaration.js +++ b/testdata/baselines/reference/submodule/compiler/enumUsedBeforeDeclaration.js @@ -10,7 +10,7 @@ const enum ConstColor { Red, Green, Blue } //// [enumUsedBeforeDeclaration.js] const v = Color.Green; -const v2 = ConstColor.Green; +const v2 = 1 /* ConstColor.Green */; var Color; (function (Color) { Color[Color["Red"] = 0] = "Red"; diff --git a/testdata/baselines/reference/submodule/compiler/enumUsedBeforeDeclaration.js.diff b/testdata/baselines/reference/submodule/compiler/enumUsedBeforeDeclaration.js.diff index 2b03458efc..e65b4fafc9 100644 --- a/testdata/baselines/reference/submodule/compiler/enumUsedBeforeDeclaration.js.diff +++ b/testdata/baselines/reference/submodule/compiler/enumUsedBeforeDeclaration.js.diff @@ -1,14 +1,6 @@ --- old.enumUsedBeforeDeclaration.js +++ new.enumUsedBeforeDeclaration.js -@@= skipped -9, +9 lines =@@ - - //// [enumUsedBeforeDeclaration.js] - const v = Color.Green; --const v2 = 1 /* ConstColor.Green */; -+const v2 = ConstColor.Green; - var Color; - (function (Color) { - Color[Color["Red"] = 0] = "Red"; +@@= skipped -16, +16 lines =@@ Color[Color["Green"] = 1] = "Green"; Color[Color["Blue"] = 2] = "Blue"; })(Color || (Color = {})); diff --git a/testdata/baselines/reference/submodule/compiler/es6ModuleConstEnumDeclaration.js b/testdata/baselines/reference/submodule/compiler/es6ModuleConstEnumDeclaration.js index 5fafb9399f..ac5715f293 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ModuleConstEnumDeclaration.js +++ b/testdata/baselines/reference/submodule/compiler/es6ModuleConstEnumDeclaration.js @@ -61,8 +61,8 @@ var e2; e2[e2["y"] = 1] = "y"; e2[e2["z"] = 2] = "z"; })(e2 || (e2 = {})); -var x = e1.a; -var y = e2.x; +var x = 0 /* e1.a */; +var y = 0 /* e2.x */; export { m1 }; var m1; (function (m1) { @@ -78,10 +78,10 @@ var m1; e4[e4["y"] = 1] = "y"; e4[e4["z"] = 2] = "z"; })(e4 || (e4 = {})); - var x1 = e1.a; - var y1 = e2.x; - var x2 = e3.a; - var y2 = e4.x; + var x1 = 0 /* e1.a */; + var y1 = 0 /* e2.x */; + var x2 = 0 /* e3.a */; + var y2 = 0 /* e4.x */; })(m1 || (m1 = {})); var m2; (function (m2) { @@ -97,9 +97,9 @@ var m2; e6[e6["y"] = 1] = "y"; e6[e6["z"] = 2] = "z"; })(e6 || (e6 = {})); - var x1 = e1.a; - var y1 = e2.x; - var x2 = e5.a; - var y2 = e6.x; - var x3 = m1.e3.a; + var x1 = 0 /* e1.a */; + var y1 = 0 /* e2.x */; + var x2 = 0 /* e5.a */; + var y2 = 0 /* e6.x */; + var x3 = 0 /* m1.e3.a */; })(m2 || (m2 = {})); diff --git a/testdata/baselines/reference/submodule/compiler/es6ModuleConstEnumDeclaration.js.diff b/testdata/baselines/reference/submodule/compiler/es6ModuleConstEnumDeclaration.js.diff index 0ae26c64c9..c25aa860d6 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ModuleConstEnumDeclaration.js.diff +++ b/testdata/baselines/reference/submodule/compiler/es6ModuleConstEnumDeclaration.js.diff @@ -4,9 +4,6 @@ } //// [es6ModuleConstEnumDeclaration.js] --var x = 0 /* e1.a */; --var y = 0 /* e2.x */; --export var m1; +export { e1 }; +var e1; +(function (e1) { @@ -20,15 +17,12 @@ + e2[e2["y"] = 1] = "y"; + e2[e2["z"] = 2] = "z"; +})(e2 || (e2 = {})); -+var x = e1.a; -+var y = e2.x; + var x = 0 /* e1.a */; + var y = 0 /* e2.x */; +-export var m1; +export { m1 }; +var m1; (function (m1) { -- var x1 = 0 /* e1.a */; -- var y1 = 0 /* e2.x */; -- var x2 = 0 /* e3.a */; -- var y2 = 0 /* e4.x */; + let e3; + (function (e3) { + e3[e3["a"] = 0] = "a"; @@ -41,18 +35,13 @@ + e4[e4["y"] = 1] = "y"; + e4[e4["z"] = 2] = "z"; + })(e4 || (e4 = {})); -+ var x1 = e1.a; -+ var y1 = e2.x; -+ var x2 = e3.a; -+ var y2 = e4.x; + var x1 = 0 /* e1.a */; + var y1 = 0 /* e2.x */; + var x2 = 0 /* e3.a */; +@@= skipped -11, +37 lines =@@ })(m1 || (m1 = {})); var m2; (function (m2) { -- var x1 = 0 /* e1.a */; -- var y1 = 0 /* e2.x */; -- var x2 = 0 /* e5.a */; -- var y2 = 0 /* e6.x */; -- var x3 = 0 /* m1.e3.a */; + let e5; + (function (e5) { + e5[e5["a"] = 0] = "a"; @@ -65,9 +54,6 @@ + e6[e6["y"] = 1] = "y"; + e6[e6["z"] = 2] = "z"; + })(e6 || (e6 = {})); -+ var x1 = e1.a; -+ var y1 = e2.x; -+ var x2 = e5.a; -+ var y2 = e6.x; -+ var x3 = m1.e3.a; - })(m2 || (m2 = {})); \ No newline at end of file + var x1 = 0 /* e1.a */; + var y1 = 0 /* e2.x */; + var x2 = 0 /* e5.a */; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/es6ModuleConstEnumDeclaration2.js b/testdata/baselines/reference/submodule/compiler/es6ModuleConstEnumDeclaration2.js index ee5e9008bb..c6853805da 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ModuleConstEnumDeclaration2.js +++ b/testdata/baselines/reference/submodule/compiler/es6ModuleConstEnumDeclaration2.js @@ -61,8 +61,8 @@ var e2; e2[e2["y"] = 1] = "y"; e2[e2["z"] = 2] = "z"; })(e2 || (e2 = {})); -var x = e1.a; -var y = e2.x; +var x = 0 /* e1.a */; +var y = 0 /* e2.x */; export { m1 }; var m1; (function (m1) { @@ -78,10 +78,10 @@ var m1; e4[e4["y"] = 1] = "y"; e4[e4["z"] = 2] = "z"; })(e4 || (e4 = {})); - var x1 = e1.a; - var y1 = e2.x; - var x2 = e3.a; - var y2 = e4.x; + var x1 = 0 /* e1.a */; + var y1 = 0 /* e2.x */; + var x2 = 0 /* e3.a */; + var y2 = 0 /* e4.x */; })(m1 || (m1 = {})); var m2; (function (m2) { @@ -97,9 +97,9 @@ var m2; e6[e6["y"] = 1] = "y"; e6[e6["z"] = 2] = "z"; })(e6 || (e6 = {})); - var x1 = e1.a; - var y1 = e2.x; - var x2 = e5.a; - var y2 = e6.x; - var x3 = m1.e3.a; + var x1 = 0 /* e1.a */; + var y1 = 0 /* e2.x */; + var x2 = 0 /* e5.a */; + var y2 = 0 /* e6.x */; + var x3 = 0 /* m1.e3.a */; })(m2 || (m2 = {})); diff --git a/testdata/baselines/reference/submodule/compiler/es6ModuleConstEnumDeclaration2.js.diff b/testdata/baselines/reference/submodule/compiler/es6ModuleConstEnumDeclaration2.js.diff index 81a74725fb..239f10504f 100644 --- a/testdata/baselines/reference/submodule/compiler/es6ModuleConstEnumDeclaration2.js.diff +++ b/testdata/baselines/reference/submodule/compiler/es6ModuleConstEnumDeclaration2.js.diff @@ -10,47 +10,13 @@ (function (e1) { e1[e1["a"] = 0] = "a"; e1[e1["b"] = 1] = "b"; -@@= skipped -12, +13 lines =@@ - e2[e2["y"] = 1] = "y"; - e2[e2["z"] = 2] = "z"; +@@= skipped -14, +15 lines =@@ })(e2 || (e2 = {})); --var x = 0 /* e1.a */; --var y = 0 /* e2.x */; + var x = 0 /* e1.a */; + var y = 0 /* e2.x */; -export var m1; -+var x = e1.a; -+var y = e2.x; +export { m1 }; +var m1; (function (m1) { let e3; - (function (e3) { -@@= skipped -16, +17 lines =@@ - e4[e4["y"] = 1] = "y"; - e4[e4["z"] = 2] = "z"; - })(e4 || (e4 = {})); -- var x1 = 0 /* e1.a */; -- var y1 = 0 /* e2.x */; -- var x2 = 0 /* e3.a */; -- var y2 = 0 /* e4.x */; -+ var x1 = e1.a; -+ var y1 = e2.x; -+ var x2 = e3.a; -+ var y2 = e4.x; - })(m1 || (m1 = {})); - var m2; - (function (m2) { -@@= skipped -19, +19 lines =@@ - e6[e6["y"] = 1] = "y"; - e6[e6["z"] = 2] = "z"; - })(e6 || (e6 = {})); -- var x1 = 0 /* e1.a */; -- var y1 = 0 /* e2.x */; -- var x2 = 0 /* e5.a */; -- var y2 = 0 /* e6.x */; -- var x3 = 0 /* m1.e3.a */; -+ var x1 = e1.a; -+ var y1 = e2.x; -+ var x2 = e5.a; -+ var y2 = e6.x; -+ var x3 = m1.e3.a; - })(m2 || (m2 = {})); \ No newline at end of file + (function (e3) { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importAliasFromNamespace.js b/testdata/baselines/reference/submodule/compiler/importAliasFromNamespace.js index 92bb66b0b5..f51f0352e3 100644 --- a/testdata/baselines/reference/submodule/compiler/importAliasFromNamespace.js +++ b/testdata/baselines/reference/submodule/compiler/importAliasFromNamespace.js @@ -47,7 +47,7 @@ var SomeOther; _which; constructor() { Internal.getThing(); - Internal.WhichThing.A ? "foo" : "bar"; + 0 /* Internal.WhichThing.A */ ? "foo" : "bar"; } } Thing.Foo = Foo; diff --git a/testdata/baselines/reference/submodule/compiler/importAliasFromNamespace.js.diff b/testdata/baselines/reference/submodule/compiler/importAliasFromNamespace.js.diff index b097923dbc..f07ac3eaec 100644 --- a/testdata/baselines/reference/submodule/compiler/importAliasFromNamespace.js.diff +++ b/testdata/baselines/reference/submodule/compiler/importAliasFromNamespace.js.diff @@ -29,8 +29,4 @@ + _which; constructor() { Internal.getThing(); -- 0 /* Internal.WhichThing.A */ ? "foo" : "bar"; -+ Internal.WhichThing.A ? "foo" : "bar"; - } - } - Thing.Foo = Foo; \ No newline at end of file + 0 /* Internal.WhichThing.A */ ? "foo" : "bar"; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/mixedTypeEnumComparison.js b/testdata/baselines/reference/submodule/compiler/mixedTypeEnumComparison.js index da7e3cac30..345c281b43 100644 --- a/testdata/baselines/reference/submodule/compiler/mixedTypeEnumComparison.js +++ b/testdata/baselines/reference/submodule/compiler/mixedTypeEnumComparison.js @@ -49,14 +49,14 @@ var E; E[E["N1"] = 1000] = "N1"; E[E["N2"] = 25] = "N2"; })(E || (E = {})); -if (someNumber > E.N2) { - someNumber = E.N2; +if (someNumber > 25 /* E.N2 */) { + someNumber = 25 /* E.N2 */; } if (someNumber > unionOfEnum) { - someNumber = E.N2; + someNumber = 25 /* E.N2 */; } -if (someString > E.S1) { - someString = E.S2; +if (someString > "foo" /* E.S1 */) { + someString = "bar" /* E.S2 */; } var E2; (function (E2) { diff --git a/testdata/baselines/reference/submodule/compiler/mixedTypeEnumComparison.js.diff b/testdata/baselines/reference/submodule/compiler/mixedTypeEnumComparison.js.diff index 1be39dfff5..d443d59864 100644 --- a/testdata/baselines/reference/submodule/compiler/mixedTypeEnumComparison.js.diff +++ b/testdata/baselines/reference/submodule/compiler/mixedTypeEnumComparison.js.diff @@ -5,8 +5,6 @@ //// [mixedTypeEnumComparison.js] -"use strict"; --if (someNumber > 25 /* E.N2 */) { -- someNumber = 25 /* E.N2 */; +var E; +(function (E) { + E["S1"] = "foo"; @@ -14,19 +12,10 @@ + E[E["N1"] = 1000] = "N1"; + E[E["N2"] = 25] = "N2"; +})(E || (E = {})); -+if (someNumber > E.N2) { -+ someNumber = E.N2; + if (someNumber > 25 /* E.N2 */) { + someNumber = 25 /* E.N2 */; } - if (someNumber > unionOfEnum) { -- someNumber = 25 /* E.N2 */; -+ someNumber = E.N2; - } --if (someString > "foo" /* E.S1 */) { -- someString = "bar" /* E.S2 */; -+if (someString > E.S1) { -+ someString = E.S2; - } - var E2; +@@= skipped -14, +20 lines =@@ (function (E2) { E2["S1"] = "foo"; E2[E2["N1"] = 1000] = "N1"; diff --git a/testdata/baselines/reference/submodule/compiler/unreachableDeclarations(preserveconstenums=false).js b/testdata/baselines/reference/submodule/compiler/unreachableDeclarations(preserveconstenums=false).js index 94c191f9a8..7a1a4b028f 100644 --- a/testdata/baselines/reference/submodule/compiler/unreachableDeclarations(preserveconstenums=false).js +++ b/testdata/baselines/reference/submodule/compiler/unreachableDeclarations(preserveconstenums=false).js @@ -92,11 +92,11 @@ function func5() { function func1() { aFunc(); console.log(EnumA.Value); - console.log(EnumB.Value); + console.log(0 /* EnumB.Value */); return; function aFunc() { console.log(EnumA.Value); - console.log(EnumB.Value); + console.log(0 /* EnumB.Value */); } let EnumA; (function (EnumA) { @@ -121,10 +121,10 @@ function func2() { } function func3() { aFunc(); - console.log(EnumB.Value); + console.log(0 /* EnumB.Value */); return; function aFunc() { - console.log(EnumB.Value); + console.log(0 /* EnumB.Value */); } let EnumB; (function (EnumB) { diff --git a/testdata/baselines/reference/submodule/compiler/unreachableDeclarations(preserveconstenums=false).js.diff b/testdata/baselines/reference/submodule/compiler/unreachableDeclarations(preserveconstenums=false).js.diff index 030d8b6173..8eacca399f 100644 --- a/testdata/baselines/reference/submodule/compiler/unreachableDeclarations(preserveconstenums=false).js.diff +++ b/testdata/baselines/reference/submodule/compiler/unreachableDeclarations(preserveconstenums=false).js.diff @@ -8,15 +8,7 @@ function func1() { aFunc(); console.log(EnumA.Value); -- console.log(0 /* EnumB.Value */); -+ console.log(EnumB.Value); - return; - function aFunc() { - console.log(EnumA.Value); -- console.log(0 /* EnumB.Value */); -+ console.log(EnumB.Value); - } - let EnumA; +@@= skipped -14, +13 lines =@@ (function (EnumA) { EnumA[EnumA["Value"] = 0] = "Value"; })(EnumA || (EnumA = {})); @@ -27,16 +19,9 @@ } function func2() { aFunc(); -@@= skipped -29, +32 lines =@@ - } - function func3() { - aFunc(); -- console.log(0 /* EnumB.Value */); -+ console.log(EnumB.Value); - return; +@@= skipped -20, +24 lines =@@ function aFunc() { -- console.log(0 /* EnumB.Value */); -+ console.log(EnumB.Value); + console.log(0 /* EnumB.Value */); } + let EnumB; + (function (EnumB) { @@ -45,7 +30,7 @@ } function func4() { aFunc(); -@@= skipped -13, +17 lines =@@ +@@= skipped -8, +12 lines =@@ function aFunc() { console.log(ClassA.Value); } diff --git a/testdata/baselines/reference/submodule/compiler/unreachableDeclarations(preserveconstenums=true).js b/testdata/baselines/reference/submodule/compiler/unreachableDeclarations(preserveconstenums=true).js index 94c191f9a8..7a1a4b028f 100644 --- a/testdata/baselines/reference/submodule/compiler/unreachableDeclarations(preserveconstenums=true).js +++ b/testdata/baselines/reference/submodule/compiler/unreachableDeclarations(preserveconstenums=true).js @@ -92,11 +92,11 @@ function func5() { function func1() { aFunc(); console.log(EnumA.Value); - console.log(EnumB.Value); + console.log(0 /* EnumB.Value */); return; function aFunc() { console.log(EnumA.Value); - console.log(EnumB.Value); + console.log(0 /* EnumB.Value */); } let EnumA; (function (EnumA) { @@ -121,10 +121,10 @@ function func2() { } function func3() { aFunc(); - console.log(EnumB.Value); + console.log(0 /* EnumB.Value */); return; function aFunc() { - console.log(EnumB.Value); + console.log(0 /* EnumB.Value */); } let EnumB; (function (EnumB) { diff --git a/testdata/baselines/reference/submodule/compiler/unreachableDeclarations(preserveconstenums=true).js.diff b/testdata/baselines/reference/submodule/compiler/unreachableDeclarations(preserveconstenums=true).js.diff index 1beda9594c..583fa67a1f 100644 --- a/testdata/baselines/reference/submodule/compiler/unreachableDeclarations(preserveconstenums=true).js.diff +++ b/testdata/baselines/reference/submodule/compiler/unreachableDeclarations(preserveconstenums=true).js.diff @@ -8,30 +8,7 @@ function func1() { aFunc(); console.log(EnumA.Value); -- console.log(0 /* EnumB.Value */); -+ console.log(EnumB.Value); - return; - function aFunc() { - console.log(EnumA.Value); -- console.log(0 /* EnumB.Value */); -+ console.log(EnumB.Value); - } - let EnumA; - (function (EnumA) { -@@= skipped -33, +32 lines =@@ - } - function func3() { - aFunc(); -- console.log(0 /* EnumB.Value */); -+ console.log(EnumB.Value); - return; - function aFunc() { -- console.log(0 /* EnumB.Value */); -+ console.log(EnumB.Value); - } - let EnumB; - (function (EnumB) { -@@= skipped -17, +17 lines =@@ +@@= skipped -50, +49 lines =@@ function aFunc() { console.log(ClassA.Value); } diff --git a/testdata/baselines/reference/submodule/conformance/constEnum3.js b/testdata/baselines/reference/submodule/conformance/constEnum3.js index ed8fd36585..17fbfc369a 100644 --- a/testdata/baselines/reference/submodule/conformance/constEnum3.js +++ b/testdata/baselines/reference/submodule/conformance/constEnum3.js @@ -21,7 +21,7 @@ var TestType; })(TestType || (TestType = {})); function f1(f) { } function f2(f) { } -f1(TestType.foo); -f1(TestType.bar); +f1(0 /* TestType.foo */); +f1(1 /* TestType.bar */); f2('foo'); f2('bar'); diff --git a/testdata/baselines/reference/submodule/conformance/constEnum3.js.diff b/testdata/baselines/reference/submodule/conformance/constEnum3.js.diff index 08b1d0aee4..fb695ebbe8 100644 --- a/testdata/baselines/reference/submodule/conformance/constEnum3.js.diff +++ b/testdata/baselines/reference/submodule/conformance/constEnum3.js.diff @@ -11,9 +11,4 @@ +})(TestType || (TestType = {})); function f1(f) { } function f2(f) { } --f1(0 /* TestType.foo */); --f1(1 /* TestType.bar */); -+f1(TestType.foo); -+f1(TestType.bar); - f2('foo'); - f2('bar'); \ No newline at end of file + f1(0 /* TestType.foo */); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/constEnumPropertyAccess1.js b/testdata/baselines/reference/submodule/conformance/constEnumPropertyAccess1.js index 217ed71776..fad7d107e1 100644 --- a/testdata/baselines/reference/submodule/conformance/constEnumPropertyAccess1.js +++ b/testdata/baselines/reference/submodule/conformance/constEnumPropertyAccess1.js @@ -46,15 +46,15 @@ var G; var o = { 1: true }; -var a = G.A; -var a1 = G["A"]; -var g = o[G.A]; +var a = 1 /* G.A */; +var a1 = 1 /* G["A"] */; +var g = o[1 /* G.A */]; class C { - [G.A]() { } - get [G.B]() { + [1 /* G.A */]() { } + get [2 /* G.B */]() { return true; } - set [G.B](x) { } + set [2 /* G.B */](x) { } } diff --git a/testdata/baselines/reference/submodule/conformance/constEnumPropertyAccess1.js.diff b/testdata/baselines/reference/submodule/conformance/constEnumPropertyAccess1.js.diff index fd7cbb517f..25575573e0 100644 --- a/testdata/baselines/reference/submodule/conformance/constEnumPropertyAccess1.js.diff +++ b/testdata/baselines/reference/submodule/conformance/constEnumPropertyAccess1.js.diff @@ -14,22 +14,7 @@ var o = { 1: true }; --var a = 1 /* G.A */; --var a1 = 1 /* G["A"] */; --var g = o[1 /* G.A */]; -+var a = G.A; -+var a1 = G["A"]; -+var g = o[G.A]; - class C { -- [1 /* G.A */]() { } -- get [2 /* G.B */]() { -+ [G.A]() { } -+ get [G.B]() { - return true; - } -- set [2 /* G.B */](x) { } -+ set [G.B](x) { } - } +@@= skipped -16, +23 lines =@@ //// [constEnumPropertyAccess1.d.ts] diff --git a/testdata/baselines/reference/submodule/conformance/constEnumPropertyAccess2.js b/testdata/baselines/reference/submodule/conformance/constEnumPropertyAccess2.js index 26a7225d83..da2e36e054 100644 --- a/testdata/baselines/reference/submodule/conformance/constEnumPropertyAccess2.js +++ b/testdata/baselines/reference/submodule/conformance/constEnumPropertyAccess2.js @@ -34,11 +34,11 @@ var G; })(G || (G = {})); // Error from referring constant enum in any other context than a property access var z = G; -var z1 = G[G.A]; +var z1 = G[1 /* G.A */]; var g; g = "string"; function foo(x) { } -G.B = 3; +2 /* G.B */ = 3; //// [constEnumPropertyAccess2.d.ts] diff --git a/testdata/baselines/reference/submodule/conformance/constEnumPropertyAccess2.js.diff b/testdata/baselines/reference/submodule/conformance/constEnumPropertyAccess2.js.diff index 52a3f38a44..7c0ad9378e 100644 --- a/testdata/baselines/reference/submodule/conformance/constEnumPropertyAccess2.js.diff +++ b/testdata/baselines/reference/submodule/conformance/constEnumPropertyAccess2.js.diff @@ -13,13 +13,8 @@ +})(G || (G = {})); // Error from referring constant enum in any other context than a property access var z = G; --var z1 = G[1 /* G.A */]; -+var z1 = G[G.A]; - var g; - g = "string"; - function foo(x) { } --2 /* G.B */ = 3; -+G.B = 3; + var z1 = G[1 /* G.A */]; +@@= skipped -10, +17 lines =@@ //// [constEnumPropertyAccess2.d.ts] diff --git a/testdata/baselines/reference/submodule/conformance/constEnumPropertyAccess3.js b/testdata/baselines/reference/submodule/conformance/constEnumPropertyAccess3.js index 53d8252f94..1f5a16791c 100644 --- a/testdata/baselines/reference/submodule/conformance/constEnumPropertyAccess3.js +++ b/testdata/baselines/reference/submodule/conformance/constEnumPropertyAccess3.js @@ -30,12 +30,12 @@ var E; E[E["D"] = -3] = "D"; E[E["E"] = -9] = "E"; })(E || (E = {})); -E.A.toString(); -E.B.toString(); -E.C.toString(); -E.D.toString(); -E["A"].toString(); -E["B"].toString(); -E["C"].toString(); -E["D"].toString(); -E["E"].toString(); +(-2 /* E.A */).toString(); +(-1 /* E.B */).toString(); +(-3 /* E.C */).toString(); +(-3 /* E.D */).toString(); +(-2 /* E["A"] */).toString(); +(-1 /* E["B"] */).toString(); +(-3 /* E["C"] */).toString(); +(-3 /* E["D"] */).toString(); +(-9 /* E["E"] */).toString(); diff --git a/testdata/baselines/reference/submodule/conformance/constEnumPropertyAccess3.js.diff b/testdata/baselines/reference/submodule/conformance/constEnumPropertyAccess3.js.diff index 12280e01d1..8d6afb6ab4 100644 --- a/testdata/baselines/reference/submodule/conformance/constEnumPropertyAccess3.js.diff +++ b/testdata/baselines/reference/submodule/conformance/constEnumPropertyAccess3.js.diff @@ -4,15 +4,6 @@ //// [constEnumPropertyAccess3.js] --(-2 /* E.A */).toString(); --(-1 /* E.B */).toString(); --(-3 /* E.C */).toString(); --(-3 /* E.D */).toString(); --(-2 /* E["A"] */).toString(); --(-1 /* E["B"] */).toString(); --(-3 /* E["C"] */).toString(); --(-3 /* E["D"] */).toString(); --(-9 /* E["E"] */).toString(); +var E; +(function (E) { + E[E["A"] = -2] = "A"; @@ -21,12 +12,6 @@ + E[E["D"] = -3] = "D"; + E[E["E"] = -9] = "E"; +})(E || (E = {})); -+E.A.toString(); -+E.B.toString(); -+E.C.toString(); -+E.D.toString(); -+E["A"].toString(); -+E["B"].toString(); -+E["C"].toString(); -+E["D"].toString(); -+E["E"].toString(); \ No newline at end of file + (-2 /* E.A */).toString(); + (-1 /* E.B */).toString(); + (-3 /* E.C */).toString(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/destructuringParameterDeclaration3ES5.js b/testdata/baselines/reference/submodule/conformance/destructuringParameterDeclaration3ES5.js index 60e10c410b..8bee268eaa 100644 --- a/testdata/baselines/reference/submodule/conformance/destructuringParameterDeclaration3ES5.js +++ b/testdata/baselines/reference/submodule/conformance/destructuringParameterDeclaration3ES5.js @@ -81,4 +81,4 @@ var E1; })(E1 || (E1 = {})); function foo1(...a) { } foo1(1, 2, 3, E.a); -foo1(1, 2, 3, E1.a, E.b); +foo1(1, 2, 3, 0 /* E1.a */, E.b); diff --git a/testdata/baselines/reference/submodule/conformance/destructuringParameterDeclaration3ES5.js.diff b/testdata/baselines/reference/submodule/conformance/destructuringParameterDeclaration3ES5.js.diff index 88677d7cc6..4aa3b7e90c 100644 --- a/testdata/baselines/reference/submodule/conformance/destructuringParameterDeclaration3ES5.js.diff +++ b/testdata/baselines/reference/submodule/conformance/destructuringParameterDeclaration3ES5.js.diff @@ -20,5 +20,4 @@ +})(E1 || (E1 = {})); function foo1(...a) { } foo1(1, 2, 3, E.a); --foo1(1, 2, 3, 0 /* E1.a */, E.b); -+foo1(1, 2, 3, E1.a, E.b); \ No newline at end of file + foo1(1, 2, 3, 0 /* E1.a */, E.b); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/destructuringParameterDeclaration3ES5iterable.js b/testdata/baselines/reference/submodule/conformance/destructuringParameterDeclaration3ES5iterable.js index 44b0ea415c..383ab74ca0 100644 --- a/testdata/baselines/reference/submodule/conformance/destructuringParameterDeclaration3ES5iterable.js +++ b/testdata/baselines/reference/submodule/conformance/destructuringParameterDeclaration3ES5iterable.js @@ -81,4 +81,4 @@ var E1; })(E1 || (E1 = {})); function foo1(...a) { } foo1(1, 2, 3, E.a); -foo1(1, 2, 3, E1.a, E.b); +foo1(1, 2, 3, 0 /* E1.a */, E.b); diff --git a/testdata/baselines/reference/submodule/conformance/destructuringParameterDeclaration3ES5iterable.js.diff b/testdata/baselines/reference/submodule/conformance/destructuringParameterDeclaration3ES5iterable.js.diff index 30fcc38bda..92c061b150 100644 --- a/testdata/baselines/reference/submodule/conformance/destructuringParameterDeclaration3ES5iterable.js.diff +++ b/testdata/baselines/reference/submodule/conformance/destructuringParameterDeclaration3ES5iterable.js.diff @@ -20,5 +20,4 @@ +})(E1 || (E1 = {})); function foo1(...a) { } foo1(1, 2, 3, E.a); --foo1(1, 2, 3, 0 /* E1.a */, E.b); -+foo1(1, 2, 3, E1.a, E.b); \ No newline at end of file + foo1(1, 2, 3, 0 /* E1.a */, E.b); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/destructuringParameterDeclaration3ES6.js b/testdata/baselines/reference/submodule/conformance/destructuringParameterDeclaration3ES6.js index d4a67fa601..a0e577a23f 100644 --- a/testdata/baselines/reference/submodule/conformance/destructuringParameterDeclaration3ES6.js +++ b/testdata/baselines/reference/submodule/conformance/destructuringParameterDeclaration3ES6.js @@ -81,4 +81,4 @@ var E1; })(E1 || (E1 = {})); function foo1(...a) { } foo1(1, 2, 3, E.a); -foo1(1, 2, 3, E1.a, E.b); +foo1(1, 2, 3, 0 /* E1.a */, E.b); diff --git a/testdata/baselines/reference/submodule/conformance/destructuringParameterDeclaration3ES6.js.diff b/testdata/baselines/reference/submodule/conformance/destructuringParameterDeclaration3ES6.js.diff index 4ea935a987..a60d4a1c6b 100644 --- a/testdata/baselines/reference/submodule/conformance/destructuringParameterDeclaration3ES6.js.diff +++ b/testdata/baselines/reference/submodule/conformance/destructuringParameterDeclaration3ES6.js.diff @@ -20,5 +20,4 @@ +})(E1 || (E1 = {})); function foo1(...a) { } foo1(1, 2, 3, E.a); --foo1(1, 2, 3, 0 /* E1.a */, E.b); -+foo1(1, 2, 3, E1.a, E.b); \ No newline at end of file + foo1(1, 2, 3, 0 /* E1.a */, E.b); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/enumLiteralTypes1.js b/testdata/baselines/reference/submodule/conformance/enumLiteralTypes1.js index 56cfc74045..88dd37d978 100644 --- a/testdata/baselines/reference/submodule/conformance/enumLiteralTypes1.js +++ b/testdata/baselines/reference/submodule/conformance/enumLiteralTypes1.js @@ -160,8 +160,8 @@ function f4(a, b) { b++; } function f5(a, b, c) { - var z1 = g(Choice.Yes); - var z2 = g(Choice.No); + var z1 = g(1 /* Choice.Yes */); + var z2 = g(2 /* Choice.No */); var z3 = g(a); var z4 = g(b); var z5 = g(c); @@ -171,14 +171,14 @@ function assertNever(x) { } function f10(x) { switch (x) { - case Choice.Yes: return "true"; - case Choice.No: return "false"; + case 1 /* Choice.Yes */: return "true"; + case 2 /* Choice.No */: return "false"; } } function f11(x) { switch (x) { - case Choice.Yes: return "true"; - case Choice.No: return "false"; + case 1 /* Choice.Yes */: return "true"; + case 2 /* Choice.No */: return "false"; } return assertNever(x); } @@ -191,7 +191,7 @@ function f12(x) { } } function f13(x) { - if (x === Choice.Yes) { + if (x === 1 /* Choice.Yes */) { x; } else { @@ -200,14 +200,14 @@ function f13(x) { } function f20(x) { switch (x.kind) { - case Choice.Yes: return x.a; - case Choice.No: return x.b; + case 1 /* Choice.Yes */: return x.a; + case 2 /* Choice.No */: return x.b; } } function f21(x) { switch (x.kind) { - case Choice.Yes: return x.a; - case Choice.No: return x.b; + case 1 /* Choice.Yes */: return x.a; + case 2 /* Choice.No */: return x.b; } return assertNever(x); } diff --git a/testdata/baselines/reference/submodule/conformance/enumLiteralTypes1.js.diff b/testdata/baselines/reference/submodule/conformance/enumLiteralTypes1.js.diff index b401f28fc0..43a4083f7b 100644 --- a/testdata/baselines/reference/submodule/conformance/enumLiteralTypes1.js.diff +++ b/testdata/baselines/reference/submodule/conformance/enumLiteralTypes1.js.diff @@ -12,62 +12,4 @@ +})(Choice || (Choice = {})); ; function f1() { - var a; -@@= skipped -38, +44 lines =@@ - b++; - } - function f5(a, b, c) { -- var z1 = g(1 /* Choice.Yes */); -- var z2 = g(2 /* Choice.No */); -+ var z1 = g(Choice.Yes); -+ var z2 = g(Choice.No); - var z3 = g(a); - var z4 = g(b); - var z5 = g(c); -@@= skipped -11, +11 lines =@@ - } - function f10(x) { - switch (x) { -- case 1 /* Choice.Yes */: return "true"; -- case 2 /* Choice.No */: return "false"; -+ case Choice.Yes: return "true"; -+ case Choice.No: return "false"; - } - } - function f11(x) { - switch (x) { -- case 1 /* Choice.Yes */: return "true"; -- case 2 /* Choice.No */: return "false"; -+ case Choice.Yes: return "true"; -+ case Choice.No: return "false"; - } - return assertNever(x); - } -@@= skipped -20, +20 lines =@@ - } - } - function f13(x) { -- if (x === 1 /* Choice.Yes */) { -+ if (x === Choice.Yes) { - x; - } - else { -@@= skipped -9, +9 lines =@@ - } - function f20(x) { - switch (x.kind) { -- case 1 /* Choice.Yes */: return x.a; -- case 2 /* Choice.No */: return x.b; -+ case Choice.Yes: return x.a; -+ case Choice.No: return x.b; - } - } - function f21(x) { - switch (x.kind) { -- case 1 /* Choice.Yes */: return x.a; -- case 2 /* Choice.No */: return x.b; -+ case Choice.Yes: return x.a; -+ case Choice.No: return x.b; - } - return assertNever(x); - } \ No newline at end of file + var a; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/enumLiteralTypes2.js b/testdata/baselines/reference/submodule/conformance/enumLiteralTypes2.js index 5928c9439b..7dfc6397a2 100644 --- a/testdata/baselines/reference/submodule/conformance/enumLiteralTypes2.js +++ b/testdata/baselines/reference/submodule/conformance/enumLiteralTypes2.js @@ -160,8 +160,8 @@ function f4(a, b) { b++; } function f5(a, b, c) { - var z1 = g(Choice.Yes); - var z2 = g(Choice.No); + var z1 = g(1 /* Choice.Yes */); + var z2 = g(2 /* Choice.No */); var z3 = g(a); var z4 = g(b); var z5 = g(c); @@ -171,14 +171,14 @@ function assertNever(x) { } function f10(x) { switch (x) { - case Choice.Yes: return "true"; - case Choice.No: return "false"; + case 1 /* Choice.Yes */: return "true"; + case 2 /* Choice.No */: return "false"; } } function f11(x) { switch (x) { - case Choice.Yes: return "true"; - case Choice.No: return "false"; + case 1 /* Choice.Yes */: return "true"; + case 2 /* Choice.No */: return "false"; } return assertNever(x); } @@ -191,7 +191,7 @@ function f12(x) { } } function f13(x) { - if (x === Choice.Yes) { + if (x === 1 /* Choice.Yes */) { x; } else { @@ -200,14 +200,14 @@ function f13(x) { } function f20(x) { switch (x.kind) { - case Choice.Yes: return x.a; - case Choice.No: return x.b; + case 1 /* Choice.Yes */: return x.a; + case 2 /* Choice.No */: return x.b; } } function f21(x) { switch (x.kind) { - case Choice.Yes: return x.a; - case Choice.No: return x.b; + case 1 /* Choice.Yes */: return x.a; + case 2 /* Choice.No */: return x.b; } return assertNever(x); } diff --git a/testdata/baselines/reference/submodule/conformance/enumLiteralTypes2.js.diff b/testdata/baselines/reference/submodule/conformance/enumLiteralTypes2.js.diff index 90b74ee54a..fae130b0fa 100644 --- a/testdata/baselines/reference/submodule/conformance/enumLiteralTypes2.js.diff +++ b/testdata/baselines/reference/submodule/conformance/enumLiteralTypes2.js.diff @@ -12,62 +12,4 @@ +})(Choice || (Choice = {})); ; function f1() { - var a; -@@= skipped -38, +44 lines =@@ - b++; - } - function f5(a, b, c) { -- var z1 = g(1 /* Choice.Yes */); -- var z2 = g(2 /* Choice.No */); -+ var z1 = g(Choice.Yes); -+ var z2 = g(Choice.No); - var z3 = g(a); - var z4 = g(b); - var z5 = g(c); -@@= skipped -11, +11 lines =@@ - } - function f10(x) { - switch (x) { -- case 1 /* Choice.Yes */: return "true"; -- case 2 /* Choice.No */: return "false"; -+ case Choice.Yes: return "true"; -+ case Choice.No: return "false"; - } - } - function f11(x) { - switch (x) { -- case 1 /* Choice.Yes */: return "true"; -- case 2 /* Choice.No */: return "false"; -+ case Choice.Yes: return "true"; -+ case Choice.No: return "false"; - } - return assertNever(x); - } -@@= skipped -20, +20 lines =@@ - } - } - function f13(x) { -- if (x === 1 /* Choice.Yes */) { -+ if (x === Choice.Yes) { - x; - } - else { -@@= skipped -9, +9 lines =@@ - } - function f20(x) { - switch (x.kind) { -- case 1 /* Choice.Yes */: return x.a; -- case 2 /* Choice.No */: return x.b; -+ case Choice.Yes: return x.a; -+ case Choice.No: return x.b; - } - } - function f21(x) { - switch (x.kind) { -- case 1 /* Choice.Yes */: return x.a; -- case 2 /* Choice.No */: return x.b; -+ case Choice.Yes: return x.a; -+ case Choice.No: return x.b; - } - return assertNever(x); - } \ No newline at end of file + var a; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/enumLiteralTypes3.js b/testdata/baselines/reference/submodule/conformance/enumLiteralTypes3.js index bfaa5d86cb..68da5caf5e 100644 --- a/testdata/baselines/reference/submodule/conformance/enumLiteralTypes3.js +++ b/testdata/baselines/reference/submodule/conformance/enumLiteralTypes3.js @@ -154,32 +154,32 @@ function f4(a, b, c, d) { d = d; } function f5(a, b, c, d) { - a = Choice.Unknown; - a = Choice.Yes; - a = Choice.No; - b = Choice.Unknown; - b = Choice.Yes; - b = Choice.No; - c = Choice.Unknown; - c = Choice.Yes; - c = Choice.No; - d = Choice.Unknown; - d = Choice.Yes; - d = Choice.No; + a = 0 /* Choice.Unknown */; + a = 1 /* Choice.Yes */; + a = 2 /* Choice.No */; + b = 0 /* Choice.Unknown */; + b = 1 /* Choice.Yes */; + b = 2 /* Choice.No */; + c = 0 /* Choice.Unknown */; + c = 1 /* Choice.Yes */; + c = 2 /* Choice.No */; + d = 0 /* Choice.Unknown */; + d = 1 /* Choice.Yes */; + d = 2 /* Choice.No */; } function f6(a, b, c, d) { - a === Choice.Unknown; - a === Choice.Yes; - a === Choice.No; - b === Choice.Unknown; - b === Choice.Yes; - b === Choice.No; - c === Choice.Unknown; - c === Choice.Yes; - c === Choice.No; - d === Choice.Unknown; - d === Choice.Yes; - d === Choice.No; + a === 0 /* Choice.Unknown */; + a === 1 /* Choice.Yes */; + a === 2 /* Choice.No */; + b === 0 /* Choice.Unknown */; + b === 1 /* Choice.Yes */; + b === 2 /* Choice.No */; + c === 0 /* Choice.Unknown */; + c === 1 /* Choice.Yes */; + c === 2 /* Choice.No */; + d === 0 /* Choice.Unknown */; + d === 1 /* Choice.Yes */; + d === 2 /* Choice.No */; } function f7(a, b, c, d) { a === a; @@ -201,33 +201,33 @@ function f7(a, b, c, d) { } function f10(x) { switch (x) { - case Choice.Unknown: return x; - case Choice.Yes: return x; - case Choice.No: return x; + case 0 /* Choice.Unknown */: return x; + case 1 /* Choice.Yes */: return x; + case 2 /* Choice.No */: return x; } return x; } function f11(x) { switch (x) { - case Choice.Unknown: return x; - case Choice.Yes: return x; - case Choice.No: return x; + case 0 /* Choice.Unknown */: return x; + case 1 /* Choice.Yes */: return x; + case 2 /* Choice.No */: return x; } return x; } function f12(x) { switch (x) { - case Choice.Unknown: return x; - case Choice.Yes: return x; - case Choice.No: return x; + case 0 /* Choice.Unknown */: return x; + case 1 /* Choice.Yes */: return x; + case 2 /* Choice.No */: return x; } return x; } function f13(x) { switch (x) { - case Choice.Unknown: return x; - case Choice.Yes: return x; - case Choice.No: return x; + case 0 /* Choice.Unknown */: return x; + case 1 /* Choice.Yes */: return x; + case 2 /* Choice.No */: return x; } return x; } diff --git a/testdata/baselines/reference/submodule/conformance/enumLiteralTypes3.js.diff b/testdata/baselines/reference/submodule/conformance/enumLiteralTypes3.js.diff index 21862de844..53e7408e9c 100644 --- a/testdata/baselines/reference/submodule/conformance/enumLiteralTypes3.js.diff +++ b/testdata/baselines/reference/submodule/conformance/enumLiteralTypes3.js.diff @@ -12,107 +12,4 @@ +})(Choice || (Choice = {})); ; function f1(a, b, c, d) { - a = a; -@@= skipped -26, +32 lines =@@ - d = d; - } - function f5(a, b, c, d) { -- a = 0 /* Choice.Unknown */; -- a = 1 /* Choice.Yes */; -- a = 2 /* Choice.No */; -- b = 0 /* Choice.Unknown */; -- b = 1 /* Choice.Yes */; -- b = 2 /* Choice.No */; -- c = 0 /* Choice.Unknown */; -- c = 1 /* Choice.Yes */; -- c = 2 /* Choice.No */; -- d = 0 /* Choice.Unknown */; -- d = 1 /* Choice.Yes */; -- d = 2 /* Choice.No */; -+ a = Choice.Unknown; -+ a = Choice.Yes; -+ a = Choice.No; -+ b = Choice.Unknown; -+ b = Choice.Yes; -+ b = Choice.No; -+ c = Choice.Unknown; -+ c = Choice.Yes; -+ c = Choice.No; -+ d = Choice.Unknown; -+ d = Choice.Yes; -+ d = Choice.No; - } - function f6(a, b, c, d) { -- a === 0 /* Choice.Unknown */; -- a === 1 /* Choice.Yes */; -- a === 2 /* Choice.No */; -- b === 0 /* Choice.Unknown */; -- b === 1 /* Choice.Yes */; -- b === 2 /* Choice.No */; -- c === 0 /* Choice.Unknown */; -- c === 1 /* Choice.Yes */; -- c === 2 /* Choice.No */; -- d === 0 /* Choice.Unknown */; -- d === 1 /* Choice.Yes */; -- d === 2 /* Choice.No */; -+ a === Choice.Unknown; -+ a === Choice.Yes; -+ a === Choice.No; -+ b === Choice.Unknown; -+ b === Choice.Yes; -+ b === Choice.No; -+ c === Choice.Unknown; -+ c === Choice.Yes; -+ c === Choice.No; -+ d === Choice.Unknown; -+ d === Choice.Yes; -+ d === Choice.No; - } - function f7(a, b, c, d) { - a === a; -@@= skipped -47, +47 lines =@@ - } - function f10(x) { - switch (x) { -- case 0 /* Choice.Unknown */: return x; -- case 1 /* Choice.Yes */: return x; -- case 2 /* Choice.No */: return x; -+ case Choice.Unknown: return x; -+ case Choice.Yes: return x; -+ case Choice.No: return x; - } - return x; - } - function f11(x) { - switch (x) { -- case 0 /* Choice.Unknown */: return x; -- case 1 /* Choice.Yes */: return x; -- case 2 /* Choice.No */: return x; -+ case Choice.Unknown: return x; -+ case Choice.Yes: return x; -+ case Choice.No: return x; - } - return x; - } - function f12(x) { - switch (x) { -- case 0 /* Choice.Unknown */: return x; -- case 1 /* Choice.Yes */: return x; -- case 2 /* Choice.No */: return x; -+ case Choice.Unknown: return x; -+ case Choice.Yes: return x; -+ case Choice.No: return x; - } - return x; - } - function f13(x) { - switch (x) { -- case 0 /* Choice.Unknown */: return x; -- case 1 /* Choice.Yes */: return x; -- case 2 /* Choice.No */: return x; -+ case Choice.Unknown: return x; -+ case Choice.Yes: return x; -+ case Choice.No: return x; - } - return x; - } \ No newline at end of file + a = a; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/enums.js b/testdata/baselines/reference/submodule/conformance/enums.js index 1fcdee3824..f13974690c 100644 --- a/testdata/baselines/reference/submodule/conformance/enums.js +++ b/testdata/baselines/reference/submodule/conformance/enums.js @@ -48,10 +48,10 @@ var SymbolFlags; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); SyntaxKind.ImportClause; -SymbolFlags.Type; +"Type" /* SymbolFlags.Type */; let kind; let flags; //// [c.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const flags = a_1.SymbolFlags.Type; +const flags = "Type" /* SymbolFlags.Type */; diff --git a/testdata/baselines/reference/submodule/conformance/enums.js.diff b/testdata/baselines/reference/submodule/conformance/enums.js.diff index 93bf11cff7..469c756341 100644 --- a/testdata/baselines/reference/submodule/conformance/enums.js.diff +++ b/testdata/baselines/reference/submodule/conformance/enums.js.diff @@ -11,14 +11,4 @@ +})(SymbolFlags || (SymbolFlags = {})); //// [b.js] "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - SyntaxKind.ImportClause; --"Type" /* SymbolFlags.Type */; -+SymbolFlags.Type; - let kind; - let flags; - //// [c.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --const flags = "Type" /* SymbolFlags.Type */; -+const flags = a_1.SymbolFlags.Type; \ No newline at end of file + Object.defineProperty(exports, "__esModule", { value: true }); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/exportNamespace_js.js b/testdata/baselines/reference/submodule/conformance/exportNamespace_js.js index 5508138bfd..969c7d204d 100644 --- a/testdata/baselines/reference/submodule/conformance/exportNamespace_js.js +++ b/testdata/baselines/reference/submodule/conformance/exportNamespace_js.js @@ -25,7 +25,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const b_1 = require("./b"); -b_1.A; +A; //// [a.d.ts] diff --git a/testdata/baselines/reference/submodule/conformance/exportNamespace_js.js.diff b/testdata/baselines/reference/submodule/conformance/exportNamespace_js.js.diff index 2f3c34faac..b46351c302 100644 --- a/testdata/baselines/reference/submodule/conformance/exportNamespace_js.js.diff +++ b/testdata/baselines/reference/submodule/conformance/exportNamespace_js.js.diff @@ -5,9 +5,8 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -var b_1 = require("./b"); --A; +const b_1 = require("./b"); -+b_1.A; + A; //// [a.d.ts] diff --git a/testdata/baselines/reference/submodule/conformance/importElisionConstEnumMerge1.js b/testdata/baselines/reference/submodule/conformance/importElisionConstEnumMerge1.js index 710ea93059..64eed3f34c 100644 --- a/testdata/baselines/reference/submodule/conformance/importElisionConstEnumMerge1.js +++ b/testdata/baselines/reference/submodule/conformance/importElisionConstEnumMerge1.js @@ -33,4 +33,4 @@ exports.Enum = void 0; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const merge_1 = require("./merge"); -merge_1.Enum.One; +1 /* Enum.One */; diff --git a/testdata/baselines/reference/submodule/conformance/importElisionConstEnumMerge1.js.diff b/testdata/baselines/reference/submodule/conformance/importElisionConstEnumMerge1.js.diff index f8e2d1a67e..b3194d01c5 100644 --- a/testdata/baselines/reference/submodule/conformance/importElisionConstEnumMerge1.js.diff +++ b/testdata/baselines/reference/submodule/conformance/importElisionConstEnumMerge1.js.diff @@ -17,6 +17,5 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -var merge_1 = require("./merge"); --1 /* Enum.One */; +const merge_1 = require("./merge"); -+merge_1.Enum.One; \ No newline at end of file + 1 /* Enum.One */; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/instantiationExpressionErrors.js b/testdata/baselines/reference/submodule/conformance/instantiationExpressionErrors.js index 476fdaf58c..45bcef5da3 100644 --- a/testdata/baselines/reference/submodule/conformance/instantiationExpressionErrors.js +++ b/testdata/baselines/reference/submodule/conformance/instantiationExpressionErrors.js @@ -179,7 +179,7 @@ var MyVer; MyVer[MyVer["v2"] = 2] = "v2"; })(MyVer || (MyVer = {})); let ver = 21; -const a = ver < (MyVer.v1 >= MyVer.v2 ? MyVer.v1 : MyVer.v2); +const a = ver < (1 /* MyVer.v1 */ >= 2 /* MyVer.v2 */ ? 1 /* MyVer.v1 */ : 2 /* MyVer.v2 */); //// [instantiationExpressionErrors.d.ts] diff --git a/testdata/baselines/reference/submodule/conformance/instantiationExpressionErrors.js.diff b/testdata/baselines/reference/submodule/conformance/instantiationExpressionErrors.js.diff index 30ad52648a..eebaf6b9f9 100644 --- a/testdata/baselines/reference/submodule/conformance/instantiationExpressionErrors.js.diff +++ b/testdata/baselines/reference/submodule/conformance/instantiationExpressionErrors.js.diff @@ -119,11 +119,8 @@ + MyVer[MyVer["v2"] = 2] = "v2"; +})(MyVer || (MyVer = {})); let ver = 21; --const a = ver < (1 /* MyVer.v1 */ >= 2 /* MyVer.v2 */ ? 1 /* MyVer.v1 */ : 2 /* MyVer.v2 */); -+const a = ver < (MyVer.v1 >= MyVer.v2 ? MyVer.v1 : MyVer.v2); + const a = ver < (1 /* MyVer.v1 */ >= 2 /* MyVer.v2 */ ? 1 /* MyVer.v1 */ : 2 /* MyVer.v2 */); - - //// [instantiationExpressionErrors.d.ts] @@= skipped -54, +51 lines =@@ (): T; g(): U; diff --git a/testdata/baselines/reference/submodule/conformance/jsxCheckJsxNoTypeArgumentsAllowed.js b/testdata/baselines/reference/submodule/conformance/jsxCheckJsxNoTypeArgumentsAllowed.js index 511f66cd13..36e2017dcd 100644 --- a/testdata/baselines/reference/submodule/conformance/jsxCheckJsxNoTypeArgumentsAllowed.js +++ b/testdata/baselines/reference/submodule/conformance/jsxCheckJsxNoTypeArgumentsAllowed.js @@ -23,5 +23,5 @@ let x = a={10} b="hi" />; // error, no type arguments in js Object.defineProperty(exports, "__esModule", { value: true }); const component_1 = require("./component"); const React = require("react"); -let x = (, a={10} b="hi" />; // error, no type arguments in js +let x = (, a={10} b="hi" />; // error, no type arguments in js ); diff --git a/testdata/baselines/reference/submodule/conformance/jsxCheckJsxNoTypeArgumentsAllowed.js.diff b/testdata/baselines/reference/submodule/conformance/jsxCheckJsxNoTypeArgumentsAllowed.js.diff index 4eeb3ac91c..3b0ae50253 100644 --- a/testdata/baselines/reference/submodule/conformance/jsxCheckJsxNoTypeArgumentsAllowed.js.diff +++ b/testdata/baselines/reference/submodule/conformance/jsxCheckJsxNoTypeArgumentsAllowed.js.diff @@ -10,5 +10,5 @@ -; +const component_1 = require("./component"); +const React = require("react"); -+let x = (, a={10} b="hi" />; // error, no type arguments in js ++let x = (, a={10} b="hi" />; // error, no type arguments in js +); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/stringEnumLiteralTypes1.js b/testdata/baselines/reference/submodule/conformance/stringEnumLiteralTypes1.js index 647b24725a..1621f64fc4 100644 --- a/testdata/baselines/reference/submodule/conformance/stringEnumLiteralTypes1.js +++ b/testdata/baselines/reference/submodule/conformance/stringEnumLiteralTypes1.js @@ -133,8 +133,8 @@ function f3(a, b) { var y = !b; } function f5(a, b, c) { - var z1 = g(Choice.Yes); - var z2 = g(Choice.No); + var z1 = g("yes" /* Choice.Yes */); + var z2 = g("no" /* Choice.No */); var z3 = g(a); var z4 = g(b); var z5 = g(c); @@ -144,14 +144,14 @@ function assertNever(x) { } function f10(x) { switch (x) { - case Choice.Yes: return "true"; - case Choice.No: return "false"; + case "yes" /* Choice.Yes */: return "true"; + case "no" /* Choice.No */: return "false"; } } function f11(x) { switch (x) { - case Choice.Yes: return "true"; - case Choice.No: return "false"; + case "yes" /* Choice.Yes */: return "true"; + case "no" /* Choice.No */: return "false"; } return assertNever(x); } @@ -164,7 +164,7 @@ function f12(x) { } } function f13(x) { - if (x === Choice.Yes) { + if (x === "yes" /* Choice.Yes */) { x; } else { @@ -173,14 +173,14 @@ function f13(x) { } function f20(x) { switch (x.kind) { - case Choice.Yes: return x.a; - case Choice.No: return x.b; + case "yes" /* Choice.Yes */: return x.a; + case "no" /* Choice.No */: return x.b; } } function f21(x) { switch (x.kind) { - case Choice.Yes: return x.a; - case Choice.No: return x.b; + case "yes" /* Choice.Yes */: return x.a; + case "no" /* Choice.No */: return x.b; } return assertNever(x); } diff --git a/testdata/baselines/reference/submodule/conformance/stringEnumLiteralTypes1.js.diff b/testdata/baselines/reference/submodule/conformance/stringEnumLiteralTypes1.js.diff index 4e5cd0a6fc..1d3e796d8b 100644 --- a/testdata/baselines/reference/submodule/conformance/stringEnumLiteralTypes1.js.diff +++ b/testdata/baselines/reference/submodule/conformance/stringEnumLiteralTypes1.js.diff @@ -12,62 +12,4 @@ +})(Choice || (Choice = {})); ; function f1() { - var a; -@@= skipped -25, +31 lines =@@ - var y = !b; - } - function f5(a, b, c) { -- var z1 = g("yes" /* Choice.Yes */); -- var z2 = g("no" /* Choice.No */); -+ var z1 = g(Choice.Yes); -+ var z2 = g(Choice.No); - var z3 = g(a); - var z4 = g(b); - var z5 = g(c); -@@= skipped -11, +11 lines =@@ - } - function f10(x) { - switch (x) { -- case "yes" /* Choice.Yes */: return "true"; -- case "no" /* Choice.No */: return "false"; -+ case Choice.Yes: return "true"; -+ case Choice.No: return "false"; - } - } - function f11(x) { - switch (x) { -- case "yes" /* Choice.Yes */: return "true"; -- case "no" /* Choice.No */: return "false"; -+ case Choice.Yes: return "true"; -+ case Choice.No: return "false"; - } - return assertNever(x); - } -@@= skipped -20, +20 lines =@@ - } - } - function f13(x) { -- if (x === "yes" /* Choice.Yes */) { -+ if (x === Choice.Yes) { - x; - } - else { -@@= skipped -9, +9 lines =@@ - } - function f20(x) { - switch (x.kind) { -- case "yes" /* Choice.Yes */: return x.a; -- case "no" /* Choice.No */: return x.b; -+ case Choice.Yes: return x.a; -+ case Choice.No: return x.b; - } - } - function f21(x) { - switch (x.kind) { -- case "yes" /* Choice.Yes */: return x.a; -- case "no" /* Choice.No */: return x.b; -+ case Choice.Yes: return x.a; -+ case Choice.No: return x.b; - } - return assertNever(x); - } \ No newline at end of file + var a; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/stringEnumLiteralTypes2.js b/testdata/baselines/reference/submodule/conformance/stringEnumLiteralTypes2.js index 94f13af7e7..5aecb77818 100644 --- a/testdata/baselines/reference/submodule/conformance/stringEnumLiteralTypes2.js +++ b/testdata/baselines/reference/submodule/conformance/stringEnumLiteralTypes2.js @@ -133,8 +133,8 @@ function f3(a, b) { var y = !b; } function f5(a, b, c) { - var z1 = g(Choice.Yes); - var z2 = g(Choice.No); + var z1 = g("yes" /* Choice.Yes */); + var z2 = g("no" /* Choice.No */); var z3 = g(a); var z4 = g(b); var z5 = g(c); @@ -144,14 +144,14 @@ function assertNever(x) { } function f10(x) { switch (x) { - case Choice.Yes: return "true"; - case Choice.No: return "false"; + case "yes" /* Choice.Yes */: return "true"; + case "no" /* Choice.No */: return "false"; } } function f11(x) { switch (x) { - case Choice.Yes: return "true"; - case Choice.No: return "false"; + case "yes" /* Choice.Yes */: return "true"; + case "no" /* Choice.No */: return "false"; } return assertNever(x); } @@ -164,7 +164,7 @@ function f12(x) { } } function f13(x) { - if (x === Choice.Yes) { + if (x === "yes" /* Choice.Yes */) { x; } else { @@ -173,14 +173,14 @@ function f13(x) { } function f20(x) { switch (x.kind) { - case Choice.Yes: return x.a; - case Choice.No: return x.b; + case "yes" /* Choice.Yes */: return x.a; + case "no" /* Choice.No */: return x.b; } } function f21(x) { switch (x.kind) { - case Choice.Yes: return x.a; - case Choice.No: return x.b; + case "yes" /* Choice.Yes */: return x.a; + case "no" /* Choice.No */: return x.b; } return assertNever(x); } diff --git a/testdata/baselines/reference/submodule/conformance/stringEnumLiteralTypes2.js.diff b/testdata/baselines/reference/submodule/conformance/stringEnumLiteralTypes2.js.diff index b551156a4a..ad39c09fe9 100644 --- a/testdata/baselines/reference/submodule/conformance/stringEnumLiteralTypes2.js.diff +++ b/testdata/baselines/reference/submodule/conformance/stringEnumLiteralTypes2.js.diff @@ -12,62 +12,4 @@ +})(Choice || (Choice = {})); ; function f1() { - var a; -@@= skipped -25, +31 lines =@@ - var y = !b; - } - function f5(a, b, c) { -- var z1 = g("yes" /* Choice.Yes */); -- var z2 = g("no" /* Choice.No */); -+ var z1 = g(Choice.Yes); -+ var z2 = g(Choice.No); - var z3 = g(a); - var z4 = g(b); - var z5 = g(c); -@@= skipped -11, +11 lines =@@ - } - function f10(x) { - switch (x) { -- case "yes" /* Choice.Yes */: return "true"; -- case "no" /* Choice.No */: return "false"; -+ case Choice.Yes: return "true"; -+ case Choice.No: return "false"; - } - } - function f11(x) { - switch (x) { -- case "yes" /* Choice.Yes */: return "true"; -- case "no" /* Choice.No */: return "false"; -+ case Choice.Yes: return "true"; -+ case Choice.No: return "false"; - } - return assertNever(x); - } -@@= skipped -20, +20 lines =@@ - } - } - function f13(x) { -- if (x === "yes" /* Choice.Yes */) { -+ if (x === Choice.Yes) { - x; - } - else { -@@= skipped -9, +9 lines =@@ - } - function f20(x) { - switch (x.kind) { -- case "yes" /* Choice.Yes */: return x.a; -- case "no" /* Choice.No */: return x.b; -+ case Choice.Yes: return x.a; -+ case Choice.No: return x.b; - } - } - function f21(x) { - switch (x.kind) { -- case "yes" /* Choice.Yes */: return x.a; -- case "no" /* Choice.No */: return x.b; -+ case Choice.Yes: return x.a; -+ case Choice.No: return x.b; - } - return assertNever(x); - } \ No newline at end of file + var a; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/stringEnumLiteralTypes3.js b/testdata/baselines/reference/submodule/conformance/stringEnumLiteralTypes3.js index 634b73a797..e62a6ddcf0 100644 --- a/testdata/baselines/reference/submodule/conformance/stringEnumLiteralTypes3.js +++ b/testdata/baselines/reference/submodule/conformance/stringEnumLiteralTypes3.js @@ -154,32 +154,32 @@ function f4(a, b, c, d) { d = d; } function f5(a, b, c, d) { - a = Choice.Unknown; - a = Choice.Yes; - a = Choice.No; - b = Choice.Unknown; - b = Choice.Yes; - b = Choice.No; - c = Choice.Unknown; - c = Choice.Yes; - c = Choice.No; - d = Choice.Unknown; - d = Choice.Yes; - d = Choice.No; + a = "" /* Choice.Unknown */; + a = "yes" /* Choice.Yes */; + a = "no" /* Choice.No */; + b = "" /* Choice.Unknown */; + b = "yes" /* Choice.Yes */; + b = "no" /* Choice.No */; + c = "" /* Choice.Unknown */; + c = "yes" /* Choice.Yes */; + c = "no" /* Choice.No */; + d = "" /* Choice.Unknown */; + d = "yes" /* Choice.Yes */; + d = "no" /* Choice.No */; } function f6(a, b, c, d) { - a === Choice.Unknown; - a === Choice.Yes; - a === Choice.No; - b === Choice.Unknown; - b === Choice.Yes; - b === Choice.No; - c === Choice.Unknown; - c === Choice.Yes; - c === Choice.No; - d === Choice.Unknown; - d === Choice.Yes; - d === Choice.No; + a === "" /* Choice.Unknown */; + a === "yes" /* Choice.Yes */; + a === "no" /* Choice.No */; + b === "" /* Choice.Unknown */; + b === "yes" /* Choice.Yes */; + b === "no" /* Choice.No */; + c === "" /* Choice.Unknown */; + c === "yes" /* Choice.Yes */; + c === "no" /* Choice.No */; + d === "" /* Choice.Unknown */; + d === "yes" /* Choice.Yes */; + d === "no" /* Choice.No */; } function f7(a, b, c, d) { a === a; @@ -201,33 +201,33 @@ function f7(a, b, c, d) { } function f10(x) { switch (x) { - case Choice.Unknown: return x; - case Choice.Yes: return x; - case Choice.No: return x; + case "" /* Choice.Unknown */: return x; + case "yes" /* Choice.Yes */: return x; + case "no" /* Choice.No */: return x; } return x; } function f11(x) { switch (x) { - case Choice.Unknown: return x; - case Choice.Yes: return x; - case Choice.No: return x; + case "" /* Choice.Unknown */: return x; + case "yes" /* Choice.Yes */: return x; + case "no" /* Choice.No */: return x; } return x; } function f12(x) { switch (x) { - case Choice.Unknown: return x; - case Choice.Yes: return x; - case Choice.No: return x; + case "" /* Choice.Unknown */: return x; + case "yes" /* Choice.Yes */: return x; + case "no" /* Choice.No */: return x; } return x; } function f13(x) { switch (x) { - case Choice.Unknown: return x; - case Choice.Yes: return x; - case Choice.No: return x; + case "" /* Choice.Unknown */: return x; + case "yes" /* Choice.Yes */: return x; + case "no" /* Choice.No */: return x; } return x; } diff --git a/testdata/baselines/reference/submodule/conformance/stringEnumLiteralTypes3.js.diff b/testdata/baselines/reference/submodule/conformance/stringEnumLiteralTypes3.js.diff index 57d1348fac..d34940dbba 100644 --- a/testdata/baselines/reference/submodule/conformance/stringEnumLiteralTypes3.js.diff +++ b/testdata/baselines/reference/submodule/conformance/stringEnumLiteralTypes3.js.diff @@ -12,107 +12,4 @@ +})(Choice || (Choice = {})); ; function f1(a, b, c, d) { - a = a; -@@= skipped -26, +32 lines =@@ - d = d; - } - function f5(a, b, c, d) { -- a = "" /* Choice.Unknown */; -- a = "yes" /* Choice.Yes */; -- a = "no" /* Choice.No */; -- b = "" /* Choice.Unknown */; -- b = "yes" /* Choice.Yes */; -- b = "no" /* Choice.No */; -- c = "" /* Choice.Unknown */; -- c = "yes" /* Choice.Yes */; -- c = "no" /* Choice.No */; -- d = "" /* Choice.Unknown */; -- d = "yes" /* Choice.Yes */; -- d = "no" /* Choice.No */; -+ a = Choice.Unknown; -+ a = Choice.Yes; -+ a = Choice.No; -+ b = Choice.Unknown; -+ b = Choice.Yes; -+ b = Choice.No; -+ c = Choice.Unknown; -+ c = Choice.Yes; -+ c = Choice.No; -+ d = Choice.Unknown; -+ d = Choice.Yes; -+ d = Choice.No; - } - function f6(a, b, c, d) { -- a === "" /* Choice.Unknown */; -- a === "yes" /* Choice.Yes */; -- a === "no" /* Choice.No */; -- b === "" /* Choice.Unknown */; -- b === "yes" /* Choice.Yes */; -- b === "no" /* Choice.No */; -- c === "" /* Choice.Unknown */; -- c === "yes" /* Choice.Yes */; -- c === "no" /* Choice.No */; -- d === "" /* Choice.Unknown */; -- d === "yes" /* Choice.Yes */; -- d === "no" /* Choice.No */; -+ a === Choice.Unknown; -+ a === Choice.Yes; -+ a === Choice.No; -+ b === Choice.Unknown; -+ b === Choice.Yes; -+ b === Choice.No; -+ c === Choice.Unknown; -+ c === Choice.Yes; -+ c === Choice.No; -+ d === Choice.Unknown; -+ d === Choice.Yes; -+ d === Choice.No; - } - function f7(a, b, c, d) { - a === a; -@@= skipped -47, +47 lines =@@ - } - function f10(x) { - switch (x) { -- case "" /* Choice.Unknown */: return x; -- case "yes" /* Choice.Yes */: return x; -- case "no" /* Choice.No */: return x; -+ case Choice.Unknown: return x; -+ case Choice.Yes: return x; -+ case Choice.No: return x; - } - return x; - } - function f11(x) { - switch (x) { -- case "" /* Choice.Unknown */: return x; -- case "yes" /* Choice.Yes */: return x; -- case "no" /* Choice.No */: return x; -+ case Choice.Unknown: return x; -+ case Choice.Yes: return x; -+ case Choice.No: return x; - } - return x; - } - function f12(x) { - switch (x) { -- case "" /* Choice.Unknown */: return x; -- case "yes" /* Choice.Yes */: return x; -- case "no" /* Choice.No */: return x; -+ case Choice.Unknown: return x; -+ case Choice.Yes: return x; -+ case Choice.No: return x; - } - return x; - } - function f13(x) { - switch (x) { -- case "" /* Choice.Unknown */: return x; -- case "yes" /* Choice.Yes */: return x; -- case "no" /* Choice.No */: return x; -+ case Choice.Unknown: return x; -+ case Choice.Yes: return x; -+ case Choice.No: return x; - } - return x; - } \ No newline at end of file + a = a; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/templateLiteralTypes4.js b/testdata/baselines/reference/submodule/conformance/templateLiteralTypes4.js index 696a091b13..8bc54292e2 100644 --- a/testdata/baselines/reference/submodule/conformance/templateLiteralTypes4.js +++ b/testdata/baselines/reference/submodule/conformance/templateLiteralTypes4.js @@ -324,9 +324,9 @@ var NumberLiteralEnum; // infer from non-literal enums var NonLiteralEnum; (function (NonLiteralEnum) { - NonLiteralEnum["Zero"] = NumberLiteralEnum.Zero; + NonLiteralEnum["Zero"] = 0 /* NumberLiteralEnum.Zero */; if (typeof NonLiteralEnum.Zero !== "string") NonLiteralEnum[NonLiteralEnum.Zero] = "Zero"; - NonLiteralEnum["One"] = NumberLiteralEnum.One; + NonLiteralEnum["One"] = 1 /* NumberLiteralEnum.One */; if (typeof NonLiteralEnum.One !== "string") NonLiteralEnum[NonLiteralEnum.One] = "One"; })(NonLiteralEnum || (NonLiteralEnum = {})); p.getIndex(0); // ok, 0 is a valid index diff --git a/testdata/baselines/reference/submodule/conformance/templateLiteralTypes4.js.diff b/testdata/baselines/reference/submodule/conformance/templateLiteralTypes4.js.diff index 1194fecafd..12a90fbfad 100644 --- a/testdata/baselines/reference/submodule/conformance/templateLiteralTypes4.js.diff +++ b/testdata/baselines/reference/submodule/conformance/templateLiteralTypes4.js.diff @@ -22,9 +22,9 @@ +// infer from non-literal enums +var NonLiteralEnum; +(function (NonLiteralEnum) { -+ NonLiteralEnum["Zero"] = NumberLiteralEnum.Zero; ++ NonLiteralEnum["Zero"] = 0 /* NumberLiteralEnum.Zero */; + if (typeof NonLiteralEnum.Zero !== "string") NonLiteralEnum[NonLiteralEnum.Zero] = "Zero"; -+ NonLiteralEnum["One"] = NumberLiteralEnum.One; ++ NonLiteralEnum["One"] = 1 /* NumberLiteralEnum.One */; + if (typeof NonLiteralEnum.One !== "string") NonLiteralEnum[NonLiteralEnum.One] = "One"; +})(NonLiteralEnum || (NonLiteralEnum = {})); p.getIndex(0); // ok, 0 is a valid index diff --git a/testdata/baselines/reference/tsc/incremental/const-enums-aliased-in-different-file.js b/testdata/baselines/reference/tsc/incremental/const-enums-aliased-in-different-file.js index 023e11f0cb..b1364e3fac 100644 --- a/testdata/baselines/reference/tsc/incremental/const-enums-aliased-in-different-file.js +++ b/testdata/baselines/reference/tsc/incremental/const-enums-aliased-in-different-file.js @@ -44,7 +44,7 @@ declare const console: { log(msg: any): void; }; //// [/home/src/workspaces/project/a.js] *new* "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -let a = c_1.A.ONE; +let a = 1 /* A.ONE */; //// [/home/src/workspaces/project/a.tsbuildinfo] *new* {"version":"FakeTSVersion","fileNames":["lib.d.ts","./worker.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"8a851657dbab1650611535d934e0e8a0-export const enum AWorker {\n ONE = 1\n}","e1ab01aa60a97dafcae2e9a0fe6467c6-export { AWorker as A } from \"./worker\";","27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE"],"fileIdsList":[[4],[2],[3]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[5,1],[3,2],[4,3]]} @@ -126,7 +126,7 @@ let a = c_1.A.ONE; //// [/home/src/workspaces/project/c.js] *new* "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -let b = b_1.A.ONE; +let b = 1 /* A.ONE */; SemanticDiagnostics:: @@ -147,7 +147,11 @@ export const enum AWorker { tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo ExitStatus:: Success Output:: -//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +let a = 2 /* A.ONE */; + //// [/home/src/workspaces/project/a.tsbuildinfo] *modified* {"version":"FakeTSVersion","fileNames":["lib.d.ts","./worker.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"85732ecf91c49f8d8fff8ae96e3c1c8b-export const enum AWorker {\n ONE = 2\n}","e1ab01aa60a97dafcae2e9a0fe6467c6-export { AWorker as A } from \"./worker\";","27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE"],"fileIdsList":[[4],[2],[3]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[5,1],[3,2],[4,3]]} //// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *modified* @@ -225,7 +229,11 @@ Output:: }, "size": 1310 } -//// [/home/src/workspaces/project/c.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +let b = 2 /* A.ONE */; + SemanticDiagnostics:: *refresh* /home/src/workspaces/project/worker.d.ts @@ -248,7 +256,11 @@ export const enum AWorker { tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo ExitStatus:: Success Output:: -//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +let a = 3 /* A.ONE */; + //// [/home/src/workspaces/project/a.tsbuildinfo] *modified* {"version":"FakeTSVersion","fileNames":["lib.d.ts","./worker.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"c1b69d4c011b97277dab4f0539048ca5-export const enum AWorker {\n ONE = 3\n}","e1ab01aa60a97dafcae2e9a0fe6467c6-export { AWorker as A } from \"./worker\";","27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE"],"fileIdsList":[[4],[2],[3]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[5,1],[3,2],[4,3]]} //// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *modified* @@ -326,7 +338,11 @@ Output:: }, "size": 1310 } -//// [/home/src/workspaces/project/c.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +let b = 3 /* A.ONE */; + SemanticDiagnostics:: *refresh* /home/src/workspaces/project/worker.d.ts diff --git a/testdata/baselines/reference/tsc/incremental/const-enums-aliased.js b/testdata/baselines/reference/tsc/incremental/const-enums-aliased.js index 6360fb2b42..cbdc0364bf 100644 --- a/testdata/baselines/reference/tsc/incremental/const-enums-aliased.js +++ b/testdata/baselines/reference/tsc/incremental/const-enums-aliased.js @@ -47,7 +47,7 @@ declare const console: { log(msg: any): void; }; //// [/home/src/workspaces/project/a.js] *new* "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -let a = c_1.A.ONE; +let a = 1 /* A.ONE */; //// [/home/src/workspaces/project/a.tsbuildinfo] *new* {"version":"FakeTSVersion","fileNames":["lib.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"ea072a4c56b3b914bbdded014050bb9b-export const enum AWorker {\n ONE = 1\n}\nexport { AWorker as A };","27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE"],"fileIdsList":[[3],[2]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]]} @@ -116,7 +116,7 @@ let a = c_1.A.ONE; //// [/home/src/workspaces/project/c.js] *new* "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -let b = b_1.A.ONE; +let b = 1 /* A.ONE */; SemanticDiagnostics:: @@ -137,7 +137,11 @@ export { AWorker as A }; tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo ExitStatus:: Success Output:: -//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +let a = 2 /* A.ONE */; + //// [/home/src/workspaces/project/a.tsbuildinfo] *modified* {"version":"FakeTSVersion","fileNames":["lib.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"ec710e331e7d6432e994b69e21aae83c-export const enum AWorker {\n ONE = 2\n}\nexport { AWorker as A };",{"version":"27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","signature":"f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n","impliedNodeFormat":1},{"version":"f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]]} //// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *modified* @@ -212,7 +216,11 @@ Output:: }, "size": 1451 } -//// [/home/src/workspaces/project/c.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +let b = 2 /* A.ONE */; + SemanticDiagnostics:: *refresh* /home/src/workspaces/project/b.d.ts @@ -234,7 +242,11 @@ export { AWorker as A }; tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo ExitStatus:: Success Output:: -//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +let a = 3 /* A.ONE */; + //// [/home/src/workspaces/project/a.tsbuildinfo] *modified* {"version":"FakeTSVersion","fileNames":["lib.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"a65f34f1792fbedf7b83c3bf4a12fc1d-export const enum AWorker {\n ONE = 3\n}\nexport { AWorker as A };",{"version":"27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","signature":"f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n","impliedNodeFormat":1},"f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE"],"fileIdsList":[[3],[2]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]]} //// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *modified* @@ -304,7 +316,11 @@ Output:: }, "size": 1357 } -//// [/home/src/workspaces/project/c.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +let b = 3 /* A.ONE */; + SemanticDiagnostics:: *refresh* /home/src/workspaces/project/b.d.ts diff --git a/testdata/baselines/reference/tsc/incremental/const-enums.js b/testdata/baselines/reference/tsc/incremental/const-enums.js index e408623f7b..a9eafd6683 100644 --- a/testdata/baselines/reference/tsc/incremental/const-enums.js +++ b/testdata/baselines/reference/tsc/incremental/const-enums.js @@ -46,7 +46,7 @@ declare const console: { log(msg: any): void; }; //// [/home/src/workspaces/project/a.js] *new* "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -let a = c_1.A.ONE; +let a = 1 /* A.ONE */; //// [/home/src/workspaces/project/a.tsbuildinfo] *new* {"version":"FakeTSVersion","fileNames":["lib.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"53c5c35ee54571b647e3f723569d09cf-export const enum A {\n ONE = 1\n}","27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE"],"fileIdsList":[[3],[2]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]]} @@ -115,7 +115,7 @@ let a = c_1.A.ONE; //// [/home/src/workspaces/project/c.js] *new* "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -let b = b_1.A.ONE; +let b = 1 /* A.ONE */; SemanticDiagnostics:: @@ -135,7 +135,11 @@ export const enum A { tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo ExitStatus:: Success Output:: -//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +let a = 2 /* A.ONE */; + //// [/home/src/workspaces/project/a.tsbuildinfo] *modified* {"version":"FakeTSVersion","fileNames":["lib.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"d04ca273da9def3b63557363c6eae3ca-export const enum A {\n ONE = 2\n}",{"version":"27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","signature":"f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n","impliedNodeFormat":1},{"version":"f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE","signature":"abe7d9981d6018efb6b2b794f40a1607-export {};\n","impliedNodeFormat":1}],"fileIdsList":[[3],[2]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]]} //// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *modified* @@ -210,7 +214,11 @@ Output:: }, "size": 1419 } -//// [/home/src/workspaces/project/c.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +let b = 2 /* A.ONE */; + SemanticDiagnostics:: *refresh* /home/src/workspaces/project/b.d.ts @@ -231,7 +239,11 @@ export const enum A { tsgo -i a.ts --tsbuildinfofile a.tsbuildinfo ExitStatus:: Success Output:: -//// [/home/src/workspaces/project/a.js] *rewrite with same content* +//// [/home/src/workspaces/project/a.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +let a = 3 /* A.ONE */; + //// [/home/src/workspaces/project/a.tsbuildinfo] *modified* {"version":"FakeTSVersion","fileNames":["lib.d.ts","./b.d.ts","./c.ts","./a.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"097e7efa854e788c6281c17b46d9460a-export const enum A {\n ONE = 3\n}",{"version":"27be335cb83f09e0543d1a6458f51e79-import {A} from \"./b\"\nlet b = A.ONE\nexport {A}","signature":"f6d90ac6a94594899853de488fc81940-import { A } from \"./b\";\nexport { A };\n","impliedNodeFormat":1},"f69fa3d8747995fb7603cfd9c694aa6b-import {A} from \"./c\"\nlet a = A.ONE"],"fileIdsList":[[3],[2]],"options":{"tsBuildInfoFile":"./a.tsbuildinfo"},"referencedMap":[[4,1],[3,2]]} //// [/home/src/workspaces/project/a.tsbuildinfo.readable.baseline.txt] *modified* @@ -301,7 +313,11 @@ Output:: }, "size": 1325 } -//// [/home/src/workspaces/project/c.js] *rewrite with same content* +//// [/home/src/workspaces/project/c.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +let b = 3 /* A.ONE */; + SemanticDiagnostics:: *refresh* /home/src/workspaces/project/b.d.ts diff --git a/testdata/baselines/reference/tsc/projectReferences/importing-const-enum-from-referenced-project-with-preserveConstEnums-and-verbatimModuleSyntax.js b/testdata/baselines/reference/tsc/projectReferences/importing-const-enum-from-referenced-project-with-preserveConstEnums-and-verbatimModuleSyntax.js index 9d78b51615..719df6b2fd 100644 --- a/testdata/baselines/reference/tsc/projectReferences/importing-const-enum-from-referenced-project-with-preserveConstEnums-and-verbatimModuleSyntax.js +++ b/testdata/baselines/reference/tsc/projectReferences/importing-const-enum-from-referenced-project-with-preserveConstEnums-and-verbatimModuleSyntax.js @@ -73,7 +73,7 @@ declare const console: { log(msg: any): void; }; //// [/home/src/workspaces/solution/project/index.js] *new* import { E } from "../preserve"; import { F } from "../no-preserve"; -E.A; -F.A; +1 /* E.A */; +1 /* F.A */; From 04679266ba0efbd935d1bd0268122cad34d47690 Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Mon, 18 Aug 2025 17:48:23 -0700 Subject: [PATCH 3/6] Use derived isolatedModules flag --- internal/compiler/emitter.go | 4 ++-- internal/transformers/inliners/constenum.go | 2 +- ...iablesUseBeforeDef_verbatimModuleSyntax.js | 4 ++-- ...sUseBeforeDef_verbatimModuleSyntax.js.diff | 19 ------------------- ...erveConstEnums-and-verbatimModuleSyntax.js | 4 ++-- 5 files changed, 7 insertions(+), 26 deletions(-) delete mode 100644 testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.js.diff diff --git a/internal/compiler/emitter.go b/internal/compiler/emitter.go index 23a49b0c6e..2b15feb2ff 100644 --- a/internal/compiler/emitter.go +++ b/internal/compiler/emitter.go @@ -87,7 +87,7 @@ func getScriptTransformers(emitContext *printer.EmitContext, host printer.EmitHo var emitResolver printer.EmitResolver var referenceResolver binder.ReferenceResolver - if importElisionEnabled || options.GetJSXTransformEnabled() || !options.IsolatedModules.IsTrue() { // full emit resolver is needed for import ellision and const enum inlining + if importElisionEnabled || options.GetJSXTransformEnabled() || !options.GetIsolatedModules() { // full emit resolver is needed for import ellision and const enum inlining emitResolver = host.GetEmitResolver() emitResolver.MarkLinkedReferencesRecursively(sourceFile) referenceResolver = emitResolver @@ -131,7 +131,7 @@ func getScriptTransformers(emitContext *printer.EmitContext, host printer.EmitHo tx = append(tx, getModuleTransformer(&opts)) // inlining (formerly done via substitutions) - if !options.IsolatedModules.IsTrue() { + if !options.GetIsolatedModules() { tx = append(tx, inliners.NewConstEnumInliningTransformer(&opts)) } return tx diff --git a/internal/transformers/inliners/constenum.go b/internal/transformers/inliners/constenum.go index dbb2d930d5..9a0a907013 100644 --- a/internal/transformers/inliners/constenum.go +++ b/internal/transformers/inliners/constenum.go @@ -22,7 +22,7 @@ type ConstEnumInliningTransformer struct { func NewConstEnumInliningTransformer(opt *transformers.TransformOptions) *transformers.Transformer { compilerOptions := opt.CompilerOptions emitContext := opt.Context - if compilerOptions.IsolatedModules.IsTrue() { + if compilerOptions.GetIsolatedModules() { debug.Fail("const enums are not inlined under isolated modules") } tx := &ConstEnumInliningTransformer{compilerOptions: compilerOptions, emitResolver: opt.EmitResolver} diff --git a/testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.js b/testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.js index 23edd41bfa..508dc616c1 100644 --- a/testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.js +++ b/testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.js @@ -29,14 +29,14 @@ function foo1() { })(E || (E = {})); } function foo2() { - return 0 /* E.A */; + return E.A; let E; (function (E) { E[E["A"] = 0] = "A"; })(E || (E = {})); } const config = { - a: 2 /* AfterObject.A */, + a: AfterObject.A, }; var AfterObject; (function (AfterObject) { diff --git a/testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.js.diff b/testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.js.diff deleted file mode 100644 index 550611fefb..0000000000 --- a/testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.js.diff +++ /dev/null @@ -1,19 +0,0 @@ ---- old.blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.js -+++ new.blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.js -@@= skipped -28, +28 lines =@@ - })(E || (E = {})); - } - function foo2() { -- return E.A; -+ return 0 /* E.A */; - let E; - (function (E) { - E[E["A"] = 0] = "A"; - })(E || (E = {})); - } - const config = { -- a: AfterObject.A, -+ a: 2 /* AfterObject.A */, - }; - var AfterObject; - (function (AfterObject) { \ No newline at end of file diff --git a/testdata/baselines/reference/tsc/projectReferences/importing-const-enum-from-referenced-project-with-preserveConstEnums-and-verbatimModuleSyntax.js b/testdata/baselines/reference/tsc/projectReferences/importing-const-enum-from-referenced-project-with-preserveConstEnums-and-verbatimModuleSyntax.js index 719df6b2fd..9d78b51615 100644 --- a/testdata/baselines/reference/tsc/projectReferences/importing-const-enum-from-referenced-project-with-preserveConstEnums-and-verbatimModuleSyntax.js +++ b/testdata/baselines/reference/tsc/projectReferences/importing-const-enum-from-referenced-project-with-preserveConstEnums-and-verbatimModuleSyntax.js @@ -73,7 +73,7 @@ declare const console: { log(msg: any): void; }; //// [/home/src/workspaces/solution/project/index.js] *new* import { E } from "../preserve"; import { F } from "../no-preserve"; -1 /* E.A */; -1 /* F.A */; +E.A; +F.A; From a4eb181585b16e3dfa23e96de744589e5da1fc7b Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Mon, 18 Aug 2025 18:06:34 -0700 Subject: [PATCH 4/6] Tons of fourslash changes? --- internal/fourslash/_scripts/failingTests.txt | 258 ------------------ .../gen/aliasMergingWithNamespace_test.go | 2 +- .../ambientShorthandGotoDefinition_test.go | 2 +- ...AvailableAfterEditsAtEndOfFunction_test.go | 2 +- .../tests/gen/augmentedTypesClass1_test.go | 2 +- .../gen/augmentedTypesClass3Fourslash_test.go | 2 +- .../gen/bestCommonTypeObjectLiterals1_test.go | 2 +- .../gen/bestCommonTypeObjectLiterals_test.go | 2 +- .../tests/gen/codeCompletionEscaping_test.go | 2 +- .../tests/gen/commentsEnumsFourslash_test.go | 2 +- .../gen/commentsLinePreservation_test.go | 2 +- .../fourslash/tests/gen/commentsUnion_test.go | 2 +- .../gen/completionAfterQuestionDot_test.go | 2 +- .../completionAutoInsertQuestionDot_test.go | 2 +- .../gen/completionCloneQuestionToken_test.go | 2 +- ...ntryForArgumentConstrainedToString_test.go | 2 +- ...orArrayElementConstrainedToString2_test.go | 2 +- ...ForArrayElementConstrainedToString_test.go | 2 +- ...rs_StaticWhenBaseTypeIsNotResolved_test.go | 2 +- .../completionEntryForUnionProperty2_test.go | 2 +- .../completionEntryForUnionProperty_test.go | 2 +- .../tests/gen/completionExportFrom_test.go | 2 +- ...pletionForComputedStringProperties_test.go | 2 +- .../gen/completionForMetaProperty_test.go | 2 +- .../gen/completionForStringLiteral4_test.go | 2 +- .../completionForStringLiteralExport_test.go | 2 +- .../completionForStringLiteralImport1_test.go | 2 +- .../completionForStringLiteralImport2_test.go | 2 +- ...orStringLiteralNonrelativeImport12_test.go | 2 +- ...orStringLiteralNonrelativeImport14_test.go | 2 +- ...orStringLiteralNonrelativeImport16_test.go | 2 +- ...orStringLiteralNonrelativeImport17_test.go | 2 +- ...orStringLiteralNonrelativeImport18_test.go | 2 +- ...ForStringLiteralNonrelativeImport2_test.go | 2 +- ...ForStringLiteralNonrelativeImport3_test.go | 2 +- ...ForStringLiteralNonrelativeImport4_test.go | 2 +- ...ForStringLiteralNonrelativeImport7_test.go | 2 +- ...ForStringLiteralNonrelativeImport8_test.go | 2 +- ...ForStringLiteralNonrelativeImport9_test.go | 2 +- ...ngLiteralNonrelativeImportTypings1_test.go | 2 +- ...ngLiteralNonrelativeImportTypings2_test.go | 2 +- ...ngLiteralNonrelativeImportTypings3_test.go | 2 +- ...ionForStringLiteralRelativeImport4_test.go | 2 +- ...ionForStringLiteralRelativeImport6_test.go | 2 +- ...ngLiteralRelativeImportAllowJSTrue_test.go | 2 +- ...nForStringLiteralWithDynamicImport_test.go | 2 +- ...completionForStringLiteral_details_test.go | 2 +- ...nForStringLiteral_quotePreference1_test.go | 2 +- ...nForStringLiteral_quotePreference2_test.go | 2 +- ...nForStringLiteral_quotePreference3_test.go | 2 +- ...nForStringLiteral_quotePreference4_test.go | 2 +- ...nForStringLiteral_quotePreference5_test.go | 2 +- ...nForStringLiteral_quotePreference6_test.go | 2 +- ...nForStringLiteral_quotePreference7_test.go | 2 +- ...nForStringLiteral_quotePreference8_test.go | 2 +- ...onForStringLiteral_quotePreference_test.go | 2 +- .../gen/completionForStringLiteral_test.go | 2 +- ...ionImportMetaWithGlobalDeclaration_test.go | 2 +- .../tests/gen/completionImportMeta_test.go | 2 +- ...tionImportModuleSpecifierEndingDts_test.go | 2 +- ...etionImportModuleSpecifierEndingJs_test.go | 2 +- ...tionImportModuleSpecifierEndingJsx_test.go | 2 +- ...etionImportModuleSpecifierEndingTs_test.go | 2 +- ...rtModuleSpecifierEndingTsxPreserve_test.go | 2 +- ...mportModuleSpecifierEndingTsxReact_test.go | 2 +- ...pecifierEndingUnsupportedExtension_test.go | 2 +- ...ionLikeBody_includesPrimitiveTypes_test.go | 2 +- .../tests/gen/completionInJsDoc_test.go | 2 +- .../completionInNamedImportLocation_test.go | 2 +- .../gen/completionInUncheckedJSFile_test.go | 2 +- ...lderLocations_VariableDeclarations_test.go | 2 +- .../gen/completionListForDerivedType1_test.go | 2 +- ...stForTransitivelyExportedMembers04_test.go | 2 +- .../completionListFunctionExpression_test.go | 2 +- ...nArrowFunctionInUnclosedCallSite01_test.go | 2 +- ...InClassExpressionWithTypeParameter_test.go | 2 +- .../completionListInClassStaticBlocks_test.go | 2 +- .../completionListInImportClause01_test.go | 2 +- .../completionListInImportClause05_test.go | 2 +- .../completionListInImportClause06_test.go | 2 +- ...nNamedClassExpressionWithShadowing_test.go | 2 +- ...mpletionListInNamedClassExpression_test.go | 2 +- ...tionListInNamedFunctionExpression1_test.go | 2 +- ...medFunctionExpressionWithShadowing_test.go | 2 +- ...etionListInNamedFunctionExpression_test.go | 2 +- .../tests/gen/completionListInScope_test.go | 2 +- ...pletionListInTemplateLiteralParts1_test.go | 2 +- ...ionListInUnclosedCommaExpression01_test.go | 2 +- ...ionListInUnclosedCommaExpression02_test.go | 2 +- ...completionListInUnclosedFunction08_test.go | 2 +- ...completionListInUnclosedFunction09_test.go | 2 +- ...tionListInUnclosedTaggedTemplate01_test.go | 2 +- ...tionListInUnclosedTaggedTemplate02_test.go | 2 +- ...completionListInUnclosedTemplate01_test.go | 2 +- ...completionListInUnclosedTemplate02_test.go | 2 +- .../completionListInvalidMemberNames2_test.go | 2 +- ...ListInvalidMemberNames_escapeQuote_test.go | 2 +- ...tInvalidMemberNames_startWithSpace_test.go | 2 +- .../completionListInvalidMemberNames_test.go | 2 +- ...MemberNames_withExistingIdentifier_test.go | 2 +- ...ectMembersInTypeLocationWithTypeof_test.go | 2 +- .../gen/completionListOfGenericSymbol_test.go | 2 +- .../tests/gen/completionListOnAliases_test.go | 2 +- ...nListStringParenthesizedExpression_test.go | 2 +- ...pletionListStringParenthesizedType_test.go | 2 +- ...tionListWithoutVariableinitializer_test.go | 2 +- ...teralTypeAsIndexedAccessTypeObject_test.go | 2 +- ...tionNoAutoInsertQuestionDotForThis_test.go | 2 +- ...oInsertQuestionDotForTypeParameter_test.go | 2 +- ...tQuestionDotWithUserPreferencesOff_test.go | 2 +- .../gen/completionOfAwaitPromise1_test.go | 2 +- .../gen/completionOfAwaitPromise2_test.go | 2 +- .../gen/completionOfAwaitPromise3_test.go | 2 +- .../gen/completionOfAwaitPromise5_test.go | 2 +- .../gen/completionOfAwaitPromise6_test.go | 2 +- .../gen/completionOfAwaitPromise7_test.go | 2 +- .../gen/completionOfInterfaceAndVar_test.go | 2 +- .../completionPreferredSuggestions1_test.go | 2 +- ...ithConditionalOperatorMissingColon_test.go | 2 +- .../tests/gen/completionsAfterJSDoc_test.go | 2 +- .../gen/completionsBeforeRestArg1_test.go | 2 +- .../completionsElementAccessNumeric_test.go | 2 +- .../tests/gen/completionsExportImport_test.go | 2 +- ...tionsGenericTypeWithMultipleBases1_test.go | 2 +- ...completionsImportOrExportSpecifier_test.go | 2 +- .../completionsInExport_moduleBlock_test.go | 2 +- .../tests/gen/completionsInExport_test.go | 2 +- .../tests/gen/completionsInRequire_test.go | 2 +- ...TagAttributesEmptyModuleSpecifier1_test.go | 2 +- ...TagAttributesErrorModuleSpecifier1_test.go | 2 +- ...SDocImportTagEmptyModuleSpecifier1_test.go | 2 +- .../gen/completionsJSDocNoCrash1_test.go | 2 +- .../gen/completionsJsdocTypeTagCast_test.go | 2 +- .../gen/completionsJsxAttribute2_test.go | 2 +- ...ompletionsJsxAttributeInitializer2_test.go | 2 +- ...alFromInferenceWithinInferredType3_test.go | 2 +- .../tests/gen/completionsLiterals_test.go | 2 +- .../completionsMergedDeclarations1_test.go | 2 +- .../tests/gen/completionsNewTarget_test.go | 2 +- .../gen/completionsOptionalMethod_test.go | 2 +- .../gen/completionsOverridingMethod10_test.go | 2 +- .../gen/completionsOverridingMethod11_test.go | 2 +- .../gen/completionsOverridingMethod14_test.go | 2 +- .../gen/completionsOverridingMethod17_test.go | 2 +- .../gen/completionsOverridingMethod1_test.go | 2 +- .../gen/completionsOverridingMethod3_test.go | 2 +- .../gen/completionsOverridingMethod4_test.go | 2 +- .../gen/completionsOverridingMethod9_test.go | 2 +- .../completionsOverridingMethodCrash1_test.go | 2 +- .../completionsOverridingProperties1_test.go | 2 +- .../gen/completionsPathsJsonModule_test.go | 2 +- ...completionsPathsRelativeJsonModule_test.go | 2 +- .../gen/completionsPaths_importType_test.go | 2 +- .../tests/gen/completionsPaths_kinds_test.go | 2 +- ...s_pathMapping_nonTrailingWildcard1_test.go | 2 +- ...sPaths_pathMapping_parentDirectory_test.go | 2 +- .../gen/completionsPaths_pathMapping_test.go | 2 +- .../gen/completionsRecommended_union_test.go | 2 +- ...completionsRedeclareModuleAsGlobal_test.go | 2 +- ...letionsStringsWithTriggerCharacter_test.go | 2 +- .../gen/completionsSymbolMembers_test.go | 2 +- .../gen/completionsTriggerCharacter_test.go | 2 +- .../tests/gen/completionsTuple_test.go | 2 +- .../gen/completionsUniqueSymbol1_test.go | 2 +- ...onstEnumQuickInfoAndCompletionList_test.go | 2 +- .../constQuickInfoAndCompletionList_test.go | 2 +- ...llyTypedFunctionExpressionGeneric1_test.go | 2 +- .../gen/doubleUnderscoreCompletions_test.go | 2 +- .../fourslash/tests/gen/editJsdocType_test.go | 2 +- .../tests/gen/exportDefaultClass_test.go | 2 +- .../tests/gen/exportDefaultFunction_test.go | 2 +- .../findAllReferencesDynamicImport1_test.go | 2 +- .../gen/findAllReferencesTripleSlash_test.go | 2 +- ...llReferencesUmdModuleAsGlobalConst_test.go | 2 +- .../gen/findAllRefsCommonJsRequire2_test.go | 2 +- .../gen/findAllRefsCommonJsRequire3_test.go | 2 +- .../gen/findAllRefsCommonJsRequire_test.go | 2 +- .../tests/gen/findAllRefsExportEquals_test.go | 2 +- .../gen/findAllRefsForDefaultExport03_test.go | 2 +- .../gen/findAllRefsModuleDotExports_test.go | 2 +- .../gen/findAllRefsReExport_broken_test.go | 2 +- ...encesBindingPatternInJsdocNoCrash1_test.go | 2 +- ...encesBindingPatternInJsdocNoCrash2_test.go | 2 +- ...nfoOnElementAccessInWriteLocation2_test.go | 2 +- ...nfoOnElementAccessInWriteLocation3_test.go | 2 +- ...nfoOnElementAccessInWriteLocation4_test.go | 2 +- ...nfoOnElementAccessInWriteLocation5_test.go | 2 +- .../tests/gen/quickInfoOnErrorTypes1_test.go | 2 +- ...opertyReturnedFromGenericFunction1_test.go | 2 +- ...opertyReturnedFromGenericFunction2_test.go | 2 +- ...opertyReturnedFromGenericFunction3_test.go | 2 +- ...quickInfoOnGenericWithConstraints1_test.go | 2 +- .../gen/quickInfoOnInternalAliases_test.go | 2 +- .../quickInfoOnMethodOfImportEquals_test.go | 2 +- .../quickInfoOnNarrowedTypeInModule_test.go | 2 +- .../tests/gen/quickInfoOnNarrowedType_test.go | 2 +- .../tests/gen/quickInfoOnNewKeyword01_test.go | 2 +- ...ckInfoOnObjectLiteralWithAccessors_test.go | 2 +- ...kInfoOnObjectLiteralWithOnlyGetter_test.go | 2 +- ...kInfoOnObjectLiteralWithOnlySetter_test.go | 2 +- ...gIndexSignatureOnInterfaceWithBase_test.go | 2 +- ...foOnPropertyAccessInWriteLocation1_test.go | 2 +- ...foOnPropertyAccessInWriteLocation2_test.go | 2 +- ...foOnPropertyAccessInWriteLocation3_test.go | 2 +- ...foOnPropertyAccessInWriteLocation4_test.go | 2 +- ...foOnPropertyAccessInWriteLocation5_test.go | 2 +- .../tests/gen/quickInfoOnThis2_test.go | 2 +- .../tests/gen/quickInfoOnThis3_test.go | 2 +- .../tests/gen/quickInfoOnThis4_test.go | 2 +- .../tests/gen/quickInfoOnThis_test.go | 2 +- .../tests/gen/quickInfoOnUndefined_test.go | 2 +- .../quickInfoOnVarInArrowExpression_test.go | 2 +- ...eIdentifierInTypeReferenceNoCrash1_test.go | 2 +- .../tests/gen/quickInfoPropertyTag_test.go | 2 +- ...gnatureOptionalParameterFromUnion1_test.go | 2 +- ...foSignatureRestParameterFromUnion1_test.go | 2 +- ...foSignatureRestParameterFromUnion2_test.go | 2 +- ...foSignatureRestParameterFromUnion3_test.go | 2 +- ...foSignatureRestParameterFromUnion4_test.go | 2 +- ...quickInfoSpecialPropertyAssignment_test.go | 2 +- ...InfoStaticPrototypePropertyOnClass_test.go | 2 +- .../tests/gen/quickInfoTemplateTag_test.go | 2 +- ...nfoTypeAliasDefinedInDifferentFile_test.go | 2 +- .../tests/gen/quickInfoTypeError_test.go | 2 +- .../gen/quickInfoTypeOfThisInStatics_test.go | 2 +- ...quickInfoTypeOnlyNamespaceAndClass_test.go | 2 +- .../gen/quickInfoUnionOfNamespaces_test.go | 2 +- .../gen/quickInfoUnion_discriminated_test.go | 2 +- .../tests/gen/quickInfoWidenedTypes_test.go | 2 +- .../gen/referencesForExportedValues_test.go | 2 +- .../referencesForStatementKeywords_test.go | 2 +- .../tests/gen/referencesInComment_test.go | 2 +- .../tests/gen/referencesInEmptyFile_test.go | 2 +- ...cesIsAvailableThroughGlobalNoCrash_test.go | 2 +- .../tests/gen/regexDetection_test.go | 2 +- .../gen/reverseMappedTypeQuickInfo_test.go | 2 +- .../gen/selfReferencedExternalModule_test.go | 2 +- ...gnatureHelpInferenceJsDocImportTag_test.go | 2 +- ...CompletionsImportOrExportSpecifier_test.go | 2 +- .../gen/stringCompletionsVsEscaping_test.go | 2 +- ...heticImportFromBabelGeneratedFile1_test.go | 2 +- ...heticImportFromBabelGeneratedFile2_test.go | 2 +- .../tests/gen/thisBindingInLambda_test.go | 2 +- .../thisPredicateFunctionQuickInfo01_test.go | 2 +- .../thisPredicateFunctionQuickInfo02_test.go | 2 +- ...lashRefPathCompletionAbsolutePaths_test.go | 2 +- ...ripleSlashRefPathCompletionContext_test.go | 2 +- ...thCompletionExtensionsAllowJSFalse_test.go | 2 +- ...athCompletionExtensionsAllowJSTrue_test.go | 2 +- ...leSlashRefPathCompletionHiddenFile_test.go | 2 +- ...ipleSlashRefPathCompletionRootdirs_test.go | 2 +- ...eferencesOnRuntimeImportWithPaths1_test.go | 2 +- .../tests/gen/tsxCompletion12_test.go | 2 +- .../tests/gen/tsxCompletion13_test.go | 2 +- .../tests/gen/tsxCompletion14_test.go | 2 +- .../tests/gen/tsxCompletion15_test.go | 2 +- .../fourslash/tests/gen/tsxQuickInfo6_test.go | 2 +- .../fourslash/tests/gen/tsxQuickInfo7_test.go | 2 +- .../gen/typeOperatorNodeBuilding_test.go | 2 +- 259 files changed, 258 insertions(+), 516 deletions(-) diff --git a/internal/fourslash/_scripts/failingTests.txt b/internal/fourslash/_scripts/failingTests.txt index 07bab926d1..1f40f97f43 100644 --- a/internal/fourslash/_scripts/failingTests.txt +++ b/internal/fourslash/_scripts/failingTests.txt @@ -1,187 +1,5 @@ -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 -TestCompletionForStringLiteral_quotePreference1 -TestCompletionForStringLiteral_quotePreference2 -TestCompletionForStringLiteral_quotePreference3 -TestCompletionForStringLiteral_quotePreference4 -TestCompletionForStringLiteral_quotePreference5 -TestCompletionForStringLiteral_quotePreference6 -TestCompletionForStringLiteral_quotePreference7 -TestCompletionForStringLiteral_quotePreference8 -TestCompletionImportMeta -TestCompletionImportMetaWithGlobalDeclaration -TestCompletionImportModuleSpecifierEndingDts -TestCompletionImportModuleSpecifierEndingJs -TestCompletionImportModuleSpecifierEndingJsx -TestCompletionImportModuleSpecifierEndingTs -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 @@ -386,52 +204,6 @@ TestQuickInfoOnArgumentsInsideFunction TestQuickInfoOnCatchVariable TestQuickInfoOnClosingJsx TestQuickInfoOnElementAccessInWriteLocation1 -TestQuickInfoOnElementAccessInWriteLocation2 -TestQuickInfoOnElementAccessInWriteLocation3 -TestQuickInfoOnElementAccessInWriteLocation4 -TestQuickInfoOnElementAccessInWriteLocation5 -TestQuickInfoOnErrorTypes1 -TestQuickInfoOnFunctionPropertyReturnedFromGenericFunction1 -TestQuickInfoOnFunctionPropertyReturnedFromGenericFunction2 -TestQuickInfoOnFunctionPropertyReturnedFromGenericFunction3 -TestQuickInfoOnGenericWithConstraints1 -TestQuickInfoOnInternalAliases -TestQuickInfoOnMethodOfImportEquals -TestQuickInfoOnNarrowedType -TestQuickInfoOnNarrowedTypeInModule -TestQuickInfoOnNewKeyword01 -TestQuickInfoOnObjectLiteralWithAccessors -TestQuickInfoOnObjectLiteralWithOnlyGetter -TestQuickInfoOnObjectLiteralWithOnlySetter -TestQuickInfoOnPropDeclaredUsingIndexSignatureOnInterfaceWithBase -TestQuickInfoOnPropertyAccessInWriteLocation1 -TestQuickInfoOnPropertyAccessInWriteLocation2 -TestQuickInfoOnPropertyAccessInWriteLocation3 -TestQuickInfoOnPropertyAccessInWriteLocation4 -TestQuickInfoOnPropertyAccessInWriteLocation5 -TestQuickInfoOnThis -TestQuickInfoOnThis2 -TestQuickInfoOnThis3 -TestQuickInfoOnThis4 -TestQuickInfoOnUndefined -TestQuickInfoOnVarInArrowExpression -TestQuickInfoPrivateIdentifierInTypeReferenceNoCrash1 -TestQuickInfoPropertyTag -TestQuickInfoSignatureOptionalParameterFromUnion1 -TestQuickInfoSignatureRestParameterFromUnion1 -TestQuickInfoSignatureRestParameterFromUnion2 -TestQuickInfoSignatureRestParameterFromUnion3 -TestQuickInfoSignatureRestParameterFromUnion4 -TestQuickInfoSpecialPropertyAssignment -TestQuickInfoStaticPrototypePropertyOnClass -TestQuickInfoTemplateTag -TestQuickInfoTypeAliasDefinedInDifferentFile -TestQuickInfoTypeError -TestQuickInfoTypeOfThisInStatics -TestQuickInfoTypeOnlyNamespaceAndClass -TestQuickInfoUnionOfNamespaces -TestQuickInfoUnion_discriminated -TestQuickInfoWidenedTypes TestQuickInfo_notInsideComment TestQuickInforForSucessiveInferencesIsNotAny TestQuickinfo01 @@ -439,38 +211,8 @@ TestQuickinfoForNamespaceMergeWithClassConstrainedToSelf TestQuickinfoForUnionProperty TestQuickinfoWrongComment TestRecursiveInternalModuleImport -TestReferencesForExportedValues -TestReferencesForStatementKeywords -TestReferencesInComment -TestReferencesInEmptyFile -TestReferencesIsAvailableThroughGlobalNoCrash -TestRegexDetection -TestReverseMappedTypeQuickInfo -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/tests/gen/aliasMergingWithNamespace_test.go b/internal/fourslash/tests/gen/aliasMergingWithNamespace_test.go index b38840791d..5196e20078 100644 --- a/internal/fourslash/tests/gen/aliasMergingWithNamespace_test.go +++ b/internal/fourslash/tests/gen/aliasMergingWithNamespace_test.go @@ -9,7 +9,7 @@ import ( func TestAliasMergingWithNamespace(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `namespace bar { } import bar = bar/**/;` diff --git a/internal/fourslash/tests/gen/ambientShorthandGotoDefinition_test.go b/internal/fourslash/tests/gen/ambientShorthandGotoDefinition_test.go index 7a10acdd9b..56409953ac 100644 --- a/internal/fourslash/tests/gen/ambientShorthandGotoDefinition_test.go +++ b/internal/fourslash/tests/gen/ambientShorthandGotoDefinition_test.go @@ -9,7 +9,7 @@ import ( func TestAmbientShorthandGotoDefinition(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: declarations.d.ts declare module /*module*/"jquery" diff --git a/internal/fourslash/tests/gen/argumentsAreAvailableAfterEditsAtEndOfFunction_test.go b/internal/fourslash/tests/gen/argumentsAreAvailableAfterEditsAtEndOfFunction_test.go index 175d760193..5caccd4e7c 100644 --- a/internal/fourslash/tests/gen/argumentsAreAvailableAfterEditsAtEndOfFunction_test.go +++ b/internal/fourslash/tests/gen/argumentsAreAvailableAfterEditsAtEndOfFunction_test.go @@ -11,7 +11,7 @@ import ( func TestArgumentsAreAvailableAfterEditsAtEndOfFunction(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module Test1 { class Person { diff --git a/internal/fourslash/tests/gen/augmentedTypesClass1_test.go b/internal/fourslash/tests/gen/augmentedTypesClass1_test.go index 11181c4d14..6ac3a9cf89 100644 --- a/internal/fourslash/tests/gen/augmentedTypesClass1_test.go +++ b/internal/fourslash/tests/gen/augmentedTypesClass1_test.go @@ -11,7 +11,7 @@ import ( func TestAugmentedTypesClass1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class c5b { public foo() { } } module c5b { export var y = 2; } // should be ok diff --git a/internal/fourslash/tests/gen/augmentedTypesClass3Fourslash_test.go b/internal/fourslash/tests/gen/augmentedTypesClass3Fourslash_test.go index b174b8a634..6a5909e70c 100644 --- a/internal/fourslash/tests/gen/augmentedTypesClass3Fourslash_test.go +++ b/internal/fourslash/tests/gen/augmentedTypesClass3Fourslash_test.go @@ -11,7 +11,7 @@ import ( func TestAugmentedTypesClass3Fourslash(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class c/*1*/5b { public foo() { } } namespace c/*2*/5b { export var y = 2; } // should be ok diff --git a/internal/fourslash/tests/gen/bestCommonTypeObjectLiterals1_test.go b/internal/fourslash/tests/gen/bestCommonTypeObjectLiterals1_test.go index 0a2e938eaf..c12fa7bd19 100644 --- a/internal/fourslash/tests/gen/bestCommonTypeObjectLiterals1_test.go +++ b/internal/fourslash/tests/gen/bestCommonTypeObjectLiterals1_test.go @@ -9,7 +9,7 @@ import ( func TestBestCommonTypeObjectLiterals1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var a = { name: 'bob', age: 18 }; var b = { name: 'jim', age: 20 }; diff --git a/internal/fourslash/tests/gen/bestCommonTypeObjectLiterals_test.go b/internal/fourslash/tests/gen/bestCommonTypeObjectLiterals_test.go index 1b31cbf1be..ebfd6f13ff 100644 --- a/internal/fourslash/tests/gen/bestCommonTypeObjectLiterals_test.go +++ b/internal/fourslash/tests/gen/bestCommonTypeObjectLiterals_test.go @@ -9,7 +9,7 @@ import ( func TestBestCommonTypeObjectLiterals(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var a = { name: 'bob', age: 18 }; var b = { name: 'jim', age: 20 }; diff --git a/internal/fourslash/tests/gen/codeCompletionEscaping_test.go b/internal/fourslash/tests/gen/codeCompletionEscaping_test.go index 5af9c9e0f3..fc672b718b 100644 --- a/internal/fourslash/tests/gen/codeCompletionEscaping_test.go +++ b/internal/fourslash/tests/gen/codeCompletionEscaping_test.go @@ -12,7 +12,7 @@ import ( func TestCodeCompletionEscaping(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.js // @allowJs: true diff --git a/internal/fourslash/tests/gen/commentsEnumsFourslash_test.go b/internal/fourslash/tests/gen/commentsEnumsFourslash_test.go index 9e26b5b83a..9bfacc1e56 100644 --- a/internal/fourslash/tests/gen/commentsEnumsFourslash_test.go +++ b/internal/fourslash/tests/gen/commentsEnumsFourslash_test.go @@ -11,7 +11,7 @@ import ( func TestCommentsEnumsFourslash(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** Enum of colors*/ enum /*1*/Colors { diff --git a/internal/fourslash/tests/gen/commentsLinePreservation_test.go b/internal/fourslash/tests/gen/commentsLinePreservation_test.go index ff30730fb5..8cd314bc79 100644 --- a/internal/fourslash/tests/gen/commentsLinePreservation_test.go +++ b/internal/fourslash/tests/gen/commentsLinePreservation_test.go @@ -9,7 +9,7 @@ import ( func TestCommentsLinePreservation(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** This is firstLine * This is second Line diff --git a/internal/fourslash/tests/gen/commentsUnion_test.go b/internal/fourslash/tests/gen/commentsUnion_test.go index 612e345184..cf7951ec82 100644 --- a/internal/fourslash/tests/gen/commentsUnion_test.go +++ b/internal/fourslash/tests/gen/commentsUnion_test.go @@ -9,7 +9,7 @@ import ( func TestCommentsUnion(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var a: Array | Array; a./*1*/length` diff --git a/internal/fourslash/tests/gen/completionAfterQuestionDot_test.go b/internal/fourslash/tests/gen/completionAfterQuestionDot_test.go index ed22ede6ad..829e2937a5 100644 --- a/internal/fourslash/tests/gen/completionAfterQuestionDot_test.go +++ b/internal/fourslash/tests/gen/completionAfterQuestionDot_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionAfterQuestionDot(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true class User { diff --git a/internal/fourslash/tests/gen/completionAutoInsertQuestionDot_test.go b/internal/fourslash/tests/gen/completionAutoInsertQuestionDot_test.go index a318eaffa3..1cdf7b3951 100644 --- a/internal/fourslash/tests/gen/completionAutoInsertQuestionDot_test.go +++ b/internal/fourslash/tests/gen/completionAutoInsertQuestionDot_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionAutoInsertQuestionDot(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface User { diff --git a/internal/fourslash/tests/gen/completionCloneQuestionToken_test.go b/internal/fourslash/tests/gen/completionCloneQuestionToken_test.go index a8146ff609..dd7336a414 100644 --- a/internal/fourslash/tests/gen/completionCloneQuestionToken_test.go +++ b/internal/fourslash/tests/gen/completionCloneQuestionToken_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionCloneQuestionToken(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /file2.ts type TCallback = (options: T) => any; diff --git a/internal/fourslash/tests/gen/completionEntryForArgumentConstrainedToString_test.go b/internal/fourslash/tests/gen/completionEntryForArgumentConstrainedToString_test.go index 59c64874e6..c846508d80 100644 --- a/internal/fourslash/tests/gen/completionEntryForArgumentConstrainedToString_test.go +++ b/internal/fourslash/tests/gen/completionEntryForArgumentConstrainedToString_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionEntryForArgumentConstrainedToString(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function test

(p: P): void; diff --git a/internal/fourslash/tests/gen/completionEntryForArrayElementConstrainedToString2_test.go b/internal/fourslash/tests/gen/completionEntryForArrayElementConstrainedToString2_test.go index 81cb4b2703..a38763f77d 100644 --- a/internal/fourslash/tests/gen/completionEntryForArrayElementConstrainedToString2_test.go +++ b/internal/fourslash/tests/gen/completionEntryForArrayElementConstrainedToString2_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionEntryForArrayElementConstrainedToString2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function test(a: { foo: T[] }): void diff --git a/internal/fourslash/tests/gen/completionEntryForArrayElementConstrainedToString_test.go b/internal/fourslash/tests/gen/completionEntryForArrayElementConstrainedToString_test.go index 9af26b073c..48dc4e5f44 100644 --- a/internal/fourslash/tests/gen/completionEntryForArrayElementConstrainedToString_test.go +++ b/internal/fourslash/tests/gen/completionEntryForArrayElementConstrainedToString_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionEntryForArrayElementConstrainedToString(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function test(a: { foo: T[] }): void diff --git a/internal/fourslash/tests/gen/completionEntryForClassMembers_StaticWhenBaseTypeIsNotResolved_test.go b/internal/fourslash/tests/gen/completionEntryForClassMembers_StaticWhenBaseTypeIsNotResolved_test.go index 3f67b274df..676b002578 100644 --- a/internal/fourslash/tests/gen/completionEntryForClassMembers_StaticWhenBaseTypeIsNotResolved_test.go +++ b/internal/fourslash/tests/gen/completionEntryForClassMembers_StaticWhenBaseTypeIsNotResolved_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionEntryForClassMembers_StaticWhenBaseTypeIsNotResolved(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /node_modules/@types/react/index.d.ts export = React; diff --git a/internal/fourslash/tests/gen/completionEntryForUnionProperty2_test.go b/internal/fourslash/tests/gen/completionEntryForUnionProperty2_test.go index adb552f595..f4975f24da 100644 --- a/internal/fourslash/tests/gen/completionEntryForUnionProperty2_test.go +++ b/internal/fourslash/tests/gen/completionEntryForUnionProperty2_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionEntryForUnionProperty2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface One { commonProperty: string; diff --git a/internal/fourslash/tests/gen/completionEntryForUnionProperty_test.go b/internal/fourslash/tests/gen/completionEntryForUnionProperty_test.go index a6a96c05d9..53750901f4 100644 --- a/internal/fourslash/tests/gen/completionEntryForUnionProperty_test.go +++ b/internal/fourslash/tests/gen/completionEntryForUnionProperty_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionEntryForUnionProperty(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface One { commonProperty: number; diff --git a/internal/fourslash/tests/gen/completionExportFrom_test.go b/internal/fourslash/tests/gen/completionExportFrom_test.go index c19346f4cf..e648a2b101 100644 --- a/internal/fourslash/tests/gen/completionExportFrom_test.go +++ b/internal/fourslash/tests/gen/completionExportFrom_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionExportFrom(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export * /*1*/; export {} /*2*/;` diff --git a/internal/fourslash/tests/gen/completionForComputedStringProperties_test.go b/internal/fourslash/tests/gen/completionForComputedStringProperties_test.go index 42f572e321..ae7be824d2 100644 --- a/internal/fourslash/tests/gen/completionForComputedStringProperties_test.go +++ b/internal/fourslash/tests/gen/completionForComputedStringProperties_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForComputedStringProperties(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const p2 = "p2"; interface A { diff --git a/internal/fourslash/tests/gen/completionForMetaProperty_test.go b/internal/fourslash/tests/gen/completionForMetaProperty_test.go index 857612b30c..b3e7b72d6e 100644 --- a/internal/fourslash/tests/gen/completionForMetaProperty_test.go +++ b/internal/fourslash/tests/gen/completionForMetaProperty_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForMetaProperty(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `import./*1*/; new./*2*/; diff --git a/internal/fourslash/tests/gen/completionForStringLiteral4_test.go b/internal/fourslash/tests/gen/completionForStringLiteral4_test.go index 075993c1af..fa63e76289 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteral4_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteral4_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForStringLiteral4(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: in.js diff --git a/internal/fourslash/tests/gen/completionForStringLiteralExport_test.go b/internal/fourslash/tests/gen/completionForStringLiteralExport_test.go index 6e4b706f39..c1095459ec 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralExport_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralExport_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForStringLiteralExport(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @typeRoots: my_typings // @Filename: test.ts diff --git a/internal/fourslash/tests/gen/completionForStringLiteralImport1_test.go b/internal/fourslash/tests/gen/completionForStringLiteralImport1_test.go index 2a26617b2b..9114e9d083 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralImport1_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralImport1_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForStringLiteralImport1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @typeRoots: my_typings // @Filename: test.ts diff --git a/internal/fourslash/tests/gen/completionForStringLiteralImport2_test.go b/internal/fourslash/tests/gen/completionForStringLiteralImport2_test.go index 6405413f45..50819814e9 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralImport2_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralImport2_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralImport2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @typeRoots: my_typings // @Filename: test.ts diff --git a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport12_test.go b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport12_test.go index 5306b01f1f..d7d84bcb37 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport12_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport12_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralNonrelativeImport12(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tests/test0.ts import * as foo1 from "m/*import_as0*/ diff --git a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport14_test.go b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport14_test.go index 63431a754e..5bb95c0151 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport14_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport14_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForStringLiteralNonrelativeImport14(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tsconfig.json { diff --git a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport16_test.go b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport16_test.go index be55991de2..78560319ae 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport16_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport16_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForStringLiteralNonrelativeImport16(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tsconfig.json { diff --git a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport17_test.go b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport17_test.go index 6654e0fbf7..1efae761d6 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport17_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport17_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralNonrelativeImport17(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tsconfig.json { diff --git a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport18_test.go b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport18_test.go index ed0b8172af..61288e675d 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport18_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport18_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralNonrelativeImport18(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tsconfig.json { diff --git a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport2_test.go b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport2_test.go index 532fa9162f..7997f5cd5a 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport2_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport2_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralNonrelativeImport2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tests/test0.ts import * as foo1 from "fake-module//*import_as0*/ diff --git a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport3_test.go b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport3_test.go index fff8c8351e..0d47ae5adc 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport3_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport3_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralNonrelativeImport3(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: tests/test0.ts diff --git a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport4_test.go b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport4_test.go index e93de4e785..a86bfeed94 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport4_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport4_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralNonrelativeImport4(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: dir1/dir2/dir3/dir4/test0.ts import * as foo1 from "f/*import_as0*/ diff --git a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport7_test.go b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport7_test.go index 59b0088b59..5c6740e18f 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport7_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport7_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralNonrelativeImport7(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @baseUrl: tests/cases/fourslash/modules // @Filename: tests/test0.ts diff --git a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport8_test.go b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport8_test.go index 33b9c43475..f504938418 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport8_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport8_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralNonrelativeImport8(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tsconfig.json { diff --git a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport9_test.go b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport9_test.go index 37ce385670..b065e93089 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport9_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport9_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralNonrelativeImport9(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tsconfig.json { diff --git a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings1_test.go b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings1_test.go index 8fb1a2e5e2..908744482b 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings1_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings1_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralNonrelativeImportTypings1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @typeRoots: my_typings,my_other_typings // @Filename: tests/test0.ts diff --git a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings2_test.go b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings2_test.go index c223cdcb2d..212ba99e46 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings2_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings2_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralNonrelativeImportTypings2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @typeRoots: my_typings,my_other_typings // @types: module-x,module-z diff --git a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings3_test.go b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings3_test.go index dff2951481..aaf5ca5b6e 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings3_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings3_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralNonrelativeImportTypings3(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: subdirectory/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/completionForStringLiteralRelativeImport6_test.go b/internal/fourslash/tests/gen/completionForStringLiteralRelativeImport6_test.go index 48fb46fd22..bd302839bd 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralRelativeImport6_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralRelativeImport6_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralRelativeImport6(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @rootDirs: /repo/src1,/repo/src2/,/repo/generated1,/repo/generated2/ // @Filename: /repo/src1/test1.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/completionForStringLiteralWithDynamicImport_test.go b/internal/fourslash/tests/gen/completionForStringLiteralWithDynamicImport_test.go index 4308ca2f9a..278e3c3f80 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralWithDynamicImport_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralWithDynamicImport_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForStringLiteralWithDynamicImport(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/completionForStringLiteral_details_test.go b/internal/fourslash/tests/gen/completionForStringLiteral_details_test.go index 1a175d7815..9f114d53f5 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteral_details_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteral_details_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForStringLiteral_details(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /other.ts export const x = 0; diff --git a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference1_test.go b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference1_test.go index 2604468676..07f9820f94 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference1_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference1_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForStringLiteral_quotePreference1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum A { A, diff --git a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference2_test.go b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference2_test.go index 6cddb608ce..f381a5f7e4 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference2_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference2_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForStringLiteral_quotePreference2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const a = { '#': 'a' diff --git a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference3_test.go b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference3_test.go index d40b892eb9..9c9c66750a 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference3_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference3_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForStringLiteral_quotePreference3(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const a = { "#": "a" diff --git a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference4_test.go b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference4_test.go index 50cbe55a1d..43cba0c558 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference4_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference4_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForStringLiteral_quotePreference4(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type T = 0 | 1; const t: T = /**/` diff --git a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference5_test.go b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference5_test.go index 27c67d8879..dad0353919 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference5_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference5_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForStringLiteral_quotePreference5(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type T = "0" | "1"; const t: T = /**/` diff --git a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference6_test.go b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference6_test.go index 7eab3cd6ba..a78245ffa8 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference6_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference6_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForStringLiteral_quotePreference6(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type T = "0" | "1"; const t: T = /**/` diff --git a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference7_test.go b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference7_test.go index 6e08831520..65f4d329f8 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference7_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference7_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForStringLiteral_quotePreference7(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: /a.ts export const a = null; diff --git a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference8_test.go b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference8_test.go index 401d960ae5..b1dd8d4943 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference8_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference8_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForStringLiteral_quotePreference8(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: /a.ts export const a = null; diff --git a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference_test.go b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference_test.go index b5bcf86cab..fabc985d64 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForStringLiteral_quotePreference(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum A { A, diff --git a/internal/fourslash/tests/gen/completionForStringLiteral_test.go b/internal/fourslash/tests/gen/completionForStringLiteral_test.go index 68135b8972..662d86cf7d 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteral_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteral_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForStringLiteral(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type Options = "Option 1" | "Option 2" | "Option 3"; var x: Options = "[|/*1*/Option 3|]"; diff --git a/internal/fourslash/tests/gen/completionImportMetaWithGlobalDeclaration_test.go b/internal/fourslash/tests/gen/completionImportMetaWithGlobalDeclaration_test.go index 51c8d55506..40ca90708e 100644 --- a/internal/fourslash/tests/gen/completionImportMetaWithGlobalDeclaration_test.go +++ b/internal/fourslash/tests/gen/completionImportMetaWithGlobalDeclaration_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionImportMetaWithGlobalDeclaration(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts import./*1*/ diff --git a/internal/fourslash/tests/gen/completionImportMeta_test.go b/internal/fourslash/tests/gen/completionImportMeta_test.go index b7bcf9170d..89be29f50f 100644 --- a/internal/fourslash/tests/gen/completionImportMeta_test.go +++ b/internal/fourslash/tests/gen/completionImportMeta_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionImportMeta(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts import./*1*/ diff --git a/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingDts_test.go b/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingDts_test.go index bc6fe71cd7..b5b4adfd84 100644 --- a/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingDts_test.go +++ b/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingDts_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionImportModuleSpecifierEndingDts(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename:test.d.ts export declare class Test {} diff --git a/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingJs_test.go b/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingJs_test.go index a66599c046..7fe92501d5 100644 --- a/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingJs_test.go +++ b/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingJs_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionImportModuleSpecifierEndingJs(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@allowJs: true //@Filename:test.js diff --git a/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingJsx_test.go b/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingJsx_test.go index 8f6326ef60..a902c902c8 100644 --- a/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingJsx_test.go +++ b/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingJsx_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionImportModuleSpecifierEndingJsx(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@allowJs: true //@jsx:preserve diff --git a/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingTs_test.go b/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingTs_test.go index e1b40cbcae..45e1755027 100644 --- a/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingTs_test.go +++ b/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingTs_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionImportModuleSpecifierEndingTs(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename:test.ts export function f(){ diff --git a/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingTsxPreserve_test.go b/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingTsxPreserve_test.go index dbf83d5b2e..fe326b7038 100644 --- a/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingTsxPreserve_test.go +++ b/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingTsxPreserve_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionImportModuleSpecifierEndingTsxPreserve(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@jsx:preserve //@Filename:test.tsx diff --git a/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingTsxReact_test.go b/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingTsxReact_test.go index 1fdc6341e9..f87f3a7241 100644 --- a/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingTsxReact_test.go +++ b/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingTsxReact_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionImportModuleSpecifierEndingTsxReact(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@jsx:react //@Filename:test.tsx diff --git a/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingUnsupportedExtension_test.go b/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingUnsupportedExtension_test.go index 829acfa57b..b4da7f16ae 100644 --- a/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingUnsupportedExtension_test.go +++ b/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingUnsupportedExtension_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionImportModuleSpecifierEndingUnsupportedExtension(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename:index.css body {} diff --git a/internal/fourslash/tests/gen/completionInFunctionLikeBody_includesPrimitiveTypes_test.go b/internal/fourslash/tests/gen/completionInFunctionLikeBody_includesPrimitiveTypes_test.go index 1b22e2deab..deed812e4d 100644 --- a/internal/fourslash/tests/gen/completionInFunctionLikeBody_includesPrimitiveTypes_test.go +++ b/internal/fourslash/tests/gen/completionInFunctionLikeBody_includesPrimitiveTypes_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionInFunctionLikeBody_includesPrimitiveTypes(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { } class Bar { } 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/completionInNamedImportLocation_test.go b/internal/fourslash/tests/gen/completionInNamedImportLocation_test.go index 70e23f84fa..dd636cca8b 100644 --- a/internal/fourslash/tests/gen/completionInNamedImportLocation_test.go +++ b/internal/fourslash/tests/gen/completionInNamedImportLocation_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionInNamedImportLocation(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: file.ts export var x = 10; diff --git a/internal/fourslash/tests/gen/completionInUncheckedJSFile_test.go b/internal/fourslash/tests/gen/completionInUncheckedJSFile_test.go index 2e5181b592..fa15853b57 100644 --- a/internal/fourslash/tests/gen/completionInUncheckedJSFile_test.go +++ b/internal/fourslash/tests/gen/completionInUncheckedJSFile_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionInUncheckedJSFile(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: false diff --git a/internal/fourslash/tests/gen/completionListBuilderLocations_VariableDeclarations_test.go b/internal/fourslash/tests/gen/completionListBuilderLocations_VariableDeclarations_test.go index 5f1b2f3b13..751f782ea8 100644 --- a/internal/fourslash/tests/gen/completionListBuilderLocations_VariableDeclarations_test.go +++ b/internal/fourslash/tests/gen/completionListBuilderLocations_VariableDeclarations_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListBuilderLocations_VariableDeclarations(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = a/*var1*/ var x = (b/*var2*/ diff --git a/internal/fourslash/tests/gen/completionListForDerivedType1_test.go b/internal/fourslash/tests/gen/completionListForDerivedType1_test.go index 3121c2f843..f0d3102487 100644 --- a/internal/fourslash/tests/gen/completionListForDerivedType1_test.go +++ b/internal/fourslash/tests/gen/completionListForDerivedType1_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionListForDerivedType1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IFoo { bar(): IFoo; diff --git a/internal/fourslash/tests/gen/completionListForTransitivelyExportedMembers04_test.go b/internal/fourslash/tests/gen/completionListForTransitivelyExportedMembers04_test.go index 0061cd86a6..5c1dab3bbc 100644 --- a/internal/fourslash/tests/gen/completionListForTransitivelyExportedMembers04_test.go +++ b/internal/fourslash/tests/gen/completionListForTransitivelyExportedMembers04_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListForTransitivelyExportedMembers04(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @ModuleResolution: classic // @Filename: A.ts diff --git a/internal/fourslash/tests/gen/completionListFunctionExpression_test.go b/internal/fourslash/tests/gen/completionListFunctionExpression_test.go index 3c565122dc..42eab47d18 100644 --- a/internal/fourslash/tests/gen/completionListFunctionExpression_test.go +++ b/internal/fourslash/tests/gen/completionListFunctionExpression_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListFunctionExpression(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class DataHandler { dataArray: Uint8Array; diff --git a/internal/fourslash/tests/gen/completionListInArrowFunctionInUnclosedCallSite01_test.go b/internal/fourslash/tests/gen/completionListInArrowFunctionInUnclosedCallSite01_test.go index eeb8aadebc..a44baf4fab 100644 --- a/internal/fourslash/tests/gen/completionListInArrowFunctionInUnclosedCallSite01_test.go +++ b/internal/fourslash/tests/gen/completionListInArrowFunctionInUnclosedCallSite01_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListInArrowFunctionInUnclosedCallSite01(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function foo(...params: any[]): any; function getAllFiles(rootFileNames: string[]) { diff --git a/internal/fourslash/tests/gen/completionListInClassExpressionWithTypeParameter_test.go b/internal/fourslash/tests/gen/completionListInClassExpressionWithTypeParameter_test.go index 619b5dac68..4ba5290dc1 100644 --- a/internal/fourslash/tests/gen/completionListInClassExpressionWithTypeParameter_test.go +++ b/internal/fourslash/tests/gen/completionListInClassExpressionWithTypeParameter_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionListInClassExpressionWithTypeParameter(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = class myClass { getClassName (){ diff --git a/internal/fourslash/tests/gen/completionListInClassStaticBlocks_test.go b/internal/fourslash/tests/gen/completionListInClassStaticBlocks_test.go index 75d647795c..c748898b06 100644 --- a/internal/fourslash/tests/gen/completionListInClassStaticBlocks_test.go +++ b/internal/fourslash/tests/gen/completionListInClassStaticBlocks_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionListInClassStaticBlocks(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @target: esnext class Foo { diff --git a/internal/fourslash/tests/gen/completionListInImportClause01_test.go b/internal/fourslash/tests/gen/completionListInImportClause01_test.go index baf14e33e1..f56e53afe9 100644 --- a/internal/fourslash/tests/gen/completionListInImportClause01_test.go +++ b/internal/fourslash/tests/gen/completionListInImportClause01_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListInImportClause01(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @ModuleResolution: classic // @Filename: m1.ts diff --git a/internal/fourslash/tests/gen/completionListInImportClause05_test.go b/internal/fourslash/tests/gen/completionListInImportClause05_test.go index 554e700ac4..8ceacb9b04 100644 --- a/internal/fourslash/tests/gen/completionListInImportClause05_test.go +++ b/internal/fourslash/tests/gen/completionListInImportClause05_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListInImportClause05(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: app.ts import * as A from "/*1*/"; diff --git a/internal/fourslash/tests/gen/completionListInImportClause06_test.go b/internal/fourslash/tests/gen/completionListInImportClause06_test.go index 90ba66acd1..13f41c7dab 100644 --- a/internal/fourslash/tests/gen/completionListInImportClause06_test.go +++ b/internal/fourslash/tests/gen/completionListInImportClause06_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListInImportClause06(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @typeRoots: T1,T2 // @Filename: app.ts diff --git a/internal/fourslash/tests/gen/completionListInNamedClassExpressionWithShadowing_test.go b/internal/fourslash/tests/gen/completionListInNamedClassExpressionWithShadowing_test.go index 2cea8c1ae6..70a4440a57 100644 --- a/internal/fourslash/tests/gen/completionListInNamedClassExpressionWithShadowing_test.go +++ b/internal/fourslash/tests/gen/completionListInNamedClassExpressionWithShadowing_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionListInNamedClassExpressionWithShadowing(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class myClass { /*0*/ } /*1*/ diff --git a/internal/fourslash/tests/gen/completionListInNamedClassExpression_test.go b/internal/fourslash/tests/gen/completionListInNamedClassExpression_test.go index c8d4be0a1b..dc2381a2ad 100644 --- a/internal/fourslash/tests/gen/completionListInNamedClassExpression_test.go +++ b/internal/fourslash/tests/gen/completionListInNamedClassExpression_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionListInNamedClassExpression(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = class myClass { getClassName (){ diff --git a/internal/fourslash/tests/gen/completionListInNamedFunctionExpression1_test.go b/internal/fourslash/tests/gen/completionListInNamedFunctionExpression1_test.go index 701974de72..69d414ec92 100644 --- a/internal/fourslash/tests/gen/completionListInNamedFunctionExpression1_test.go +++ b/internal/fourslash/tests/gen/completionListInNamedFunctionExpression1_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionListInNamedFunctionExpression1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = function foo() { /*1*/ diff --git a/internal/fourslash/tests/gen/completionListInNamedFunctionExpressionWithShadowing_test.go b/internal/fourslash/tests/gen/completionListInNamedFunctionExpressionWithShadowing_test.go index f0aaba3c92..4039030b84 100644 --- a/internal/fourslash/tests/gen/completionListInNamedFunctionExpressionWithShadowing_test.go +++ b/internal/fourslash/tests/gen/completionListInNamedFunctionExpressionWithShadowing_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionListInNamedFunctionExpressionWithShadowing(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo() {} /*0*/ diff --git a/internal/fourslash/tests/gen/completionListInNamedFunctionExpression_test.go b/internal/fourslash/tests/gen/completionListInNamedFunctionExpression_test.go index 73473b3924..f65297dc34 100644 --- a/internal/fourslash/tests/gen/completionListInNamedFunctionExpression_test.go +++ b/internal/fourslash/tests/gen/completionListInNamedFunctionExpression_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListInNamedFunctionExpression(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(a: number): string { /*insideFunctionDeclaration*/ diff --git a/internal/fourslash/tests/gen/completionListInScope_test.go b/internal/fourslash/tests/gen/completionListInScope_test.go index c52b01c29e..dc12fdae58 100644 --- a/internal/fourslash/tests/gen/completionListInScope_test.go +++ b/internal/fourslash/tests/gen/completionListInScope_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListInScope(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module TestModule { var localVariable = ""; diff --git a/internal/fourslash/tests/gen/completionListInTemplateLiteralParts1_test.go b/internal/fourslash/tests/gen/completionListInTemplateLiteralParts1_test.go index 2485fe2d8a..1197c09688 100644 --- a/internal/fourslash/tests/gen/completionListInTemplateLiteralParts1_test.go +++ b/internal/fourslash/tests/gen/completionListInTemplateLiteralParts1_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListInTemplateLiteralParts1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*0*/` + "`" + ` $ { ${/*1*/ 10/*2*/ + 1.1/*3*/ /*4*/} 12312` + "`" + `/*5*/ diff --git a/internal/fourslash/tests/gen/completionListInUnclosedCommaExpression01_test.go b/internal/fourslash/tests/gen/completionListInUnclosedCommaExpression01_test.go index 66c9e81b95..ca9d80adc3 100644 --- a/internal/fourslash/tests/gen/completionListInUnclosedCommaExpression01_test.go +++ b/internal/fourslash/tests/gen/completionListInUnclosedCommaExpression01_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListInUnclosedCommaExpression01(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// should NOT see a and b foo((a, b) => a,/*1*/` diff --git a/internal/fourslash/tests/gen/completionListInUnclosedCommaExpression02_test.go b/internal/fourslash/tests/gen/completionListInUnclosedCommaExpression02_test.go index fbcba2df24..cf18d935f0 100644 --- a/internal/fourslash/tests/gen/completionListInUnclosedCommaExpression02_test.go +++ b/internal/fourslash/tests/gen/completionListInUnclosedCommaExpression02_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListInUnclosedCommaExpression02(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// should NOT see a and b foo((a, b) => (a,/*1*/` diff --git a/internal/fourslash/tests/gen/completionListInUnclosedFunction08_test.go b/internal/fourslash/tests/gen/completionListInUnclosedFunction08_test.go index c90a707f25..d957f3f625 100644 --- a/internal/fourslash/tests/gen/completionListInUnclosedFunction08_test.go +++ b/internal/fourslash/tests/gen/completionListInUnclosedFunction08_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListInUnclosedFunction08(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(x: string, y: number, z: boolean) { function bar(a: number, b: string = "hello", c: typeof x = "hello") { diff --git a/internal/fourslash/tests/gen/completionListInUnclosedFunction09_test.go b/internal/fourslash/tests/gen/completionListInUnclosedFunction09_test.go index 04908afb6e..06d9dcdd60 100644 --- a/internal/fourslash/tests/gen/completionListInUnclosedFunction09_test.go +++ b/internal/fourslash/tests/gen/completionListInUnclosedFunction09_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListInUnclosedFunction09(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(x: string, y: number, z: boolean) { function bar(a: number, b: string = "hello", c: typeof x = "hello") { diff --git a/internal/fourslash/tests/gen/completionListInUnclosedTaggedTemplate01_test.go b/internal/fourslash/tests/gen/completionListInUnclosedTaggedTemplate01_test.go index 276d4df5dc..62cc4cdf06 100644 --- a/internal/fourslash/tests/gen/completionListInUnclosedTaggedTemplate01_test.go +++ b/internal/fourslash/tests/gen/completionListInUnclosedTaggedTemplate01_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListInUnclosedTaggedTemplate01(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x; var y = (p) => x ` + "`" + `abc ${ /*1*/` diff --git a/internal/fourslash/tests/gen/completionListInUnclosedTaggedTemplate02_test.go b/internal/fourslash/tests/gen/completionListInUnclosedTaggedTemplate02_test.go index f2301e6af8..87603d5aac 100644 --- a/internal/fourslash/tests/gen/completionListInUnclosedTaggedTemplate02_test.go +++ b/internal/fourslash/tests/gen/completionListInUnclosedTaggedTemplate02_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListInUnclosedTaggedTemplate02(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x; var y = (p) => x ` + "`" + `abc ${ 123 } ${ /*1*/` diff --git a/internal/fourslash/tests/gen/completionListInUnclosedTemplate01_test.go b/internal/fourslash/tests/gen/completionListInUnclosedTemplate01_test.go index dd0b8e9cd9..b24e0453a2 100644 --- a/internal/fourslash/tests/gen/completionListInUnclosedTemplate01_test.go +++ b/internal/fourslash/tests/gen/completionListInUnclosedTemplate01_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListInUnclosedTemplate01(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x; var y = (p) => ` + "`" + `abc ${ /*1*/` diff --git a/internal/fourslash/tests/gen/completionListInUnclosedTemplate02_test.go b/internal/fourslash/tests/gen/completionListInUnclosedTemplate02_test.go index e5126e31e2..6e8c260287 100644 --- a/internal/fourslash/tests/gen/completionListInUnclosedTemplate02_test.go +++ b/internal/fourslash/tests/gen/completionListInUnclosedTemplate02_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListInUnclosedTemplate02(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x; var y = (p) => ` + "`" + `abc ${ 123 } ${ /*1*/` diff --git a/internal/fourslash/tests/gen/completionListInvalidMemberNames2_test.go b/internal/fourslash/tests/gen/completionListInvalidMemberNames2_test.go index 1ed896368a..191a5f879a 100644 --- a/internal/fourslash/tests/gen/completionListInvalidMemberNames2_test.go +++ b/internal/fourslash/tests/gen/completionListInvalidMemberNames2_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListInvalidMemberNames2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare var Symbol: SymbolConstructor; interface SymbolConstructor { diff --git a/internal/fourslash/tests/gen/completionListInvalidMemberNames_escapeQuote_test.go b/internal/fourslash/tests/gen/completionListInvalidMemberNames_escapeQuote_test.go index b9708d5679..13c582caec 100644 --- a/internal/fourslash/tests/gen/completionListInvalidMemberNames_escapeQuote_test.go +++ b/internal/fourslash/tests/gen/completionListInvalidMemberNames_escapeQuote_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionListInvalidMemberNames_escapeQuote(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const x: { "\"'": 0 }; x[|./**/|];` diff --git a/internal/fourslash/tests/gen/completionListInvalidMemberNames_startWithSpace_test.go b/internal/fourslash/tests/gen/completionListInvalidMemberNames_startWithSpace_test.go index eab3116dfb..42e2eca043 100644 --- a/internal/fourslash/tests/gen/completionListInvalidMemberNames_startWithSpace_test.go +++ b/internal/fourslash/tests/gen/completionListInvalidMemberNames_startWithSpace_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionListInvalidMemberNames_startWithSpace(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const x: { " foo": 0, "foo ": 1 }; x[|./**/|];` diff --git a/internal/fourslash/tests/gen/completionListInvalidMemberNames_test.go b/internal/fourslash/tests/gen/completionListInvalidMemberNames_test.go index 4c46aa45a3..8615992c5b 100644 --- a/internal/fourslash/tests/gen/completionListInvalidMemberNames_test.go +++ b/internal/fourslash/tests/gen/completionListInvalidMemberNames_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionListInvalidMemberNames(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = { "foo ": "space in the name", diff --git a/internal/fourslash/tests/gen/completionListInvalidMemberNames_withExistingIdentifier_test.go b/internal/fourslash/tests/gen/completionListInvalidMemberNames_withExistingIdentifier_test.go index be73e2cb32..acd98b9f72 100644 --- a/internal/fourslash/tests/gen/completionListInvalidMemberNames_withExistingIdentifier_test.go +++ b/internal/fourslash/tests/gen/completionListInvalidMemberNames_withExistingIdentifier_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionListInvalidMemberNames_withExistingIdentifier(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const x: { "foo ": "space in the name", }; x[|.fo/*0*/|]; diff --git a/internal/fourslash/tests/gen/completionListObjectMembersInTypeLocationWithTypeof_test.go b/internal/fourslash/tests/gen/completionListObjectMembersInTypeLocationWithTypeof_test.go index 18576a0bff..7c1baea148 100644 --- a/internal/fourslash/tests/gen/completionListObjectMembersInTypeLocationWithTypeof_test.go +++ b/internal/fourslash/tests/gen/completionListObjectMembersInTypeLocationWithTypeof_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionListObjectMembersInTypeLocationWithTypeof(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true const languageService = { getCompletions() {} } diff --git a/internal/fourslash/tests/gen/completionListOfGenericSymbol_test.go b/internal/fourslash/tests/gen/completionListOfGenericSymbol_test.go index a8ac7e8143..444d2214e1 100644 --- a/internal/fourslash/tests/gen/completionListOfGenericSymbol_test.go +++ b/internal/fourslash/tests/gen/completionListOfGenericSymbol_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionListOfGenericSymbol(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var a = [1,2,3]; a./**/` diff --git a/internal/fourslash/tests/gen/completionListOnAliases_test.go b/internal/fourslash/tests/gen/completionListOnAliases_test.go index dfe3be4531..6d80024506 100644 --- a/internal/fourslash/tests/gen/completionListOnAliases_test.go +++ b/internal/fourslash/tests/gen/completionListOnAliases_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionListOnAliases(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module M { export var value; diff --git a/internal/fourslash/tests/gen/completionListStringParenthesizedExpression_test.go b/internal/fourslash/tests/gen/completionListStringParenthesizedExpression_test.go index 6139fb09d6..42d71b009b 100644 --- a/internal/fourslash/tests/gen/completionListStringParenthesizedExpression_test.go +++ b/internal/fourslash/tests/gen/completionListStringParenthesizedExpression_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionListStringParenthesizedExpression(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const foo = { a: 1, diff --git a/internal/fourslash/tests/gen/completionListStringParenthesizedType_test.go b/internal/fourslash/tests/gen/completionListStringParenthesizedType_test.go index b176ec5cad..edc59246d2 100644 --- a/internal/fourslash/tests/gen/completionListStringParenthesizedType_test.go +++ b/internal/fourslash/tests/gen/completionListStringParenthesizedType_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionListStringParenthesizedType(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type T1 = "a" | "b" | "c"; type T2 = {}; diff --git a/internal/fourslash/tests/gen/completionListWithoutVariableinitializer_test.go b/internal/fourslash/tests/gen/completionListWithoutVariableinitializer_test.go index 777d57c5dc..20454d4f1b 100644 --- a/internal/fourslash/tests/gen/completionListWithoutVariableinitializer_test.go +++ b/internal/fourslash/tests/gen/completionListWithoutVariableinitializer_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListWithoutVariableinitializer(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const a = a/*1*/; const b = a && b/*2*/; diff --git a/internal/fourslash/tests/gen/completionListsStringLiteralTypeAsIndexedAccessTypeObject_test.go b/internal/fourslash/tests/gen/completionListsStringLiteralTypeAsIndexedAccessTypeObject_test.go index 747e2fa254..dbc8799d40 100644 --- a/internal/fourslash/tests/gen/completionListsStringLiteralTypeAsIndexedAccessTypeObject_test.go +++ b/internal/fourslash/tests/gen/completionListsStringLiteralTypeAsIndexedAccessTypeObject_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionListsStringLiteralTypeAsIndexedAccessTypeObject(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let firstCase: "a/*case_1*/"["foo"] let secondCase: "b/*case_2*/"["bar"] diff --git a/internal/fourslash/tests/gen/completionNoAutoInsertQuestionDotForThis_test.go b/internal/fourslash/tests/gen/completionNoAutoInsertQuestionDotForThis_test.go index 6b9a72d98f..60bbb19607 100644 --- a/internal/fourslash/tests/gen/completionNoAutoInsertQuestionDotForThis_test.go +++ b/internal/fourslash/tests/gen/completionNoAutoInsertQuestionDotForThis_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionNoAutoInsertQuestionDotForThis(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true class Address { diff --git a/internal/fourslash/tests/gen/completionNoAutoInsertQuestionDotForTypeParameter_test.go b/internal/fourslash/tests/gen/completionNoAutoInsertQuestionDotForTypeParameter_test.go index b1135437c6..4e1ef0b09a 100644 --- a/internal/fourslash/tests/gen/completionNoAutoInsertQuestionDotForTypeParameter_test.go +++ b/internal/fourslash/tests/gen/completionNoAutoInsertQuestionDotForTypeParameter_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionNoAutoInsertQuestionDotForTypeParameter(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface Address { diff --git a/internal/fourslash/tests/gen/completionNoAutoInsertQuestionDotWithUserPreferencesOff_test.go b/internal/fourslash/tests/gen/completionNoAutoInsertQuestionDotWithUserPreferencesOff_test.go index bb9c620fe9..12df7223ba 100644 --- a/internal/fourslash/tests/gen/completionNoAutoInsertQuestionDotWithUserPreferencesOff_test.go +++ b/internal/fourslash/tests/gen/completionNoAutoInsertQuestionDotWithUserPreferencesOff_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionNoAutoInsertQuestionDotWithUserPreferencesOff(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface User { diff --git a/internal/fourslash/tests/gen/completionOfAwaitPromise1_test.go b/internal/fourslash/tests/gen/completionOfAwaitPromise1_test.go index d361a19031..894cbc3434 100644 --- a/internal/fourslash/tests/gen/completionOfAwaitPromise1_test.go +++ b/internal/fourslash/tests/gen/completionOfAwaitPromise1_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionOfAwaitPromise1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `async function foo(x: Promise) { [|x./**/|] diff --git a/internal/fourslash/tests/gen/completionOfAwaitPromise2_test.go b/internal/fourslash/tests/gen/completionOfAwaitPromise2_test.go index 07018c544f..d9966d1d85 100644 --- a/internal/fourslash/tests/gen/completionOfAwaitPromise2_test.go +++ b/internal/fourslash/tests/gen/completionOfAwaitPromise2_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionOfAwaitPromise2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { foo: string } async function foo(x: Promise) { diff --git a/internal/fourslash/tests/gen/completionOfAwaitPromise3_test.go b/internal/fourslash/tests/gen/completionOfAwaitPromise3_test.go index 4b5bac1030..ac9cb6ace3 100644 --- a/internal/fourslash/tests/gen/completionOfAwaitPromise3_test.go +++ b/internal/fourslash/tests/gen/completionOfAwaitPromise3_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionOfAwaitPromise3(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { ["foo-foo"]: string } async function foo(x: Promise) { diff --git a/internal/fourslash/tests/gen/completionOfAwaitPromise5_test.go b/internal/fourslash/tests/gen/completionOfAwaitPromise5_test.go index 6203ed5289..67cc790e4d 100644 --- a/internal/fourslash/tests/gen/completionOfAwaitPromise5_test.go +++ b/internal/fourslash/tests/gen/completionOfAwaitPromise5_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionOfAwaitPromise5(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { foo: string } async function foo(x: (a: number) => Promise) { diff --git a/internal/fourslash/tests/gen/completionOfAwaitPromise6_test.go b/internal/fourslash/tests/gen/completionOfAwaitPromise6_test.go index b645503f24..8239734714 100644 --- a/internal/fourslash/tests/gen/completionOfAwaitPromise6_test.go +++ b/internal/fourslash/tests/gen/completionOfAwaitPromise6_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionOfAwaitPromise6(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `async function foo(x: Promise) { [|x./**/|] diff --git a/internal/fourslash/tests/gen/completionOfAwaitPromise7_test.go b/internal/fourslash/tests/gen/completionOfAwaitPromise7_test.go index e6908a7d9f..6434fb0a6b 100644 --- a/internal/fourslash/tests/gen/completionOfAwaitPromise7_test.go +++ b/internal/fourslash/tests/gen/completionOfAwaitPromise7_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionOfAwaitPromise7(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `async function foo(x: Promise) { console.log diff --git a/internal/fourslash/tests/gen/completionOfInterfaceAndVar_test.go b/internal/fourslash/tests/gen/completionOfInterfaceAndVar_test.go index 09d9c3bd1d..a77c31cfb9 100644 --- a/internal/fourslash/tests/gen/completionOfInterfaceAndVar_test.go +++ b/internal/fourslash/tests/gen/completionOfInterfaceAndVar_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionOfInterfaceAndVar(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface AnalyserNode { } diff --git a/internal/fourslash/tests/gen/completionPreferredSuggestions1_test.go b/internal/fourslash/tests/gen/completionPreferredSuggestions1_test.go index 66d7bc9cfd..e5840c1312 100644 --- a/internal/fourslash/tests/gen/completionPreferredSuggestions1_test.go +++ b/internal/fourslash/tests/gen/completionPreferredSuggestions1_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionPreferredSuggestions1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare let v1: string & {} | "a" | "b" | "c"; v1 = "/*1*/"; diff --git a/internal/fourslash/tests/gen/completionWithConditionalOperatorMissingColon_test.go b/internal/fourslash/tests/gen/completionWithConditionalOperatorMissingColon_test.go index 7412bc8621..4cbd459ecb 100644 --- a/internal/fourslash/tests/gen/completionWithConditionalOperatorMissingColon_test.go +++ b/internal/fourslash/tests/gen/completionWithConditionalOperatorMissingColon_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionWithConditionalOperatorMissingColon(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `1 ? fun/*1*/ function func () {}` diff --git a/internal/fourslash/tests/gen/completionsAfterJSDoc_test.go b/internal/fourslash/tests/gen/completionsAfterJSDoc_test.go index 0465440b2a..ea5592de86 100644 --- a/internal/fourslash/tests/gen/completionsAfterJSDoc_test.go +++ b/internal/fourslash/tests/gen/completionsAfterJSDoc_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsAfterJSDoc(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export interface Foo { /** JSDoc */ diff --git a/internal/fourslash/tests/gen/completionsBeforeRestArg1_test.go b/internal/fourslash/tests/gen/completionsBeforeRestArg1_test.go index 002f8cf2c8..1adc6e63e8 100644 --- a/internal/fourslash/tests/gen/completionsBeforeRestArg1_test.go +++ b/internal/fourslash/tests/gen/completionsBeforeRestArg1_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionsBeforeRestArg1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @target: esnext // @lib: esnext diff --git a/internal/fourslash/tests/gen/completionsElementAccessNumeric_test.go b/internal/fourslash/tests/gen/completionsElementAccessNumeric_test.go index d62beaee30..67841981c8 100644 --- a/internal/fourslash/tests/gen/completionsElementAccessNumeric_test.go +++ b/internal/fourslash/tests/gen/completionsElementAccessNumeric_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsElementAccessNumeric(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @target: esnext type Tup = [ diff --git a/internal/fourslash/tests/gen/completionsExportImport_test.go b/internal/fourslash/tests/gen/completionsExportImport_test.go index 72168e6fe7..fe9296a4cd 100644 --- a/internal/fourslash/tests/gen/completionsExportImport_test.go +++ b/internal/fourslash/tests/gen/completionsExportImport_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsExportImport(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare global { namespace N { diff --git a/internal/fourslash/tests/gen/completionsGenericTypeWithMultipleBases1_test.go b/internal/fourslash/tests/gen/completionsGenericTypeWithMultipleBases1_test.go index 26ea57ad8d..51d6ed56ad 100644 --- a/internal/fourslash/tests/gen/completionsGenericTypeWithMultipleBases1_test.go +++ b/internal/fourslash/tests/gen/completionsGenericTypeWithMultipleBases1_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsGenericTypeWithMultipleBases1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export interface iBaseScope { watch: () => void; diff --git a/internal/fourslash/tests/gen/completionsImportOrExportSpecifier_test.go b/internal/fourslash/tests/gen/completionsImportOrExportSpecifier_test.go index 99b619bc84..4154f745d6 100644 --- a/internal/fourslash/tests/gen/completionsImportOrExportSpecifier_test.go +++ b/internal/fourslash/tests/gen/completionsImportOrExportSpecifier_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsImportOrExportSpecifier(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: exports.ts export let foo = 1; diff --git a/internal/fourslash/tests/gen/completionsInExport_moduleBlock_test.go b/internal/fourslash/tests/gen/completionsInExport_moduleBlock_test.go index 435602eed9..3a5ecab875 100644 --- a/internal/fourslash/tests/gen/completionsInExport_moduleBlock_test.go +++ b/internal/fourslash/tests/gen/completionsInExport_moduleBlock_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsInExport_moduleBlock(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const outOfScope = 0; diff --git a/internal/fourslash/tests/gen/completionsInExport_test.go b/internal/fourslash/tests/gen/completionsInExport_test.go index 70c5f7bdd3..5d766a3da9 100644 --- a/internal/fourslash/tests/gen/completionsInExport_test.go +++ b/internal/fourslash/tests/gen/completionsInExport_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsInExport(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const a = "a"; type T = number; diff --git a/internal/fourslash/tests/gen/completionsInRequire_test.go b/internal/fourslash/tests/gen/completionsInRequire_test.go index 32214af99b..76aed69741 100644 --- a/internal/fourslash/tests/gen/completionsInRequire_test.go +++ b/internal/fourslash/tests/gen/completionsInRequire_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionsInRequire(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: foo.js diff --git a/internal/fourslash/tests/gen/completionsJSDocImportTagAttributesEmptyModuleSpecifier1_test.go b/internal/fourslash/tests/gen/completionsJSDocImportTagAttributesEmptyModuleSpecifier1_test.go index 4e464bc577..490f900ffb 100644 --- a/internal/fourslash/tests/gen/completionsJSDocImportTagAttributesEmptyModuleSpecifier1_test.go +++ b/internal/fourslash/tests/gen/completionsJSDocImportTagAttributesEmptyModuleSpecifier1_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionsJSDocImportTagAttributesEmptyModuleSpecifier1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @checkJs: true diff --git a/internal/fourslash/tests/gen/completionsJSDocImportTagAttributesErrorModuleSpecifier1_test.go b/internal/fourslash/tests/gen/completionsJSDocImportTagAttributesErrorModuleSpecifier1_test.go index 98c319a844..cf4a90e2d6 100644 --- a/internal/fourslash/tests/gen/completionsJSDocImportTagAttributesErrorModuleSpecifier1_test.go +++ b/internal/fourslash/tests/gen/completionsJSDocImportTagAttributesErrorModuleSpecifier1_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionsJSDocImportTagAttributesErrorModuleSpecifier1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @checkJs: true diff --git a/internal/fourslash/tests/gen/completionsJSDocImportTagEmptyModuleSpecifier1_test.go b/internal/fourslash/tests/gen/completionsJSDocImportTagEmptyModuleSpecifier1_test.go index ab07b662fc..08169a9226 100644 --- a/internal/fourslash/tests/gen/completionsJSDocImportTagEmptyModuleSpecifier1_test.go +++ b/internal/fourslash/tests/gen/completionsJSDocImportTagEmptyModuleSpecifier1_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionsJSDocImportTagEmptyModuleSpecifier1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @checkJs: true diff --git a/internal/fourslash/tests/gen/completionsJSDocNoCrash1_test.go b/internal/fourslash/tests/gen/completionsJSDocNoCrash1_test.go index 276e43a080..9dc8d9e336 100644 --- a/internal/fourslash/tests/gen/completionsJSDocNoCrash1_test.go +++ b/internal/fourslash/tests/gen/completionsJSDocNoCrash1_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionsJSDocNoCrash1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @checkJs: true diff --git a/internal/fourslash/tests/gen/completionsJsdocTypeTagCast_test.go b/internal/fourslash/tests/gen/completionsJsdocTypeTagCast_test.go index 5c1423b0d3..47031d3639 100644 --- a/internal/fourslash/tests/gen/completionsJsdocTypeTagCast_test.go +++ b/internal/fourslash/tests/gen/completionsJsdocTypeTagCast_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsJsdocTypeTagCast(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/internal/fourslash/tests/gen/completionsJsxAttribute2_test.go b/internal/fourslash/tests/gen/completionsJsxAttribute2_test.go index 4d1b9fe446..e5adc2a267 100644 --- a/internal/fourslash/tests/gen/completionsJsxAttribute2_test.go +++ b/internal/fourslash/tests/gen/completionsJsxAttribute2_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionsJsxAttribute2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @jsx: preserve // @Filename: /a.tsx diff --git a/internal/fourslash/tests/gen/completionsJsxAttributeInitializer2_test.go b/internal/fourslash/tests/gen/completionsJsxAttributeInitializer2_test.go index 22820622d0..a8ad036ebe 100644 --- a/internal/fourslash/tests/gen/completionsJsxAttributeInitializer2_test.go +++ b/internal/fourslash/tests/gen/completionsJsxAttributeInitializer2_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsJsxAttributeInitializer2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.tsx declare namespace JSX { diff --git a/internal/fourslash/tests/gen/completionsLiteralFromInferenceWithinInferredType3_test.go b/internal/fourslash/tests/gen/completionsLiteralFromInferenceWithinInferredType3_test.go index f7ec0ff34c..ae20d7a66b 100644 --- a/internal/fourslash/tests/gen/completionsLiteralFromInferenceWithinInferredType3_test.go +++ b/internal/fourslash/tests/gen/completionsLiteralFromInferenceWithinInferredType3_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionsLiteralFromInferenceWithinInferredType3(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function test(a: { [K in keyof T]: { diff --git a/internal/fourslash/tests/gen/completionsLiterals_test.go b/internal/fourslash/tests/gen/completionsLiterals_test.go index 35ff071582..24fc989f25 100644 --- a/internal/fourslash/tests/gen/completionsLiterals_test.go +++ b/internal/fourslash/tests/gen/completionsLiterals_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsLiterals(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const x: 0 | "one" = /**/; const y: 0 | "one" | 1n = /*1*/; diff --git a/internal/fourslash/tests/gen/completionsMergedDeclarations1_test.go b/internal/fourslash/tests/gen/completionsMergedDeclarations1_test.go index 26cfab4da7..2fc015bbb3 100644 --- a/internal/fourslash/tests/gen/completionsMergedDeclarations1_test.go +++ b/internal/fourslash/tests/gen/completionsMergedDeclarations1_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionsMergedDeclarations1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Point { x: number; diff --git a/internal/fourslash/tests/gen/completionsNewTarget_test.go b/internal/fourslash/tests/gen/completionsNewTarget_test.go index ecda9c3033..d89eaca975 100644 --- a/internal/fourslash/tests/gen/completionsNewTarget_test.go +++ b/internal/fourslash/tests/gen/completionsNewTarget_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionsNewTarget(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { constructor() { diff --git a/internal/fourslash/tests/gen/completionsOptionalMethod_test.go b/internal/fourslash/tests/gen/completionsOptionalMethod_test.go index 49dc117c7f..6e6a13b259 100644 --- a/internal/fourslash/tests/gen/completionsOptionalMethod_test.go +++ b/internal/fourslash/tests/gen/completionsOptionalMethod_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionsOptionalMethod(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strictNullChecks: true declare const x: { m?(): void }; diff --git a/internal/fourslash/tests/gen/completionsOverridingMethod10_test.go b/internal/fourslash/tests/gen/completionsOverridingMethod10_test.go index e90c3f9364..147238b4df 100644 --- a/internal/fourslash/tests/gen/completionsOverridingMethod10_test.go +++ b/internal/fourslash/tests/gen/completionsOverridingMethod10_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsOverridingMethod10(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts // @newline: LF diff --git a/internal/fourslash/tests/gen/completionsOverridingMethod11_test.go b/internal/fourslash/tests/gen/completionsOverridingMethod11_test.go index 7f625ae278..7eb83fdc03 100644 --- a/internal/fourslash/tests/gen/completionsOverridingMethod11_test.go +++ b/internal/fourslash/tests/gen/completionsOverridingMethod11_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsOverridingMethod11(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts // @newline: LF diff --git a/internal/fourslash/tests/gen/completionsOverridingMethod14_test.go b/internal/fourslash/tests/gen/completionsOverridingMethod14_test.go index e478ba42ef..e93bcfb957 100644 --- a/internal/fourslash/tests/gen/completionsOverridingMethod14_test.go +++ b/internal/fourslash/tests/gen/completionsOverridingMethod14_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsOverridingMethod14(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts // @strictNullChecks: true diff --git a/internal/fourslash/tests/gen/completionsOverridingMethod17_test.go b/internal/fourslash/tests/gen/completionsOverridingMethod17_test.go index b1b1f0fdd3..622b05691b 100644 --- a/internal/fourslash/tests/gen/completionsOverridingMethod17_test.go +++ b/internal/fourslash/tests/gen/completionsOverridingMethod17_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsOverridingMethod17(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts // @newline: LF diff --git a/internal/fourslash/tests/gen/completionsOverridingMethod1_test.go b/internal/fourslash/tests/gen/completionsOverridingMethod1_test.go index 3c8e600547..7cd5475348 100644 --- a/internal/fourslash/tests/gen/completionsOverridingMethod1_test.go +++ b/internal/fourslash/tests/gen/completionsOverridingMethod1_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsOverridingMethod1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @newline: LF // @Filename: h.ts diff --git a/internal/fourslash/tests/gen/completionsOverridingMethod3_test.go b/internal/fourslash/tests/gen/completionsOverridingMethod3_test.go index 3a8faeab68..c21c4d676b 100644 --- a/internal/fourslash/tests/gen/completionsOverridingMethod3_test.go +++ b/internal/fourslash/tests/gen/completionsOverridingMethod3_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsOverridingMethod3(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @newline: LF // @Filename: boo.d.ts diff --git a/internal/fourslash/tests/gen/completionsOverridingMethod4_test.go b/internal/fourslash/tests/gen/completionsOverridingMethod4_test.go index e3aaf10920..354a62df3c 100644 --- a/internal/fourslash/tests/gen/completionsOverridingMethod4_test.go +++ b/internal/fourslash/tests/gen/completionsOverridingMethod4_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsOverridingMethod4(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @newline: LF // @Filename: secret.ts diff --git a/internal/fourslash/tests/gen/completionsOverridingMethod9_test.go b/internal/fourslash/tests/gen/completionsOverridingMethod9_test.go index 83bde8141e..1a9fc15c84 100644 --- a/internal/fourslash/tests/gen/completionsOverridingMethod9_test.go +++ b/internal/fourslash/tests/gen/completionsOverridingMethod9_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsOverridingMethod9(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts // @newline: LF diff --git a/internal/fourslash/tests/gen/completionsOverridingMethodCrash1_test.go b/internal/fourslash/tests/gen/completionsOverridingMethodCrash1_test.go index 44dd62a54c..d7f2361259 100644 --- a/internal/fourslash/tests/gen/completionsOverridingMethodCrash1_test.go +++ b/internal/fourslash/tests/gen/completionsOverridingMethodCrash1_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsOverridingMethodCrash1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @newline: LF // @Filename: a.ts diff --git a/internal/fourslash/tests/gen/completionsOverridingProperties1_test.go b/internal/fourslash/tests/gen/completionsOverridingProperties1_test.go index 862de471de..cdf879eeb7 100644 --- a/internal/fourslash/tests/gen/completionsOverridingProperties1_test.go +++ b/internal/fourslash/tests/gen/completionsOverridingProperties1_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsOverridingProperties1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @newline: LF // @Filename: a.ts diff --git a/internal/fourslash/tests/gen/completionsPathsJsonModule_test.go b/internal/fourslash/tests/gen/completionsPathsJsonModule_test.go index b713e79f35..e4d233247d 100644 --- a/internal/fourslash/tests/gen/completionsPathsJsonModule_test.go +++ b/internal/fourslash/tests/gen/completionsPathsJsonModule_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsPathsJsonModule(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @moduleResolution: node // @resolveJsonModule: true diff --git a/internal/fourslash/tests/gen/completionsPathsRelativeJsonModule_test.go b/internal/fourslash/tests/gen/completionsPathsRelativeJsonModule_test.go index 98803f175d..ea5f523f95 100644 --- a/internal/fourslash/tests/gen/completionsPathsRelativeJsonModule_test.go +++ b/internal/fourslash/tests/gen/completionsPathsRelativeJsonModule_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsPathsRelativeJsonModule(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @moduleResolution: node // @resolveJsonModule: true diff --git a/internal/fourslash/tests/gen/completionsPaths_importType_test.go b/internal/fourslash/tests/gen/completionsPaths_importType_test.go index 3caae8585e..2d42458d78 100644 --- a/internal/fourslash/tests/gen/completionsPaths_importType_test.go +++ b/internal/fourslash/tests/gen/completionsPaths_importType_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsPaths_importType(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @moduleResolution: node diff --git a/internal/fourslash/tests/gen/completionsPaths_kinds_test.go b/internal/fourslash/tests/gen/completionsPaths_kinds_test.go index 7895cbadfb..1f5e1c39ea 100644 --- a/internal/fourslash/tests/gen/completionsPaths_kinds_test.go +++ b/internal/fourslash/tests/gen/completionsPaths_kinds_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsPaths_kinds(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /src/b.ts not read diff --git a/internal/fourslash/tests/gen/completionsPaths_pathMapping_nonTrailingWildcard1_test.go b/internal/fourslash/tests/gen/completionsPaths_pathMapping_nonTrailingWildcard1_test.go index 0700a9cd69..f2e881a7fb 100644 --- a/internal/fourslash/tests/gen/completionsPaths_pathMapping_nonTrailingWildcard1_test.go +++ b/internal/fourslash/tests/gen/completionsPaths_pathMapping_nonTrailingWildcard1_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsPaths_pathMapping_nonTrailingWildcard1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /src/b.ts export const x = 0; diff --git a/internal/fourslash/tests/gen/completionsPaths_pathMapping_parentDirectory_test.go b/internal/fourslash/tests/gen/completionsPaths_pathMapping_parentDirectory_test.go index 18ec54858c..838c529503 100644 --- a/internal/fourslash/tests/gen/completionsPaths_pathMapping_parentDirectory_test.go +++ b/internal/fourslash/tests/gen/completionsPaths_pathMapping_parentDirectory_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsPaths_pathMapping_parentDirectory(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /src/a.ts import { } from "foo//**/"; diff --git a/internal/fourslash/tests/gen/completionsPaths_pathMapping_test.go b/internal/fourslash/tests/gen/completionsPaths_pathMapping_test.go index 57d963fedb..7df309a775 100644 --- a/internal/fourslash/tests/gen/completionsPaths_pathMapping_test.go +++ b/internal/fourslash/tests/gen/completionsPaths_pathMapping_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsPaths_pathMapping(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /src/b.ts export const x = 0; diff --git a/internal/fourslash/tests/gen/completionsRecommended_union_test.go b/internal/fourslash/tests/gen/completionsRecommended_union_test.go index 4a7b08f7a4..72032a3008 100644 --- a/internal/fourslash/tests/gen/completionsRecommended_union_test.go +++ b/internal/fourslash/tests/gen/completionsRecommended_union_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsRecommended_union(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strictNullChecks: true const enum E { A = "A", B = "B" } diff --git a/internal/fourslash/tests/gen/completionsRedeclareModuleAsGlobal_test.go b/internal/fourslash/tests/gen/completionsRedeclareModuleAsGlobal_test.go index 8afe59b05b..bc9261733e 100644 --- a/internal/fourslash/tests/gen/completionsRedeclareModuleAsGlobal_test.go +++ b/internal/fourslash/tests/gen/completionsRedeclareModuleAsGlobal_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionsRedeclareModuleAsGlobal(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @esModuleInterop: true, // @target: esnext diff --git a/internal/fourslash/tests/gen/completionsStringsWithTriggerCharacter_test.go b/internal/fourslash/tests/gen/completionsStringsWithTriggerCharacter_test.go index 3ba6bc13d8..b37c40af8f 100644 --- a/internal/fourslash/tests/gen/completionsStringsWithTriggerCharacter_test.go +++ b/internal/fourslash/tests/gen/completionsStringsWithTriggerCharacter_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsStringsWithTriggerCharacter(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type A = "a/b" | "b/a"; const a: A = "[|a/*1*/|]"; diff --git a/internal/fourslash/tests/gen/completionsSymbolMembers_test.go b/internal/fourslash/tests/gen/completionsSymbolMembers_test.go index 955ad4d346..70e41231ee 100644 --- a/internal/fourslash/tests/gen/completionsSymbolMembers_test.go +++ b/internal/fourslash/tests/gen/completionsSymbolMembers_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsSymbolMembers(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const Symbol: (s: string) => symbol; const s = Symbol("s"); diff --git a/internal/fourslash/tests/gen/completionsTriggerCharacter_test.go b/internal/fourslash/tests/gen/completionsTriggerCharacter_test.go index 30715c2859..8209befddd 100644 --- a/internal/fourslash/tests/gen/completionsTriggerCharacter_test.go +++ b/internal/fourslash/tests/gen/completionsTriggerCharacter_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsTriggerCharacter(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @jsx: preserve /** @/*tag*/ */ diff --git a/internal/fourslash/tests/gen/completionsTuple_test.go b/internal/fourslash/tests/gen/completionsTuple_test.go index 60cb27a1df..9d81ee87a1 100644 --- a/internal/fourslash/tests/gen/completionsTuple_test.go +++ b/internal/fourslash/tests/gen/completionsTuple_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsTuple(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const x: [number, number]; x[|./**/|];` diff --git a/internal/fourslash/tests/gen/completionsUniqueSymbol1_test.go b/internal/fourslash/tests/gen/completionsUniqueSymbol1_test.go index ad4ae8523e..c536c92c44 100644 --- a/internal/fourslash/tests/gen/completionsUniqueSymbol1_test.go +++ b/internal/fourslash/tests/gen/completionsUniqueSymbol1_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionsUniqueSymbol1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const Symbol: () => symbol; namespace M { diff --git a/internal/fourslash/tests/gen/constEnumQuickInfoAndCompletionList_test.go b/internal/fourslash/tests/gen/constEnumQuickInfoAndCompletionList_test.go index 4b99f7f120..8d158e3a81 100644 --- a/internal/fourslash/tests/gen/constEnumQuickInfoAndCompletionList_test.go +++ b/internal/fourslash/tests/gen/constEnumQuickInfoAndCompletionList_test.go @@ -11,7 +11,7 @@ import ( func TestConstEnumQuickInfoAndCompletionList(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const enum /*1*/e { a, diff --git a/internal/fourslash/tests/gen/constQuickInfoAndCompletionList_test.go b/internal/fourslash/tests/gen/constQuickInfoAndCompletionList_test.go index ea60e91862..319953a2cb 100644 --- a/internal/fourslash/tests/gen/constQuickInfoAndCompletionList_test.go +++ b/internal/fourslash/tests/gen/constQuickInfoAndCompletionList_test.go @@ -11,7 +11,7 @@ import ( func TestConstQuickInfoAndCompletionList(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const /*1*/a = 10; var x = /*2*/a; diff --git a/internal/fourslash/tests/gen/contextuallyTypedFunctionExpressionGeneric1_test.go b/internal/fourslash/tests/gen/contextuallyTypedFunctionExpressionGeneric1_test.go index 2f12ff22d4..782ae6f123 100644 --- a/internal/fourslash/tests/gen/contextuallyTypedFunctionExpressionGeneric1_test.go +++ b/internal/fourslash/tests/gen/contextuallyTypedFunctionExpressionGeneric1_test.go @@ -9,7 +9,7 @@ import ( func TestContextuallyTypedFunctionExpressionGeneric1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Comparable { compareTo(other: T): T; diff --git a/internal/fourslash/tests/gen/doubleUnderscoreCompletions_test.go b/internal/fourslash/tests/gen/doubleUnderscoreCompletions_test.go index edfc26bb81..7c0c9154ed 100644 --- a/internal/fourslash/tests/gen/doubleUnderscoreCompletions_test.go +++ b/internal/fourslash/tests/gen/doubleUnderscoreCompletions_test.go @@ -12,7 +12,7 @@ import ( func TestDoubleUnderscoreCompletions(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/internal/fourslash/tests/gen/editJsdocType_test.go b/internal/fourslash/tests/gen/editJsdocType_test.go index 465447d642..21dcd4121d 100644 --- a/internal/fourslash/tests/gen/editJsdocType_test.go +++ b/internal/fourslash/tests/gen/editJsdocType_test.go @@ -9,7 +9,7 @@ import ( func TestEditJsdocType(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @noLib: true diff --git a/internal/fourslash/tests/gen/exportDefaultClass_test.go b/internal/fourslash/tests/gen/exportDefaultClass_test.go index b25a8aa6d3..7a9f2862ed 100644 --- a/internal/fourslash/tests/gen/exportDefaultClass_test.go +++ b/internal/fourslash/tests/gen/exportDefaultClass_test.go @@ -11,7 +11,7 @@ import ( func TestExportDefaultClass(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export default class C { method() { /*1*/ } diff --git a/internal/fourslash/tests/gen/exportDefaultFunction_test.go b/internal/fourslash/tests/gen/exportDefaultFunction_test.go index 8b474c8dc3..15b1f86be3 100644 --- a/internal/fourslash/tests/gen/exportDefaultFunction_test.go +++ b/internal/fourslash/tests/gen/exportDefaultFunction_test.go @@ -11,7 +11,7 @@ import ( func TestExportDefaultFunction(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export default function func() { /*1*/ diff --git a/internal/fourslash/tests/gen/findAllReferencesDynamicImport1_test.go b/internal/fourslash/tests/gen/findAllReferencesDynamicImport1_test.go index a3cbb55949..a6637254e1 100644 --- a/internal/fourslash/tests/gen/findAllReferencesDynamicImport1_test.go +++ b/internal/fourslash/tests/gen/findAllReferencesDynamicImport1_test.go @@ -9,7 +9,7 @@ import ( func TestFindAllReferencesDynamicImport1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: foo.ts export function foo() { return "foo"; } diff --git a/internal/fourslash/tests/gen/findAllReferencesTripleSlash_test.go b/internal/fourslash/tests/gen/findAllReferencesTripleSlash_test.go index 6c418d4bb6..eec32bef82 100644 --- a/internal/fourslash/tests/gen/findAllReferencesTripleSlash_test.go +++ b/internal/fourslash/tests/gen/findAllReferencesTripleSlash_test.go @@ -9,7 +9,7 @@ import ( func TestFindAllReferencesTripleSlash(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @checkJs: true // @Filename: /node_modules/@types/globals/index.d.ts diff --git a/internal/fourslash/tests/gen/findAllReferencesUmdModuleAsGlobalConst_test.go b/internal/fourslash/tests/gen/findAllReferencesUmdModuleAsGlobalConst_test.go index 2000320574..c0a0b67b70 100644 --- a/internal/fourslash/tests/gen/findAllReferencesUmdModuleAsGlobalConst_test.go +++ b/internal/fourslash/tests/gen/findAllReferencesUmdModuleAsGlobalConst_test.go @@ -9,7 +9,7 @@ import ( func TestFindAllReferencesUmdModuleAsGlobalConst(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /node_modules/@types/three/three-core.d.ts export class Vector3 { diff --git a/internal/fourslash/tests/gen/findAllRefsCommonJsRequire2_test.go b/internal/fourslash/tests/gen/findAllRefsCommonJsRequire2_test.go index 1e02bacdff..d8cdf2d191 100644 --- a/internal/fourslash/tests/gen/findAllRefsCommonJsRequire2_test.go +++ b/internal/fourslash/tests/gen/findAllRefsCommonJsRequire2_test.go @@ -9,7 +9,7 @@ import ( func TestFindAllRefsCommonJsRequire2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/internal/fourslash/tests/gen/findAllRefsCommonJsRequire3_test.go b/internal/fourslash/tests/gen/findAllRefsCommonJsRequire3_test.go index e382ea6594..5b683392eb 100644 --- a/internal/fourslash/tests/gen/findAllRefsCommonJsRequire3_test.go +++ b/internal/fourslash/tests/gen/findAllRefsCommonJsRequire3_test.go @@ -9,7 +9,7 @@ import ( func TestFindAllRefsCommonJsRequire3(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/internal/fourslash/tests/gen/findAllRefsCommonJsRequire_test.go b/internal/fourslash/tests/gen/findAllRefsCommonJsRequire_test.go index eeb9a85761..03664fd182 100644 --- a/internal/fourslash/tests/gen/findAllRefsCommonJsRequire_test.go +++ b/internal/fourslash/tests/gen/findAllRefsCommonJsRequire_test.go @@ -9,7 +9,7 @@ import ( func TestFindAllRefsCommonJsRequire(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/internal/fourslash/tests/gen/findAllRefsExportEquals_test.go b/internal/fourslash/tests/gen/findAllRefsExportEquals_test.go index dfee6a23bf..56070c7f4e 100644 --- a/internal/fourslash/tests/gen/findAllRefsExportEquals_test.go +++ b/internal/fourslash/tests/gen/findAllRefsExportEquals_test.go @@ -9,7 +9,7 @@ import ( func TestFindAllRefsExportEquals(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts type /*0*/T = number; diff --git a/internal/fourslash/tests/gen/findAllRefsForDefaultExport03_test.go b/internal/fourslash/tests/gen/findAllRefsForDefaultExport03_test.go index f41ebfe43a..85578f9b73 100644 --- a/internal/fourslash/tests/gen/findAllRefsForDefaultExport03_test.go +++ b/internal/fourslash/tests/gen/findAllRefsForDefaultExport03_test.go @@ -9,7 +9,7 @@ import ( func TestFindAllRefsForDefaultExport03(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/function /*2*/f() { return 100; diff --git a/internal/fourslash/tests/gen/findAllRefsModuleDotExports_test.go b/internal/fourslash/tests/gen/findAllRefsModuleDotExports_test.go index e2fa622891..97fa6533ec 100644 --- a/internal/fourslash/tests/gen/findAllRefsModuleDotExports_test.go +++ b/internal/fourslash/tests/gen/findAllRefsModuleDotExports_test.go @@ -9,7 +9,7 @@ import ( func TestFindAllRefsModuleDotExports(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/internal/fourslash/tests/gen/findAllRefsReExport_broken_test.go b/internal/fourslash/tests/gen/findAllRefsReExport_broken_test.go index a864f48650..8584434558 100644 --- a/internal/fourslash/tests/gen/findAllRefsReExport_broken_test.go +++ b/internal/fourslash/tests/gen/findAllRefsReExport_broken_test.go @@ -9,7 +9,7 @@ import ( func TestFindAllRefsReExport_broken(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts /*1*/export { /*2*/x };` diff --git a/internal/fourslash/tests/gen/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/quickInfoOnElementAccessInWriteLocation2_test.go b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation2_test.go index 70cdd15d45..fe809c81ea 100644 --- a/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation2_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation2_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnElementAccessInWriteLocation2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @exactOptionalPropertyTypes: true diff --git a/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation3_test.go b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation3_test.go index 88d59e414d..392033b4a3 100644 --- a/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation3_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation3_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnElementAccessInWriteLocation3(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @exactOptionalPropertyTypes: true diff --git a/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation4_test.go b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation4_test.go index 6efad423d2..cd40eccd62 100644 --- a/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation4_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation4_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnElementAccessInWriteLocation4(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface Serializer { diff --git a/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation5_test.go b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation5_test.go index 18e109dd7d..6a962962fb 100644 --- a/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation5_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation5_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnElementAccessInWriteLocation5(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface Serializer { diff --git a/internal/fourslash/tests/gen/quickInfoOnErrorTypes1_test.go b/internal/fourslash/tests/gen/quickInfoOnErrorTypes1_test.go index 65eb91b01b..0d6a747e02 100644 --- a/internal/fourslash/tests/gen/quickInfoOnErrorTypes1_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnErrorTypes1_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnErrorTypes1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var /*A*/f: { x: number; diff --git a/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction1_test.go b/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction1_test.go index 7784764eb8..c76e12a576 100644 --- a/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction1_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction1_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnFunctionPropertyReturnedFromGenericFunction1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function createProps(t: T) { function getProps() {} diff --git a/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction2_test.go b/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction2_test.go index df60ba097f..8c3998f742 100644 --- a/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction2_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction2_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnFunctionPropertyReturnedFromGenericFunction2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function createProps(t: T) { const getProps = function() {} diff --git a/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction3_test.go b/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction3_test.go index f64d4e8699..d57777412c 100644 --- a/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction3_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction3_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnFunctionPropertyReturnedFromGenericFunction3(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function createProps(t: T) { const getProps = () => {} diff --git a/internal/fourslash/tests/gen/quickInfoOnGenericWithConstraints1_test.go b/internal/fourslash/tests/gen/quickInfoOnGenericWithConstraints1_test.go index 789d25fafd..2cf890fc23 100644 --- a/internal/fourslash/tests/gen/quickInfoOnGenericWithConstraints1_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnGenericWithConstraints1_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnGenericWithConstraints1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Fo/*1*/o {}` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/internal/fourslash/tests/gen/quickInfoOnInternalAliases_test.go b/internal/fourslash/tests/gen/quickInfoOnInternalAliases_test.go index 1fc5359155..dbf9348311 100644 --- a/internal/fourslash/tests/gen/quickInfoOnInternalAliases_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnInternalAliases_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnInternalAliases(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** Module comment*/ export module m1 { diff --git a/internal/fourslash/tests/gen/quickInfoOnMethodOfImportEquals_test.go b/internal/fourslash/tests/gen/quickInfoOnMethodOfImportEquals_test.go index 1d8059c708..743a7dc7b6 100644 --- a/internal/fourslash/tests/gen/quickInfoOnMethodOfImportEquals_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnMethodOfImportEquals_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnMethodOfImportEquals(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.d.ts declare class C { diff --git a/internal/fourslash/tests/gen/quickInfoOnNarrowedTypeInModule_test.go b/internal/fourslash/tests/gen/quickInfoOnNarrowedTypeInModule_test.go index 8c0606a8c8..c2323d608d 100644 --- a/internal/fourslash/tests/gen/quickInfoOnNarrowedTypeInModule_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnNarrowedTypeInModule_test.go @@ -11,7 +11,7 @@ import ( func TestQuickInfoOnNarrowedTypeInModule(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var strOrNum: string | number; module m { diff --git a/internal/fourslash/tests/gen/quickInfoOnNarrowedType_test.go b/internal/fourslash/tests/gen/quickInfoOnNarrowedType_test.go index f917e01054..203d4dc986 100644 --- a/internal/fourslash/tests/gen/quickInfoOnNarrowedType_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnNarrowedType_test.go @@ -11,7 +11,7 @@ import ( func TestQuickInfoOnNarrowedType(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strictNullChecks: true function foo(strOrNum: string | number) { diff --git a/internal/fourslash/tests/gen/quickInfoOnNewKeyword01_test.go b/internal/fourslash/tests/gen/quickInfoOnNewKeyword01_test.go index 4ceaf672ee..c04fbba1ad 100644 --- a/internal/fourslash/tests/gen/quickInfoOnNewKeyword01_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnNewKeyword01_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnNewKeyword01(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Cat { /** diff --git a/internal/fourslash/tests/gen/quickInfoOnObjectLiteralWithAccessors_test.go b/internal/fourslash/tests/gen/quickInfoOnObjectLiteralWithAccessors_test.go index 41ed420157..a95e857a68 100644 --- a/internal/fourslash/tests/gen/quickInfoOnObjectLiteralWithAccessors_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnObjectLiteralWithAccessors_test.go @@ -11,7 +11,7 @@ import ( func TestQuickInfoOnObjectLiteralWithAccessors(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function /*1*/makePoint(x: number) { return { diff --git a/internal/fourslash/tests/gen/quickInfoOnObjectLiteralWithOnlyGetter_test.go b/internal/fourslash/tests/gen/quickInfoOnObjectLiteralWithOnlyGetter_test.go index b33b85bbaa..8d5e23a81e 100644 --- a/internal/fourslash/tests/gen/quickInfoOnObjectLiteralWithOnlyGetter_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnObjectLiteralWithOnlyGetter_test.go @@ -11,7 +11,7 @@ import ( func TestQuickInfoOnObjectLiteralWithOnlyGetter(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function /*1*/makePoint(x: number) { return { diff --git a/internal/fourslash/tests/gen/quickInfoOnObjectLiteralWithOnlySetter_test.go b/internal/fourslash/tests/gen/quickInfoOnObjectLiteralWithOnlySetter_test.go index c5d4f3551e..78d6dcf91d 100644 --- a/internal/fourslash/tests/gen/quickInfoOnObjectLiteralWithOnlySetter_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnObjectLiteralWithOnlySetter_test.go @@ -11,7 +11,7 @@ import ( func TestQuickInfoOnObjectLiteralWithOnlySetter(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function /*1*/makePoint(x: number) { return { diff --git a/internal/fourslash/tests/gen/quickInfoOnPropDeclaredUsingIndexSignatureOnInterfaceWithBase_test.go b/internal/fourslash/tests/gen/quickInfoOnPropDeclaredUsingIndexSignatureOnInterfaceWithBase_test.go index 2a0e4018d1..88232b26a6 100644 --- a/internal/fourslash/tests/gen/quickInfoOnPropDeclaredUsingIndexSignatureOnInterfaceWithBase_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnPropDeclaredUsingIndexSignatureOnInterfaceWithBase_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnPropDeclaredUsingIndexSignatureOnInterfaceWithBase(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface P {} interface B extends P { diff --git a/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation1_test.go b/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation1_test.go index 100b0ca974..b4d4b97928 100644 --- a/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation1_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation1_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnPropertyAccessInWriteLocation1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @exactOptionalPropertyTypes: true diff --git a/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation2_test.go b/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation2_test.go index 9c3ba28460..a35fa86f1f 100644 --- a/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation2_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation2_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnPropertyAccessInWriteLocation2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @exactOptionalPropertyTypes: true diff --git a/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation3_test.go b/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation3_test.go index 3c61b080fe..a6f48108e0 100644 --- a/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation3_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation3_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnPropertyAccessInWriteLocation3(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @exactOptionalPropertyTypes: true diff --git a/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation4_test.go b/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation4_test.go index c980490445..8ead1d1375 100644 --- a/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation4_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation4_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnPropertyAccessInWriteLocation4(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface Serializer { diff --git a/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation5_test.go b/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation5_test.go index 394240eff3..059c172156 100644 --- a/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation5_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation5_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnPropertyAccessInWriteLocation5(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface Serializer { diff --git a/internal/fourslash/tests/gen/quickInfoOnThis2_test.go b/internal/fourslash/tests/gen/quickInfoOnThis2_test.go index 326fc0d062..99094ea507 100644 --- a/internal/fourslash/tests/gen/quickInfoOnThis2_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnThis2_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnThis2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Bar { public explicitThis(this: this) { diff --git a/internal/fourslash/tests/gen/quickInfoOnThis3_test.go b/internal/fourslash/tests/gen/quickInfoOnThis3_test.go index 40c4793701..2bd1150a23 100644 --- a/internal/fourslash/tests/gen/quickInfoOnThis3_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnThis3_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnThis3(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Restricted { n: number; diff --git a/internal/fourslash/tests/gen/quickInfoOnThis4_test.go b/internal/fourslash/tests/gen/quickInfoOnThis4_test.go index d0820e0d5b..557c60bafb 100644 --- a/internal/fourslash/tests/gen/quickInfoOnThis4_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnThis4_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnThis4(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface ContextualInterface { m: number; diff --git a/internal/fourslash/tests/gen/quickInfoOnThis_test.go b/internal/fourslash/tests/gen/quickInfoOnThis_test.go index 207b2dddff..ad489f1635 100644 --- a/internal/fourslash/tests/gen/quickInfoOnThis_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnThis_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnThis(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Restricted { n: number; diff --git a/internal/fourslash/tests/gen/quickInfoOnUndefined_test.go b/internal/fourslash/tests/gen/quickInfoOnUndefined_test.go index 5c1beb6b0d..fc975cbc54 100644 --- a/internal/fourslash/tests/gen/quickInfoOnUndefined_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnUndefined_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnUndefined(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(a: string) { } diff --git a/internal/fourslash/tests/gen/quickInfoOnVarInArrowExpression_test.go b/internal/fourslash/tests/gen/quickInfoOnVarInArrowExpression_test.go index afbd52b1d2..b888df96e2 100644 --- a/internal/fourslash/tests/gen/quickInfoOnVarInArrowExpression_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnVarInArrowExpression_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnVarInArrowExpression(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IMap { [key: string]: T; diff --git a/internal/fourslash/tests/gen/quickInfoPrivateIdentifierInTypeReferenceNoCrash1_test.go b/internal/fourslash/tests/gen/quickInfoPrivateIdentifierInTypeReferenceNoCrash1_test.go index d0620ca05b..7195b2add0 100644 --- a/internal/fourslash/tests/gen/quickInfoPrivateIdentifierInTypeReferenceNoCrash1_test.go +++ b/internal/fourslash/tests/gen/quickInfoPrivateIdentifierInTypeReferenceNoCrash1_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoPrivateIdentifierInTypeReferenceNoCrash1(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/quickInfoPropertyTag_test.go b/internal/fourslash/tests/gen/quickInfoPropertyTag_test.go index 820d1bdc85..bf16d3fc66 100644 --- a/internal/fourslash/tests/gen/quickInfoPropertyTag_test.go +++ b/internal/fourslash/tests/gen/quickInfoPropertyTag_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoPropertyTag(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/quickInfoSignatureOptionalParameterFromUnion1_test.go b/internal/fourslash/tests/gen/quickInfoSignatureOptionalParameterFromUnion1_test.go index b90cdd99ad..33d81aa485 100644 --- a/internal/fourslash/tests/gen/quickInfoSignatureOptionalParameterFromUnion1_test.go +++ b/internal/fourslash/tests/gen/quickInfoSignatureOptionalParameterFromUnion1_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoSignatureOptionalParameterFromUnion1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const optionals: | ((a?: { a: true }) => unknown) diff --git a/internal/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion1_test.go b/internal/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion1_test.go index 172e24f6dd..988c40901e 100644 --- a/internal/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion1_test.go +++ b/internal/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion1_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoSignatureRestParameterFromUnion1(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const rest: | ((v: { a: true }, ...rest: string[]) => unknown) diff --git a/internal/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion2_test.go b/internal/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion2_test.go index cb22e96efe..2169b9be5d 100644 --- a/internal/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion2_test.go +++ b/internal/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion2_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoSignatureRestParameterFromUnion2(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const rest: | ((a?: { a: true }, ...rest: string[]) => unknown) diff --git a/internal/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion3_test.go b/internal/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion3_test.go index ccadaf39f5..26a1bb851f 100644 --- a/internal/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion3_test.go +++ b/internal/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion3_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoSignatureRestParameterFromUnion3(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const fn: | ((a: { x: number }, b: { x: number }) => number) diff --git a/internal/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion4_test.go b/internal/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion4_test.go index 732079c1df..7c3d00969a 100644 --- a/internal/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion4_test.go +++ b/internal/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion4_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoSignatureRestParameterFromUnion4(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const fn: | ((a?: { x: number }, b?: { x: number }) => number) diff --git a/internal/fourslash/tests/gen/quickInfoSpecialPropertyAssignment_test.go b/internal/fourslash/tests/gen/quickInfoSpecialPropertyAssignment_test.go index f86aa5d8c5..4565294979 100644 --- a/internal/fourslash/tests/gen/quickInfoSpecialPropertyAssignment_test.go +++ b/internal/fourslash/tests/gen/quickInfoSpecialPropertyAssignment_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoSpecialPropertyAssignment(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/quickInfoStaticPrototypePropertyOnClass_test.go b/internal/fourslash/tests/gen/quickInfoStaticPrototypePropertyOnClass_test.go index e3d47b622b..2ab03ab2e5 100644 --- a/internal/fourslash/tests/gen/quickInfoStaticPrototypePropertyOnClass_test.go +++ b/internal/fourslash/tests/gen/quickInfoStaticPrototypePropertyOnClass_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoStaticPrototypePropertyOnClass(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class c1 { } diff --git a/internal/fourslash/tests/gen/quickInfoTemplateTag_test.go b/internal/fourslash/tests/gen/quickInfoTemplateTag_test.go index 064af87564..25d6efc03e 100644 --- a/internal/fourslash/tests/gen/quickInfoTemplateTag_test.go +++ b/internal/fourslash/tests/gen/quickInfoTemplateTag_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoTemplateTag(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/quickInfoTypeAliasDefinedInDifferentFile_test.go b/internal/fourslash/tests/gen/quickInfoTypeAliasDefinedInDifferentFile_test.go index 5c0c99dfd3..0b2e3e5ff5 100644 --- a/internal/fourslash/tests/gen/quickInfoTypeAliasDefinedInDifferentFile_test.go +++ b/internal/fourslash/tests/gen/quickInfoTypeAliasDefinedInDifferentFile_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoTypeAliasDefinedInDifferentFile(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export type X = { x: number }; diff --git a/internal/fourslash/tests/gen/quickInfoTypeError_test.go b/internal/fourslash/tests/gen/quickInfoTypeError_test.go index 24b285395d..31d02d65f6 100644 --- a/internal/fourslash/tests/gen/quickInfoTypeError_test.go +++ b/internal/fourslash/tests/gen/quickInfoTypeError_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoTypeError(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `foo({ /**/f: function() {}, diff --git a/internal/fourslash/tests/gen/quickInfoTypeOfThisInStatics_test.go b/internal/fourslash/tests/gen/quickInfoTypeOfThisInStatics_test.go index c12da77fb6..8be84a90a7 100644 --- a/internal/fourslash/tests/gen/quickInfoTypeOfThisInStatics_test.go +++ b/internal/fourslash/tests/gen/quickInfoTypeOfThisInStatics_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoTypeOfThisInStatics(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { static foo() { diff --git a/internal/fourslash/tests/gen/quickInfoTypeOnlyNamespaceAndClass_test.go b/internal/fourslash/tests/gen/quickInfoTypeOnlyNamespaceAndClass_test.go index 4cf71425c3..177271ab11 100644 --- a/internal/fourslash/tests/gen/quickInfoTypeOnlyNamespaceAndClass_test.go +++ b/internal/fourslash/tests/gen/quickInfoTypeOnlyNamespaceAndClass_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoTypeOnlyNamespaceAndClass(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export namespace ns { diff --git a/internal/fourslash/tests/gen/quickInfoUnionOfNamespaces_test.go b/internal/fourslash/tests/gen/quickInfoUnionOfNamespaces_test.go index c1c4808278..15b77d4c39 100644 --- a/internal/fourslash/tests/gen/quickInfoUnionOfNamespaces_test.go +++ b/internal/fourslash/tests/gen/quickInfoUnionOfNamespaces_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoUnionOfNamespaces(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const x: typeof A | typeof B; x./**/f; diff --git a/internal/fourslash/tests/gen/quickInfoUnion_discriminated_test.go b/internal/fourslash/tests/gen/quickInfoUnion_discriminated_test.go index db39343a15..f4fbac65dc 100644 --- a/internal/fourslash/tests/gen/quickInfoUnion_discriminated_test.go +++ b/internal/fourslash/tests/gen/quickInfoUnion_discriminated_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoUnion_discriminated(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: quickInfoJsDocTags.ts type U = A | B; diff --git a/internal/fourslash/tests/gen/quickInfoWidenedTypes_test.go b/internal/fourslash/tests/gen/quickInfoWidenedTypes_test.go index f55b652cc3..76a0ae7179 100644 --- a/internal/fourslash/tests/gen/quickInfoWidenedTypes_test.go +++ b/internal/fourslash/tests/gen/quickInfoWidenedTypes_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoWidenedTypes(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var /*1*/a = null; // var a: any var /*2*/b = undefined; // var b: any 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/referencesForStatementKeywords_test.go b/internal/fourslash/tests/gen/referencesForStatementKeywords_test.go index fcec2a2070..bde9db9024 100644 --- a/internal/fourslash/tests/gen/referencesForStatementKeywords_test.go +++ b/internal/fourslash/tests/gen/referencesForStatementKeywords_test.go @@ -9,7 +9,7 @@ import ( func TestReferencesForStatementKeywords(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: /main.ts // import ... = ... diff --git a/internal/fourslash/tests/gen/referencesInComment_test.go b/internal/fourslash/tests/gen/referencesInComment_test.go index 307dc29267..91e2e6fe2c 100644 --- a/internal/fourslash/tests/gen/referencesInComment_test.go +++ b/internal/fourslash/tests/gen/referencesInComment_test.go @@ -9,7 +9,7 @@ import ( func TestReferencesInComment(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// References to /*1*/foo or b/*2*/ar /* in comments should not find fo/*3*/o or bar/*4*/ */ diff --git a/internal/fourslash/tests/gen/referencesInEmptyFile_test.go b/internal/fourslash/tests/gen/referencesInEmptyFile_test.go index 7afa6fcc96..57bc1bfe21 100644 --- a/internal/fourslash/tests/gen/referencesInEmptyFile_test.go +++ b/internal/fourslash/tests/gen/referencesInEmptyFile_test.go @@ -9,7 +9,7 @@ import ( func TestReferencesInEmptyFile(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/internal/fourslash/tests/gen/referencesIsAvailableThroughGlobalNoCrash_test.go b/internal/fourslash/tests/gen/referencesIsAvailableThroughGlobalNoCrash_test.go index 0ea3c6e347..d7f6558e51 100644 --- a/internal/fourslash/tests/gen/referencesIsAvailableThroughGlobalNoCrash_test.go +++ b/internal/fourslash/tests/gen/referencesIsAvailableThroughGlobalNoCrash_test.go @@ -9,7 +9,7 @@ import ( func TestReferencesIsAvailableThroughGlobalNoCrash(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /packages/playwright-core/bundles/utils/node_modules/@types/debug/index.d.ts declare var debug: debug.Debug & { debug: debug.Debug; default: debug.Debug }; diff --git a/internal/fourslash/tests/gen/regexDetection_test.go b/internal/fourslash/tests/gen/regexDetection_test.go index d2e45c95fb..23105d6182 100644 --- a/internal/fourslash/tests/gen/regexDetection_test.go +++ b/internal/fourslash/tests/gen/regexDetection_test.go @@ -9,7 +9,7 @@ import ( func TestRegexDetection(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = ` /*1*/15 / /*2*/Math.min(61 / /*3*/42, 32 / 15) / /*4*/15;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/internal/fourslash/tests/gen/reverseMappedTypeQuickInfo_test.go b/internal/fourslash/tests/gen/reverseMappedTypeQuickInfo_test.go index 14d9fa4641..a8d3629abd 100644 --- a/internal/fourslash/tests/gen/reverseMappedTypeQuickInfo_test.go +++ b/internal/fourslash/tests/gen/reverseMappedTypeQuickInfo_test.go @@ -9,7 +9,7 @@ import ( func TestReverseMappedTypeQuickInfo(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IAction { type: string; diff --git a/internal/fourslash/tests/gen/selfReferencedExternalModule_test.go b/internal/fourslash/tests/gen/selfReferencedExternalModule_test.go index e2fbaf67e9..e76b080b75 100644 --- a/internal/fourslash/tests/gen/selfReferencedExternalModule_test.go +++ b/internal/fourslash/tests/gen/selfReferencedExternalModule_test.go @@ -11,7 +11,7 @@ import ( func TestSelfReferencedExternalModule(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: app.ts export import A = require('./app'); diff --git a/internal/fourslash/tests/gen/signatureHelpInferenceJsDocImportTag_test.go b/internal/fourslash/tests/gen/signatureHelpInferenceJsDocImportTag_test.go index 6a53358869..4c1e13b5d3 100644 --- a/internal/fourslash/tests/gen/signatureHelpInferenceJsDocImportTag_test.go +++ b/internal/fourslash/tests/gen/signatureHelpInferenceJsDocImportTag_test.go @@ -9,7 +9,7 @@ import ( func TestSignatureHelpInferenceJsDocImportTag(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/stringCompletionsImportOrExportSpecifier_test.go b/internal/fourslash/tests/gen/stringCompletionsImportOrExportSpecifier_test.go index 53cf64bfac..aa30a667ee 100644 --- a/internal/fourslash/tests/gen/stringCompletionsImportOrExportSpecifier_test.go +++ b/internal/fourslash/tests/gen/stringCompletionsImportOrExportSpecifier_test.go @@ -10,7 +10,7 @@ import ( func TestStringCompletionsImportOrExportSpecifier(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: exports.ts export let foo = 1; diff --git a/internal/fourslash/tests/gen/stringCompletionsVsEscaping_test.go b/internal/fourslash/tests/gen/stringCompletionsVsEscaping_test.go index 19708dc3fc..23df266492 100644 --- a/internal/fourslash/tests/gen/stringCompletionsVsEscaping_test.go +++ b/internal/fourslash/tests/gen/stringCompletionsVsEscaping_test.go @@ -10,7 +10,7 @@ import ( func TestStringCompletionsVsEscaping(t *testing.T) { t.Parallel() - t.Skip() + defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type Value

= ` + "`" + `var(--\\\\, ${P})` + "`" + ` export const value: Value<'one' | 'two'> = "/*1*/" diff --git a/internal/fourslash/tests/gen/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 /// (...keys: (keyof T)[]) { } From 0f447ac920f5231c1f1d438ee6c2620daf193d87 Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Mon, 18 Aug 2025 18:17:22 -0700 Subject: [PATCH 5/6] Revert "Tons of fourslash changes?" This reverts commit a4eb181585b16e3dfa23e96de744589e5da1fc7b. --- internal/fourslash/_scripts/failingTests.txt | 258 ++++++++++++++++++ .../gen/aliasMergingWithNamespace_test.go | 2 +- .../ambientShorthandGotoDefinition_test.go | 2 +- ...AvailableAfterEditsAtEndOfFunction_test.go | 2 +- .../tests/gen/augmentedTypesClass1_test.go | 2 +- .../gen/augmentedTypesClass3Fourslash_test.go | 2 +- .../gen/bestCommonTypeObjectLiterals1_test.go | 2 +- .../gen/bestCommonTypeObjectLiterals_test.go | 2 +- .../tests/gen/codeCompletionEscaping_test.go | 2 +- .../tests/gen/commentsEnumsFourslash_test.go | 2 +- .../gen/commentsLinePreservation_test.go | 2 +- .../fourslash/tests/gen/commentsUnion_test.go | 2 +- .../gen/completionAfterQuestionDot_test.go | 2 +- .../completionAutoInsertQuestionDot_test.go | 2 +- .../gen/completionCloneQuestionToken_test.go | 2 +- ...ntryForArgumentConstrainedToString_test.go | 2 +- ...orArrayElementConstrainedToString2_test.go | 2 +- ...ForArrayElementConstrainedToString_test.go | 2 +- ...rs_StaticWhenBaseTypeIsNotResolved_test.go | 2 +- .../completionEntryForUnionProperty2_test.go | 2 +- .../completionEntryForUnionProperty_test.go | 2 +- .../tests/gen/completionExportFrom_test.go | 2 +- ...pletionForComputedStringProperties_test.go | 2 +- .../gen/completionForMetaProperty_test.go | 2 +- .../gen/completionForStringLiteral4_test.go | 2 +- .../completionForStringLiteralExport_test.go | 2 +- .../completionForStringLiteralImport1_test.go | 2 +- .../completionForStringLiteralImport2_test.go | 2 +- ...orStringLiteralNonrelativeImport12_test.go | 2 +- ...orStringLiteralNonrelativeImport14_test.go | 2 +- ...orStringLiteralNonrelativeImport16_test.go | 2 +- ...orStringLiteralNonrelativeImport17_test.go | 2 +- ...orStringLiteralNonrelativeImport18_test.go | 2 +- ...ForStringLiteralNonrelativeImport2_test.go | 2 +- ...ForStringLiteralNonrelativeImport3_test.go | 2 +- ...ForStringLiteralNonrelativeImport4_test.go | 2 +- ...ForStringLiteralNonrelativeImport7_test.go | 2 +- ...ForStringLiteralNonrelativeImport8_test.go | 2 +- ...ForStringLiteralNonrelativeImport9_test.go | 2 +- ...ngLiteralNonrelativeImportTypings1_test.go | 2 +- ...ngLiteralNonrelativeImportTypings2_test.go | 2 +- ...ngLiteralNonrelativeImportTypings3_test.go | 2 +- ...ionForStringLiteralRelativeImport4_test.go | 2 +- ...ionForStringLiteralRelativeImport6_test.go | 2 +- ...ngLiteralRelativeImportAllowJSTrue_test.go | 2 +- ...nForStringLiteralWithDynamicImport_test.go | 2 +- ...completionForStringLiteral_details_test.go | 2 +- ...nForStringLiteral_quotePreference1_test.go | 2 +- ...nForStringLiteral_quotePreference2_test.go | 2 +- ...nForStringLiteral_quotePreference3_test.go | 2 +- ...nForStringLiteral_quotePreference4_test.go | 2 +- ...nForStringLiteral_quotePreference5_test.go | 2 +- ...nForStringLiteral_quotePreference6_test.go | 2 +- ...nForStringLiteral_quotePreference7_test.go | 2 +- ...nForStringLiteral_quotePreference8_test.go | 2 +- ...onForStringLiteral_quotePreference_test.go | 2 +- .../gen/completionForStringLiteral_test.go | 2 +- ...ionImportMetaWithGlobalDeclaration_test.go | 2 +- .../tests/gen/completionImportMeta_test.go | 2 +- ...tionImportModuleSpecifierEndingDts_test.go | 2 +- ...etionImportModuleSpecifierEndingJs_test.go | 2 +- ...tionImportModuleSpecifierEndingJsx_test.go | 2 +- ...etionImportModuleSpecifierEndingTs_test.go | 2 +- ...rtModuleSpecifierEndingTsxPreserve_test.go | 2 +- ...mportModuleSpecifierEndingTsxReact_test.go | 2 +- ...pecifierEndingUnsupportedExtension_test.go | 2 +- ...ionLikeBody_includesPrimitiveTypes_test.go | 2 +- .../tests/gen/completionInJsDoc_test.go | 2 +- .../completionInNamedImportLocation_test.go | 2 +- .../gen/completionInUncheckedJSFile_test.go | 2 +- ...lderLocations_VariableDeclarations_test.go | 2 +- .../gen/completionListForDerivedType1_test.go | 2 +- ...stForTransitivelyExportedMembers04_test.go | 2 +- .../completionListFunctionExpression_test.go | 2 +- ...nArrowFunctionInUnclosedCallSite01_test.go | 2 +- ...InClassExpressionWithTypeParameter_test.go | 2 +- .../completionListInClassStaticBlocks_test.go | 2 +- .../completionListInImportClause01_test.go | 2 +- .../completionListInImportClause05_test.go | 2 +- .../completionListInImportClause06_test.go | 2 +- ...nNamedClassExpressionWithShadowing_test.go | 2 +- ...mpletionListInNamedClassExpression_test.go | 2 +- ...tionListInNamedFunctionExpression1_test.go | 2 +- ...medFunctionExpressionWithShadowing_test.go | 2 +- ...etionListInNamedFunctionExpression_test.go | 2 +- .../tests/gen/completionListInScope_test.go | 2 +- ...pletionListInTemplateLiteralParts1_test.go | 2 +- ...ionListInUnclosedCommaExpression01_test.go | 2 +- ...ionListInUnclosedCommaExpression02_test.go | 2 +- ...completionListInUnclosedFunction08_test.go | 2 +- ...completionListInUnclosedFunction09_test.go | 2 +- ...tionListInUnclosedTaggedTemplate01_test.go | 2 +- ...tionListInUnclosedTaggedTemplate02_test.go | 2 +- ...completionListInUnclosedTemplate01_test.go | 2 +- ...completionListInUnclosedTemplate02_test.go | 2 +- .../completionListInvalidMemberNames2_test.go | 2 +- ...ListInvalidMemberNames_escapeQuote_test.go | 2 +- ...tInvalidMemberNames_startWithSpace_test.go | 2 +- .../completionListInvalidMemberNames_test.go | 2 +- ...MemberNames_withExistingIdentifier_test.go | 2 +- ...ectMembersInTypeLocationWithTypeof_test.go | 2 +- .../gen/completionListOfGenericSymbol_test.go | 2 +- .../tests/gen/completionListOnAliases_test.go | 2 +- ...nListStringParenthesizedExpression_test.go | 2 +- ...pletionListStringParenthesizedType_test.go | 2 +- ...tionListWithoutVariableinitializer_test.go | 2 +- ...teralTypeAsIndexedAccessTypeObject_test.go | 2 +- ...tionNoAutoInsertQuestionDotForThis_test.go | 2 +- ...oInsertQuestionDotForTypeParameter_test.go | 2 +- ...tQuestionDotWithUserPreferencesOff_test.go | 2 +- .../gen/completionOfAwaitPromise1_test.go | 2 +- .../gen/completionOfAwaitPromise2_test.go | 2 +- .../gen/completionOfAwaitPromise3_test.go | 2 +- .../gen/completionOfAwaitPromise5_test.go | 2 +- .../gen/completionOfAwaitPromise6_test.go | 2 +- .../gen/completionOfAwaitPromise7_test.go | 2 +- .../gen/completionOfInterfaceAndVar_test.go | 2 +- .../completionPreferredSuggestions1_test.go | 2 +- ...ithConditionalOperatorMissingColon_test.go | 2 +- .../tests/gen/completionsAfterJSDoc_test.go | 2 +- .../gen/completionsBeforeRestArg1_test.go | 2 +- .../completionsElementAccessNumeric_test.go | 2 +- .../tests/gen/completionsExportImport_test.go | 2 +- ...tionsGenericTypeWithMultipleBases1_test.go | 2 +- ...completionsImportOrExportSpecifier_test.go | 2 +- .../completionsInExport_moduleBlock_test.go | 2 +- .../tests/gen/completionsInExport_test.go | 2 +- .../tests/gen/completionsInRequire_test.go | 2 +- ...TagAttributesEmptyModuleSpecifier1_test.go | 2 +- ...TagAttributesErrorModuleSpecifier1_test.go | 2 +- ...SDocImportTagEmptyModuleSpecifier1_test.go | 2 +- .../gen/completionsJSDocNoCrash1_test.go | 2 +- .../gen/completionsJsdocTypeTagCast_test.go | 2 +- .../gen/completionsJsxAttribute2_test.go | 2 +- ...ompletionsJsxAttributeInitializer2_test.go | 2 +- ...alFromInferenceWithinInferredType3_test.go | 2 +- .../tests/gen/completionsLiterals_test.go | 2 +- .../completionsMergedDeclarations1_test.go | 2 +- .../tests/gen/completionsNewTarget_test.go | 2 +- .../gen/completionsOptionalMethod_test.go | 2 +- .../gen/completionsOverridingMethod10_test.go | 2 +- .../gen/completionsOverridingMethod11_test.go | 2 +- .../gen/completionsOverridingMethod14_test.go | 2 +- .../gen/completionsOverridingMethod17_test.go | 2 +- .../gen/completionsOverridingMethod1_test.go | 2 +- .../gen/completionsOverridingMethod3_test.go | 2 +- .../gen/completionsOverridingMethod4_test.go | 2 +- .../gen/completionsOverridingMethod9_test.go | 2 +- .../completionsOverridingMethodCrash1_test.go | 2 +- .../completionsOverridingProperties1_test.go | 2 +- .../gen/completionsPathsJsonModule_test.go | 2 +- ...completionsPathsRelativeJsonModule_test.go | 2 +- .../gen/completionsPaths_importType_test.go | 2 +- .../tests/gen/completionsPaths_kinds_test.go | 2 +- ...s_pathMapping_nonTrailingWildcard1_test.go | 2 +- ...sPaths_pathMapping_parentDirectory_test.go | 2 +- .../gen/completionsPaths_pathMapping_test.go | 2 +- .../gen/completionsRecommended_union_test.go | 2 +- ...completionsRedeclareModuleAsGlobal_test.go | 2 +- ...letionsStringsWithTriggerCharacter_test.go | 2 +- .../gen/completionsSymbolMembers_test.go | 2 +- .../gen/completionsTriggerCharacter_test.go | 2 +- .../tests/gen/completionsTuple_test.go | 2 +- .../gen/completionsUniqueSymbol1_test.go | 2 +- ...onstEnumQuickInfoAndCompletionList_test.go | 2 +- .../constQuickInfoAndCompletionList_test.go | 2 +- ...llyTypedFunctionExpressionGeneric1_test.go | 2 +- .../gen/doubleUnderscoreCompletions_test.go | 2 +- .../fourslash/tests/gen/editJsdocType_test.go | 2 +- .../tests/gen/exportDefaultClass_test.go | 2 +- .../tests/gen/exportDefaultFunction_test.go | 2 +- .../findAllReferencesDynamicImport1_test.go | 2 +- .../gen/findAllReferencesTripleSlash_test.go | 2 +- ...llReferencesUmdModuleAsGlobalConst_test.go | 2 +- .../gen/findAllRefsCommonJsRequire2_test.go | 2 +- .../gen/findAllRefsCommonJsRequire3_test.go | 2 +- .../gen/findAllRefsCommonJsRequire_test.go | 2 +- .../tests/gen/findAllRefsExportEquals_test.go | 2 +- .../gen/findAllRefsForDefaultExport03_test.go | 2 +- .../gen/findAllRefsModuleDotExports_test.go | 2 +- .../gen/findAllRefsReExport_broken_test.go | 2 +- ...encesBindingPatternInJsdocNoCrash1_test.go | 2 +- ...encesBindingPatternInJsdocNoCrash2_test.go | 2 +- ...nfoOnElementAccessInWriteLocation2_test.go | 2 +- ...nfoOnElementAccessInWriteLocation3_test.go | 2 +- ...nfoOnElementAccessInWriteLocation4_test.go | 2 +- ...nfoOnElementAccessInWriteLocation5_test.go | 2 +- .../tests/gen/quickInfoOnErrorTypes1_test.go | 2 +- ...opertyReturnedFromGenericFunction1_test.go | 2 +- ...opertyReturnedFromGenericFunction2_test.go | 2 +- ...opertyReturnedFromGenericFunction3_test.go | 2 +- ...quickInfoOnGenericWithConstraints1_test.go | 2 +- .../gen/quickInfoOnInternalAliases_test.go | 2 +- .../quickInfoOnMethodOfImportEquals_test.go | 2 +- .../quickInfoOnNarrowedTypeInModule_test.go | 2 +- .../tests/gen/quickInfoOnNarrowedType_test.go | 2 +- .../tests/gen/quickInfoOnNewKeyword01_test.go | 2 +- ...ckInfoOnObjectLiteralWithAccessors_test.go | 2 +- ...kInfoOnObjectLiteralWithOnlyGetter_test.go | 2 +- ...kInfoOnObjectLiteralWithOnlySetter_test.go | 2 +- ...gIndexSignatureOnInterfaceWithBase_test.go | 2 +- ...foOnPropertyAccessInWriteLocation1_test.go | 2 +- ...foOnPropertyAccessInWriteLocation2_test.go | 2 +- ...foOnPropertyAccessInWriteLocation3_test.go | 2 +- ...foOnPropertyAccessInWriteLocation4_test.go | 2 +- ...foOnPropertyAccessInWriteLocation5_test.go | 2 +- .../tests/gen/quickInfoOnThis2_test.go | 2 +- .../tests/gen/quickInfoOnThis3_test.go | 2 +- .../tests/gen/quickInfoOnThis4_test.go | 2 +- .../tests/gen/quickInfoOnThis_test.go | 2 +- .../tests/gen/quickInfoOnUndefined_test.go | 2 +- .../quickInfoOnVarInArrowExpression_test.go | 2 +- ...eIdentifierInTypeReferenceNoCrash1_test.go | 2 +- .../tests/gen/quickInfoPropertyTag_test.go | 2 +- ...gnatureOptionalParameterFromUnion1_test.go | 2 +- ...foSignatureRestParameterFromUnion1_test.go | 2 +- ...foSignatureRestParameterFromUnion2_test.go | 2 +- ...foSignatureRestParameterFromUnion3_test.go | 2 +- ...foSignatureRestParameterFromUnion4_test.go | 2 +- ...quickInfoSpecialPropertyAssignment_test.go | 2 +- ...InfoStaticPrototypePropertyOnClass_test.go | 2 +- .../tests/gen/quickInfoTemplateTag_test.go | 2 +- ...nfoTypeAliasDefinedInDifferentFile_test.go | 2 +- .../tests/gen/quickInfoTypeError_test.go | 2 +- .../gen/quickInfoTypeOfThisInStatics_test.go | 2 +- ...quickInfoTypeOnlyNamespaceAndClass_test.go | 2 +- .../gen/quickInfoUnionOfNamespaces_test.go | 2 +- .../gen/quickInfoUnion_discriminated_test.go | 2 +- .../tests/gen/quickInfoWidenedTypes_test.go | 2 +- .../gen/referencesForExportedValues_test.go | 2 +- .../referencesForStatementKeywords_test.go | 2 +- .../tests/gen/referencesInComment_test.go | 2 +- .../tests/gen/referencesInEmptyFile_test.go | 2 +- ...cesIsAvailableThroughGlobalNoCrash_test.go | 2 +- .../tests/gen/regexDetection_test.go | 2 +- .../gen/reverseMappedTypeQuickInfo_test.go | 2 +- .../gen/selfReferencedExternalModule_test.go | 2 +- ...gnatureHelpInferenceJsDocImportTag_test.go | 2 +- ...CompletionsImportOrExportSpecifier_test.go | 2 +- .../gen/stringCompletionsVsEscaping_test.go | 2 +- ...heticImportFromBabelGeneratedFile1_test.go | 2 +- ...heticImportFromBabelGeneratedFile2_test.go | 2 +- .../tests/gen/thisBindingInLambda_test.go | 2 +- .../thisPredicateFunctionQuickInfo01_test.go | 2 +- .../thisPredicateFunctionQuickInfo02_test.go | 2 +- ...lashRefPathCompletionAbsolutePaths_test.go | 2 +- ...ripleSlashRefPathCompletionContext_test.go | 2 +- ...thCompletionExtensionsAllowJSFalse_test.go | 2 +- ...athCompletionExtensionsAllowJSTrue_test.go | 2 +- ...leSlashRefPathCompletionHiddenFile_test.go | 2 +- ...ipleSlashRefPathCompletionRootdirs_test.go | 2 +- ...eferencesOnRuntimeImportWithPaths1_test.go | 2 +- .../tests/gen/tsxCompletion12_test.go | 2 +- .../tests/gen/tsxCompletion13_test.go | 2 +- .../tests/gen/tsxCompletion14_test.go | 2 +- .../tests/gen/tsxCompletion15_test.go | 2 +- .../fourslash/tests/gen/tsxQuickInfo6_test.go | 2 +- .../fourslash/tests/gen/tsxQuickInfo7_test.go | 2 +- .../gen/typeOperatorNodeBuilding_test.go | 2 +- 259 files changed, 516 insertions(+), 258 deletions(-) diff --git a/internal/fourslash/_scripts/failingTests.txt b/internal/fourslash/_scripts/failingTests.txt index 1f40f97f43..07bab926d1 100644 --- a/internal/fourslash/_scripts/failingTests.txt +++ b/internal/fourslash/_scripts/failingTests.txt @@ -1,5 +1,187 @@ +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 +TestCompletionForStringLiteral_quotePreference1 +TestCompletionForStringLiteral_quotePreference2 +TestCompletionForStringLiteral_quotePreference3 +TestCompletionForStringLiteral_quotePreference4 +TestCompletionForStringLiteral_quotePreference5 +TestCompletionForStringLiteral_quotePreference6 +TestCompletionForStringLiteral_quotePreference7 +TestCompletionForStringLiteral_quotePreference8 +TestCompletionImportMeta +TestCompletionImportMetaWithGlobalDeclaration +TestCompletionImportModuleSpecifierEndingDts +TestCompletionImportModuleSpecifierEndingJs +TestCompletionImportModuleSpecifierEndingJsx +TestCompletionImportModuleSpecifierEndingTs +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 @@ -204,6 +386,52 @@ TestQuickInfoOnArgumentsInsideFunction TestQuickInfoOnCatchVariable TestQuickInfoOnClosingJsx TestQuickInfoOnElementAccessInWriteLocation1 +TestQuickInfoOnElementAccessInWriteLocation2 +TestQuickInfoOnElementAccessInWriteLocation3 +TestQuickInfoOnElementAccessInWriteLocation4 +TestQuickInfoOnElementAccessInWriteLocation5 +TestQuickInfoOnErrorTypes1 +TestQuickInfoOnFunctionPropertyReturnedFromGenericFunction1 +TestQuickInfoOnFunctionPropertyReturnedFromGenericFunction2 +TestQuickInfoOnFunctionPropertyReturnedFromGenericFunction3 +TestQuickInfoOnGenericWithConstraints1 +TestQuickInfoOnInternalAliases +TestQuickInfoOnMethodOfImportEquals +TestQuickInfoOnNarrowedType +TestQuickInfoOnNarrowedTypeInModule +TestQuickInfoOnNewKeyword01 +TestQuickInfoOnObjectLiteralWithAccessors +TestQuickInfoOnObjectLiteralWithOnlyGetter +TestQuickInfoOnObjectLiteralWithOnlySetter +TestQuickInfoOnPropDeclaredUsingIndexSignatureOnInterfaceWithBase +TestQuickInfoOnPropertyAccessInWriteLocation1 +TestQuickInfoOnPropertyAccessInWriteLocation2 +TestQuickInfoOnPropertyAccessInWriteLocation3 +TestQuickInfoOnPropertyAccessInWriteLocation4 +TestQuickInfoOnPropertyAccessInWriteLocation5 +TestQuickInfoOnThis +TestQuickInfoOnThis2 +TestQuickInfoOnThis3 +TestQuickInfoOnThis4 +TestQuickInfoOnUndefined +TestQuickInfoOnVarInArrowExpression +TestQuickInfoPrivateIdentifierInTypeReferenceNoCrash1 +TestQuickInfoPropertyTag +TestQuickInfoSignatureOptionalParameterFromUnion1 +TestQuickInfoSignatureRestParameterFromUnion1 +TestQuickInfoSignatureRestParameterFromUnion2 +TestQuickInfoSignatureRestParameterFromUnion3 +TestQuickInfoSignatureRestParameterFromUnion4 +TestQuickInfoSpecialPropertyAssignment +TestQuickInfoStaticPrototypePropertyOnClass +TestQuickInfoTemplateTag +TestQuickInfoTypeAliasDefinedInDifferentFile +TestQuickInfoTypeError +TestQuickInfoTypeOfThisInStatics +TestQuickInfoTypeOnlyNamespaceAndClass +TestQuickInfoUnionOfNamespaces +TestQuickInfoUnion_discriminated +TestQuickInfoWidenedTypes TestQuickInfo_notInsideComment TestQuickInforForSucessiveInferencesIsNotAny TestQuickinfo01 @@ -211,8 +439,38 @@ TestQuickinfoForNamespaceMergeWithClassConstrainedToSelf TestQuickinfoForUnionProperty TestQuickinfoWrongComment TestRecursiveInternalModuleImport +TestReferencesForExportedValues +TestReferencesForStatementKeywords +TestReferencesInComment +TestReferencesInEmptyFile +TestReferencesIsAvailableThroughGlobalNoCrash +TestRegexDetection +TestReverseMappedTypeQuickInfo +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/tests/gen/aliasMergingWithNamespace_test.go b/internal/fourslash/tests/gen/aliasMergingWithNamespace_test.go index 5196e20078..b38840791d 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 56409953ac..7a10acdd9b 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 5caccd4e7c..175d760193 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 6ac3a9cf89..11181c4d14 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 6a5909e70c..b174b8a634 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 c12fa7bd19..0a2e938eaf 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 ebfd6f13ff..1b31cbf1be 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 fc672b718b..5af9c9e0f3 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 9bfacc1e56..9e26b5b83a 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 8cd314bc79..ff30730fb5 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 cf7951ec82..612e345184 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 829e2937a5..ed22ede6ad 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 1cdf7b3951..a318eaffa3 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 dd7336a414..a8146ff609 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 c846508d80..59c64874e6 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 a38763f77d..81cb4b2703 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 48dc4e5f44..9af26b073c 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 676b002578..3f67b274df 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 f4975f24da..adb552f595 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 53750901f4..a6a96c05d9 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 e648a2b101..c19346f4cf 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 ae7be824d2..42f572e321 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 b3e7b72d6e..857612b30c 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 fa63e76289..075993c1af 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 c1095459ec..6e4b706f39 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 9114e9d083..2a26617b2b 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 50819814e9..6405413f45 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 d7d84bcb37..5306b01f1f 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 5bb95c0151..63431a754e 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 78560319ae..be55991de2 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 1efae761d6..6654e0fbf7 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 61288e675d..ed0b8172af 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 7997f5cd5a..532fa9162f 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 0d47ae5adc..fff8c8351e 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 a86bfeed94..e93de4e785 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport4_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport4_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralNonrelativeImport4(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: dir1/dir2/dir3/dir4/test0.ts import * as foo1 from "f/*import_as0*/ diff --git a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport7_test.go b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport7_test.go index 5c6740e18f..59b0088b59 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport7_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport7_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralNonrelativeImport7(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @baseUrl: tests/cases/fourslash/modules // @Filename: tests/test0.ts diff --git a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport8_test.go b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImport8_test.go index f504938418..33b9c43475 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 b065e93089..37ce385670 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 908744482b..8fb1a2e5e2 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings1_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings1_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralNonrelativeImportTypings1(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @typeRoots: my_typings,my_other_typings // @Filename: tests/test0.ts diff --git a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings2_test.go b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings2_test.go index 212ba99e46..c223cdcb2d 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings2_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings2_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralNonrelativeImportTypings2(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @typeRoots: my_typings,my_other_typings // @types: module-x,module-z diff --git a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings3_test.go b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings3_test.go index aaf5ca5b6e..dff2951481 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings3_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings3_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralNonrelativeImportTypings3(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: subdirectory/test0.ts /// diff --git a/internal/fourslash/tests/gen/completionForStringLiteralRelativeImport4_test.go b/internal/fourslash/tests/gen/completionForStringLiteralRelativeImport4_test.go index 1cae7ca821..0ba6a1cc31 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/completionForStringLiteralRelativeImport6_test.go b/internal/fourslash/tests/gen/completionForStringLiteralRelativeImport6_test.go index bd302839bd..48fb46fd22 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralRelativeImport6_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralRelativeImport6_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionForStringLiteralRelativeImport6(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @rootDirs: /repo/src1,/repo/src2/,/repo/generated1,/repo/generated2/ // @Filename: /repo/src1/test1.ts diff --git a/internal/fourslash/tests/gen/completionForStringLiteralRelativeImportAllowJSTrue_test.go b/internal/fourslash/tests/gen/completionForStringLiteralRelativeImportAllowJSTrue_test.go index 5e236af93d..8728e914e2 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/completionForStringLiteralWithDynamicImport_test.go b/internal/fourslash/tests/gen/completionForStringLiteralWithDynamicImport_test.go index 278e3c3f80..4308ca2f9a 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteralWithDynamicImport_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteralWithDynamicImport_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForStringLiteralWithDynamicImport(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/completionForStringLiteral_details_test.go b/internal/fourslash/tests/gen/completionForStringLiteral_details_test.go index 9f114d53f5..1a175d7815 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteral_details_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteral_details_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForStringLiteral_details(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /other.ts export const x = 0; diff --git a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference1_test.go b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference1_test.go index 07f9820f94..2604468676 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference1_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference1_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForStringLiteral_quotePreference1(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum A { A, diff --git a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference2_test.go b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference2_test.go index f381a5f7e4..6cddb608ce 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference2_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference2_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForStringLiteral_quotePreference2(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const a = { '#': 'a' diff --git a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference3_test.go b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference3_test.go index 9c9c66750a..d40b892eb9 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference3_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference3_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForStringLiteral_quotePreference3(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const a = { "#": "a" diff --git a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference4_test.go b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference4_test.go index 43cba0c558..50cbe55a1d 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference4_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference4_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForStringLiteral_quotePreference4(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type T = 0 | 1; const t: T = /**/` diff --git a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference5_test.go b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference5_test.go index dad0353919..27c67d8879 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference5_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference5_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForStringLiteral_quotePreference5(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type T = "0" | "1"; const t: T = /**/` diff --git a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference6_test.go b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference6_test.go index a78245ffa8..7eab3cd6ba 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference6_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference6_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForStringLiteral_quotePreference6(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type T = "0" | "1"; const t: T = /**/` diff --git a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference7_test.go b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference7_test.go index 65f4d329f8..6e08831520 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference7_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference7_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForStringLiteral_quotePreference7(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: /a.ts export const a = null; diff --git a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference8_test.go b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference8_test.go index b1dd8d4943..401d960ae5 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference8_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference8_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForStringLiteral_quotePreference8(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: /a.ts export const a = null; diff --git a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference_test.go b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference_test.go index fabc985d64..b5bcf86cab 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteral_quotePreference_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForStringLiteral_quotePreference(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum A { A, diff --git a/internal/fourslash/tests/gen/completionForStringLiteral_test.go b/internal/fourslash/tests/gen/completionForStringLiteral_test.go index 662d86cf7d..68135b8972 100644 --- a/internal/fourslash/tests/gen/completionForStringLiteral_test.go +++ b/internal/fourslash/tests/gen/completionForStringLiteral_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionForStringLiteral(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type Options = "Option 1" | "Option 2" | "Option 3"; var x: Options = "[|/*1*/Option 3|]"; diff --git a/internal/fourslash/tests/gen/completionImportMetaWithGlobalDeclaration_test.go b/internal/fourslash/tests/gen/completionImportMetaWithGlobalDeclaration_test.go index 40ca90708e..51c8d55506 100644 --- a/internal/fourslash/tests/gen/completionImportMetaWithGlobalDeclaration_test.go +++ b/internal/fourslash/tests/gen/completionImportMetaWithGlobalDeclaration_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionImportMetaWithGlobalDeclaration(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts import./*1*/ diff --git a/internal/fourslash/tests/gen/completionImportMeta_test.go b/internal/fourslash/tests/gen/completionImportMeta_test.go index 89be29f50f..b7bcf9170d 100644 --- a/internal/fourslash/tests/gen/completionImportMeta_test.go +++ b/internal/fourslash/tests/gen/completionImportMeta_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionImportMeta(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts import./*1*/ diff --git a/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingDts_test.go b/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingDts_test.go index b5b4adfd84..bc6fe71cd7 100644 --- a/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingDts_test.go +++ b/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingDts_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionImportModuleSpecifierEndingDts(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename:test.d.ts export declare class Test {} diff --git a/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingJs_test.go b/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingJs_test.go index 7fe92501d5..a66599c046 100644 --- a/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingJs_test.go +++ b/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingJs_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionImportModuleSpecifierEndingJs(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@allowJs: true //@Filename:test.js diff --git a/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingJsx_test.go b/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingJsx_test.go index a902c902c8..8f6326ef60 100644 --- a/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingJsx_test.go +++ b/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingJsx_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionImportModuleSpecifierEndingJsx(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@allowJs: true //@jsx:preserve diff --git a/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingTs_test.go b/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingTs_test.go index 45e1755027..e1b40cbcae 100644 --- a/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingTs_test.go +++ b/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingTs_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionImportModuleSpecifierEndingTs(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename:test.ts export function f(){ diff --git a/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingTsxPreserve_test.go b/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingTsxPreserve_test.go index fe326b7038..dbf83d5b2e 100644 --- a/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingTsxPreserve_test.go +++ b/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingTsxPreserve_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionImportModuleSpecifierEndingTsxPreserve(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@jsx:preserve //@Filename:test.tsx diff --git a/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingTsxReact_test.go b/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingTsxReact_test.go index f87f3a7241..1fdc6341e9 100644 --- a/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingTsxReact_test.go +++ b/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingTsxReact_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionImportModuleSpecifierEndingTsxReact(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@jsx:react //@Filename:test.tsx diff --git a/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingUnsupportedExtension_test.go b/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingUnsupportedExtension_test.go index b4da7f16ae..829acfa57b 100644 --- a/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingUnsupportedExtension_test.go +++ b/internal/fourslash/tests/gen/completionImportModuleSpecifierEndingUnsupportedExtension_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionImportModuleSpecifierEndingUnsupportedExtension(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename:index.css body {} diff --git a/internal/fourslash/tests/gen/completionInFunctionLikeBody_includesPrimitiveTypes_test.go b/internal/fourslash/tests/gen/completionInFunctionLikeBody_includesPrimitiveTypes_test.go index deed812e4d..1b22e2deab 100644 --- a/internal/fourslash/tests/gen/completionInFunctionLikeBody_includesPrimitiveTypes_test.go +++ b/internal/fourslash/tests/gen/completionInFunctionLikeBody_includesPrimitiveTypes_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionInFunctionLikeBody_includesPrimitiveTypes(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { } class Bar { } diff --git a/internal/fourslash/tests/gen/completionInJsDoc_test.go b/internal/fourslash/tests/gen/completionInJsDoc_test.go index 9ff833eb6b..d950da13fe 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/completionInNamedImportLocation_test.go b/internal/fourslash/tests/gen/completionInNamedImportLocation_test.go index dd636cca8b..70e23f84fa 100644 --- a/internal/fourslash/tests/gen/completionInNamedImportLocation_test.go +++ b/internal/fourslash/tests/gen/completionInNamedImportLocation_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionInNamedImportLocation(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: file.ts export var x = 10; diff --git a/internal/fourslash/tests/gen/completionInUncheckedJSFile_test.go b/internal/fourslash/tests/gen/completionInUncheckedJSFile_test.go index fa15853b57..2e5181b592 100644 --- a/internal/fourslash/tests/gen/completionInUncheckedJSFile_test.go +++ b/internal/fourslash/tests/gen/completionInUncheckedJSFile_test.go @@ -12,7 +12,7 @@ import ( func TestCompletionInUncheckedJSFile(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: false diff --git a/internal/fourslash/tests/gen/completionListBuilderLocations_VariableDeclarations_test.go b/internal/fourslash/tests/gen/completionListBuilderLocations_VariableDeclarations_test.go index 751f782ea8..5f1b2f3b13 100644 --- a/internal/fourslash/tests/gen/completionListBuilderLocations_VariableDeclarations_test.go +++ b/internal/fourslash/tests/gen/completionListBuilderLocations_VariableDeclarations_test.go @@ -10,7 +10,7 @@ import ( func TestCompletionListBuilderLocations_VariableDeclarations(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = a/*var1*/ var x = (b/*var2*/ diff --git a/internal/fourslash/tests/gen/completionListForDerivedType1_test.go b/internal/fourslash/tests/gen/completionListForDerivedType1_test.go index f0d3102487..3121c2f843 100644 --- a/internal/fourslash/tests/gen/completionListForDerivedType1_test.go +++ b/internal/fourslash/tests/gen/completionListForDerivedType1_test.go @@ -11,7 +11,7 @@ import ( func TestCompletionListForDerivedType1(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IFoo { bar(): IFoo; diff --git a/internal/fourslash/tests/gen/completionListForTransitivelyExportedMembers04_test.go b/internal/fourslash/tests/gen/completionListForTransitivelyExportedMembers04_test.go index 5c1dab3bbc..0061cd86a6 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 42eab47d18..3c565122dc 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 a44baf4fab..eeb8aadebc 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 4ba5290dc1..619b5dac68 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 c748898b06..75d647795c 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 f56e53afe9..baf14e33e1 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 8ceacb9b04..554e700ac4 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 13f41c7dab..90ba66acd1 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 70a4440a57..2cea8c1ae6 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 dc2381a2ad..c8d4be0a1b 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 69d414ec92..701974de72 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 4039030b84..f0aaba3c92 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 f65297dc34..73473b3924 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 dc12fdae58..c52b01c29e 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 1197c09688..2485fe2d8a 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 ca9d80adc3..66c9e81b95 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 cf18d935f0..fbcba2df24 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 d957f3f625..c90a707f25 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 06d9dcdd60..04908afb6e 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 62cc4cdf06..276d4df5dc 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 87603d5aac..f2301e6af8 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 b24e0453a2..dd0b8e9cd9 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 6e8c260287..e5126e31e2 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 191a5f879a..1ed896368a 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 13c582caec..b9708d5679 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 42e2eca043..eab3116dfb 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 8615992c5b..4c46aa45a3 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 acd98b9f72..be73e2cb32 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 7c1baea148..18576a0bff 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 444d2214e1..a8ac7e8143 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 6d80024506..dfe3be4531 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 42d71b009b..6139fb09d6 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 edc59246d2..b176ec5cad 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 20454d4f1b..777d57c5dc 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 dbc8799d40..747e2fa254 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 60bbb19607..6b9a72d98f 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 4e1ef0b09a..b1135437c6 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 12df7223ba..bb9c620fe9 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 894cbc3434..d361a19031 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 d9966d1d85..07018c544f 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 ac9cb6ace3..4b5bac1030 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 67cc790e4d..6203ed5289 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 8239734714..b645503f24 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 6434fb0a6b..e6908a7d9f 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 a77c31cfb9..09d9c3bd1d 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 e5840c1312..66d7bc9cfd 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 4cbd459ecb..7412bc8621 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 ea5592de86..0465440b2a 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 1adc6e63e8..002f8cf2c8 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 67841981c8..d62beaee30 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 fe9296a4cd..72168e6fe7 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 51d6ed56ad..26ea57ad8d 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 4154f745d6..99b619bc84 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 3a5ecab875..435602eed9 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 5d766a3da9..70c5f7bdd3 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 76aed69741..32214af99b 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 490f900ffb..4e464bc577 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 cf4a90e2d6..98c319a844 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 08169a9226..ab07b662fc 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 9dc8d9e336..276e43a080 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 47031d3639..5c1423b0d3 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 e5adc2a267..4d1b9fe446 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 a8ad036ebe..22820622d0 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 ae20d7a66b..f7ec0ff34c 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 24fc989f25..35ff071582 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 2fc015bbb3..26cfab4da7 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 d89eaca975..ecda9c3033 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 6e6a13b259..49dc117c7f 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 147238b4df..e90c3f9364 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 7eb83fdc03..7f625ae278 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 e93bcfb957..e478ba42ef 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 622b05691b..b1b1f0fdd3 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 7cd5475348..3c8e600547 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 c21c4d676b..3a8faeab68 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 354a62df3c..e3aaf10920 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 1a9fc15c84..83bde8141e 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 d7f2361259..44dd62a54c 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 cdf879eeb7..862de471de 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 e4d233247d..b713e79f35 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 ea5f523f95..98803f175d 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 2d42458d78..3caae8585e 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 1f5e1c39ea..7895cbadfb 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 f2e881a7fb..0700a9cd69 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 838c529503..18ec54858c 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 7df309a775..57d963fedb 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 72032a3008..4a7b08f7a4 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 bc9261733e..8afe59b05b 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 b37c40af8f..3ba6bc13d8 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 70e41231ee..955ad4d346 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 8209befddd..30715c2859 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 9d81ee87a1..60cb27a1df 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 c536c92c44..ad4ae8523e 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 8d158e3a81..4b99f7f120 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 319953a2cb..ea60e91862 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 782ae6f123..2f12ff22d4 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 7c0c9154ed..edfc26bb81 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 21dcd4121d..465447d642 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 7a9f2862ed..b25a8aa6d3 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 15b1f86be3..8b474c8dc3 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 a6637254e1..a3cbb55949 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 eec32bef82..6c418d4bb6 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 c0a0b67b70..2000320574 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 d8cdf2d191..1e02bacdff 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 5b683392eb..e382ea6594 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 03664fd182..eeb9a85761 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 56070c7f4e..dfee6a23bf 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 85578f9b73..f41ebfe43a 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 97fa6533ec..e2fa622891 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 8584434558..a864f48650 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/findReferencesBindingPatternInJsdocNoCrash1_test.go b/internal/fourslash/tests/gen/findReferencesBindingPatternInJsdocNoCrash1_test.go index 5aceae785e..b219b100e5 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 1ff230f14a..1fcafea499 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/quickInfoOnElementAccessInWriteLocation2_test.go b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation2_test.go index fe809c81ea..70cdd15d45 100644 --- a/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation2_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation2_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnElementAccessInWriteLocation2(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @exactOptionalPropertyTypes: true diff --git a/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation3_test.go b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation3_test.go index 392033b4a3..88d59e414d 100644 --- a/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation3_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation3_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnElementAccessInWriteLocation3(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @exactOptionalPropertyTypes: true diff --git a/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation4_test.go b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation4_test.go index cd40eccd62..6efad423d2 100644 --- a/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation4_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation4_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnElementAccessInWriteLocation4(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface Serializer { diff --git a/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation5_test.go b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation5_test.go index 6a962962fb..18e109dd7d 100644 --- a/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation5_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation5_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnElementAccessInWriteLocation5(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface Serializer { diff --git a/internal/fourslash/tests/gen/quickInfoOnErrorTypes1_test.go b/internal/fourslash/tests/gen/quickInfoOnErrorTypes1_test.go index 0d6a747e02..65eb91b01b 100644 --- a/internal/fourslash/tests/gen/quickInfoOnErrorTypes1_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnErrorTypes1_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnErrorTypes1(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var /*A*/f: { x: number; diff --git a/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction1_test.go b/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction1_test.go index c76e12a576..7784764eb8 100644 --- a/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction1_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction1_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnFunctionPropertyReturnedFromGenericFunction1(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function createProps(t: T) { function getProps() {} diff --git a/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction2_test.go b/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction2_test.go index 8c3998f742..df60ba097f 100644 --- a/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction2_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction2_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnFunctionPropertyReturnedFromGenericFunction2(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function createProps(t: T) { const getProps = function() {} diff --git a/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction3_test.go b/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction3_test.go index d57777412c..f64d4e8699 100644 --- a/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction3_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction3_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnFunctionPropertyReturnedFromGenericFunction3(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function createProps(t: T) { const getProps = () => {} diff --git a/internal/fourslash/tests/gen/quickInfoOnGenericWithConstraints1_test.go b/internal/fourslash/tests/gen/quickInfoOnGenericWithConstraints1_test.go index 2cf890fc23..789d25fafd 100644 --- a/internal/fourslash/tests/gen/quickInfoOnGenericWithConstraints1_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnGenericWithConstraints1_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnGenericWithConstraints1(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Fo/*1*/o {}` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/internal/fourslash/tests/gen/quickInfoOnInternalAliases_test.go b/internal/fourslash/tests/gen/quickInfoOnInternalAliases_test.go index dbf9348311..1fc5359155 100644 --- a/internal/fourslash/tests/gen/quickInfoOnInternalAliases_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnInternalAliases_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnInternalAliases(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** Module comment*/ export module m1 { diff --git a/internal/fourslash/tests/gen/quickInfoOnMethodOfImportEquals_test.go b/internal/fourslash/tests/gen/quickInfoOnMethodOfImportEquals_test.go index 743a7dc7b6..1d8059c708 100644 --- a/internal/fourslash/tests/gen/quickInfoOnMethodOfImportEquals_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnMethodOfImportEquals_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnMethodOfImportEquals(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.d.ts declare class C { diff --git a/internal/fourslash/tests/gen/quickInfoOnNarrowedTypeInModule_test.go b/internal/fourslash/tests/gen/quickInfoOnNarrowedTypeInModule_test.go index c2323d608d..8c0606a8c8 100644 --- a/internal/fourslash/tests/gen/quickInfoOnNarrowedTypeInModule_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnNarrowedTypeInModule_test.go @@ -11,7 +11,7 @@ import ( func TestQuickInfoOnNarrowedTypeInModule(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var strOrNum: string | number; module m { diff --git a/internal/fourslash/tests/gen/quickInfoOnNarrowedType_test.go b/internal/fourslash/tests/gen/quickInfoOnNarrowedType_test.go index 203d4dc986..f917e01054 100644 --- a/internal/fourslash/tests/gen/quickInfoOnNarrowedType_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnNarrowedType_test.go @@ -11,7 +11,7 @@ import ( func TestQuickInfoOnNarrowedType(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strictNullChecks: true function foo(strOrNum: string | number) { diff --git a/internal/fourslash/tests/gen/quickInfoOnNewKeyword01_test.go b/internal/fourslash/tests/gen/quickInfoOnNewKeyword01_test.go index c04fbba1ad..4ceaf672ee 100644 --- a/internal/fourslash/tests/gen/quickInfoOnNewKeyword01_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnNewKeyword01_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnNewKeyword01(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Cat { /** diff --git a/internal/fourslash/tests/gen/quickInfoOnObjectLiteralWithAccessors_test.go b/internal/fourslash/tests/gen/quickInfoOnObjectLiteralWithAccessors_test.go index a95e857a68..41ed420157 100644 --- a/internal/fourslash/tests/gen/quickInfoOnObjectLiteralWithAccessors_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnObjectLiteralWithAccessors_test.go @@ -11,7 +11,7 @@ import ( func TestQuickInfoOnObjectLiteralWithAccessors(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function /*1*/makePoint(x: number) { return { diff --git a/internal/fourslash/tests/gen/quickInfoOnObjectLiteralWithOnlyGetter_test.go b/internal/fourslash/tests/gen/quickInfoOnObjectLiteralWithOnlyGetter_test.go index 8d5e23a81e..b33b85bbaa 100644 --- a/internal/fourslash/tests/gen/quickInfoOnObjectLiteralWithOnlyGetter_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnObjectLiteralWithOnlyGetter_test.go @@ -11,7 +11,7 @@ import ( func TestQuickInfoOnObjectLiteralWithOnlyGetter(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function /*1*/makePoint(x: number) { return { diff --git a/internal/fourslash/tests/gen/quickInfoOnObjectLiteralWithOnlySetter_test.go b/internal/fourslash/tests/gen/quickInfoOnObjectLiteralWithOnlySetter_test.go index 78d6dcf91d..c5d4f3551e 100644 --- a/internal/fourslash/tests/gen/quickInfoOnObjectLiteralWithOnlySetter_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnObjectLiteralWithOnlySetter_test.go @@ -11,7 +11,7 @@ import ( func TestQuickInfoOnObjectLiteralWithOnlySetter(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function /*1*/makePoint(x: number) { return { diff --git a/internal/fourslash/tests/gen/quickInfoOnPropDeclaredUsingIndexSignatureOnInterfaceWithBase_test.go b/internal/fourslash/tests/gen/quickInfoOnPropDeclaredUsingIndexSignatureOnInterfaceWithBase_test.go index 88232b26a6..2a0e4018d1 100644 --- a/internal/fourslash/tests/gen/quickInfoOnPropDeclaredUsingIndexSignatureOnInterfaceWithBase_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnPropDeclaredUsingIndexSignatureOnInterfaceWithBase_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnPropDeclaredUsingIndexSignatureOnInterfaceWithBase(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface P {} interface B extends P { diff --git a/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation1_test.go b/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation1_test.go index b4d4b97928..100b0ca974 100644 --- a/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation1_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation1_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnPropertyAccessInWriteLocation1(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @exactOptionalPropertyTypes: true diff --git a/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation2_test.go b/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation2_test.go index a35fa86f1f..9c3ba28460 100644 --- a/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation2_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation2_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnPropertyAccessInWriteLocation2(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @exactOptionalPropertyTypes: true diff --git a/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation3_test.go b/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation3_test.go index a6f48108e0..3c61b080fe 100644 --- a/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation3_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation3_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnPropertyAccessInWriteLocation3(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @exactOptionalPropertyTypes: true diff --git a/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation4_test.go b/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation4_test.go index 8ead1d1375..c980490445 100644 --- a/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation4_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation4_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnPropertyAccessInWriteLocation4(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface Serializer { diff --git a/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation5_test.go b/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation5_test.go index 059c172156..394240eff3 100644 --- a/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation5_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation5_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnPropertyAccessInWriteLocation5(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface Serializer { diff --git a/internal/fourslash/tests/gen/quickInfoOnThis2_test.go b/internal/fourslash/tests/gen/quickInfoOnThis2_test.go index 99094ea507..326fc0d062 100644 --- a/internal/fourslash/tests/gen/quickInfoOnThis2_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnThis2_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnThis2(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Bar { public explicitThis(this: this) { diff --git a/internal/fourslash/tests/gen/quickInfoOnThis3_test.go b/internal/fourslash/tests/gen/quickInfoOnThis3_test.go index 2bd1150a23..40c4793701 100644 --- a/internal/fourslash/tests/gen/quickInfoOnThis3_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnThis3_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnThis3(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Restricted { n: number; diff --git a/internal/fourslash/tests/gen/quickInfoOnThis4_test.go b/internal/fourslash/tests/gen/quickInfoOnThis4_test.go index 557c60bafb..d0820e0d5b 100644 --- a/internal/fourslash/tests/gen/quickInfoOnThis4_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnThis4_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnThis4(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface ContextualInterface { m: number; diff --git a/internal/fourslash/tests/gen/quickInfoOnThis_test.go b/internal/fourslash/tests/gen/quickInfoOnThis_test.go index ad489f1635..207b2dddff 100644 --- a/internal/fourslash/tests/gen/quickInfoOnThis_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnThis_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnThis(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Restricted { n: number; diff --git a/internal/fourslash/tests/gen/quickInfoOnUndefined_test.go b/internal/fourslash/tests/gen/quickInfoOnUndefined_test.go index fc975cbc54..5c1beb6b0d 100644 --- a/internal/fourslash/tests/gen/quickInfoOnUndefined_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnUndefined_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnUndefined(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(a: string) { } diff --git a/internal/fourslash/tests/gen/quickInfoOnVarInArrowExpression_test.go b/internal/fourslash/tests/gen/quickInfoOnVarInArrowExpression_test.go index b888df96e2..afbd52b1d2 100644 --- a/internal/fourslash/tests/gen/quickInfoOnVarInArrowExpression_test.go +++ b/internal/fourslash/tests/gen/quickInfoOnVarInArrowExpression_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoOnVarInArrowExpression(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IMap { [key: string]: T; diff --git a/internal/fourslash/tests/gen/quickInfoPrivateIdentifierInTypeReferenceNoCrash1_test.go b/internal/fourslash/tests/gen/quickInfoPrivateIdentifierInTypeReferenceNoCrash1_test.go index 7195b2add0..d0620ca05b 100644 --- a/internal/fourslash/tests/gen/quickInfoPrivateIdentifierInTypeReferenceNoCrash1_test.go +++ b/internal/fourslash/tests/gen/quickInfoPrivateIdentifierInTypeReferenceNoCrash1_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoPrivateIdentifierInTypeReferenceNoCrash1(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/quickInfoPropertyTag_test.go b/internal/fourslash/tests/gen/quickInfoPropertyTag_test.go index bf16d3fc66..820d1bdc85 100644 --- a/internal/fourslash/tests/gen/quickInfoPropertyTag_test.go +++ b/internal/fourslash/tests/gen/quickInfoPropertyTag_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoPropertyTag(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/quickInfoSignatureOptionalParameterFromUnion1_test.go b/internal/fourslash/tests/gen/quickInfoSignatureOptionalParameterFromUnion1_test.go index 33d81aa485..b90cdd99ad 100644 --- a/internal/fourslash/tests/gen/quickInfoSignatureOptionalParameterFromUnion1_test.go +++ b/internal/fourslash/tests/gen/quickInfoSignatureOptionalParameterFromUnion1_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoSignatureOptionalParameterFromUnion1(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const optionals: | ((a?: { a: true }) => unknown) diff --git a/internal/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion1_test.go b/internal/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion1_test.go index 988c40901e..172e24f6dd 100644 --- a/internal/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion1_test.go +++ b/internal/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion1_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoSignatureRestParameterFromUnion1(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const rest: | ((v: { a: true }, ...rest: string[]) => unknown) diff --git a/internal/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion2_test.go b/internal/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion2_test.go index 2169b9be5d..cb22e96efe 100644 --- a/internal/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion2_test.go +++ b/internal/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion2_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoSignatureRestParameterFromUnion2(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const rest: | ((a?: { a: true }, ...rest: string[]) => unknown) diff --git a/internal/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion3_test.go b/internal/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion3_test.go index 26a1bb851f..ccadaf39f5 100644 --- a/internal/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion3_test.go +++ b/internal/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion3_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoSignatureRestParameterFromUnion3(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const fn: | ((a: { x: number }, b: { x: number }) => number) diff --git a/internal/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion4_test.go b/internal/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion4_test.go index 7c3d00969a..732079c1df 100644 --- a/internal/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion4_test.go +++ b/internal/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion4_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoSignatureRestParameterFromUnion4(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const fn: | ((a?: { x: number }, b?: { x: number }) => number) diff --git a/internal/fourslash/tests/gen/quickInfoSpecialPropertyAssignment_test.go b/internal/fourslash/tests/gen/quickInfoSpecialPropertyAssignment_test.go index 4565294979..f86aa5d8c5 100644 --- a/internal/fourslash/tests/gen/quickInfoSpecialPropertyAssignment_test.go +++ b/internal/fourslash/tests/gen/quickInfoSpecialPropertyAssignment_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoSpecialPropertyAssignment(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/quickInfoStaticPrototypePropertyOnClass_test.go b/internal/fourslash/tests/gen/quickInfoStaticPrototypePropertyOnClass_test.go index 2ab03ab2e5..e3d47b622b 100644 --- a/internal/fourslash/tests/gen/quickInfoStaticPrototypePropertyOnClass_test.go +++ b/internal/fourslash/tests/gen/quickInfoStaticPrototypePropertyOnClass_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoStaticPrototypePropertyOnClass(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class c1 { } diff --git a/internal/fourslash/tests/gen/quickInfoTemplateTag_test.go b/internal/fourslash/tests/gen/quickInfoTemplateTag_test.go index 25d6efc03e..064af87564 100644 --- a/internal/fourslash/tests/gen/quickInfoTemplateTag_test.go +++ b/internal/fourslash/tests/gen/quickInfoTemplateTag_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoTemplateTag(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/quickInfoTypeAliasDefinedInDifferentFile_test.go b/internal/fourslash/tests/gen/quickInfoTypeAliasDefinedInDifferentFile_test.go index 0b2e3e5ff5..5c0c99dfd3 100644 --- a/internal/fourslash/tests/gen/quickInfoTypeAliasDefinedInDifferentFile_test.go +++ b/internal/fourslash/tests/gen/quickInfoTypeAliasDefinedInDifferentFile_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoTypeAliasDefinedInDifferentFile(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export type X = { x: number }; diff --git a/internal/fourslash/tests/gen/quickInfoTypeError_test.go b/internal/fourslash/tests/gen/quickInfoTypeError_test.go index 31d02d65f6..24b285395d 100644 --- a/internal/fourslash/tests/gen/quickInfoTypeError_test.go +++ b/internal/fourslash/tests/gen/quickInfoTypeError_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoTypeError(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `foo({ /**/f: function() {}, diff --git a/internal/fourslash/tests/gen/quickInfoTypeOfThisInStatics_test.go b/internal/fourslash/tests/gen/quickInfoTypeOfThisInStatics_test.go index 8be84a90a7..c12da77fb6 100644 --- a/internal/fourslash/tests/gen/quickInfoTypeOfThisInStatics_test.go +++ b/internal/fourslash/tests/gen/quickInfoTypeOfThisInStatics_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoTypeOfThisInStatics(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { static foo() { diff --git a/internal/fourslash/tests/gen/quickInfoTypeOnlyNamespaceAndClass_test.go b/internal/fourslash/tests/gen/quickInfoTypeOnlyNamespaceAndClass_test.go index 177271ab11..4cf71425c3 100644 --- a/internal/fourslash/tests/gen/quickInfoTypeOnlyNamespaceAndClass_test.go +++ b/internal/fourslash/tests/gen/quickInfoTypeOnlyNamespaceAndClass_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoTypeOnlyNamespaceAndClass(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export namespace ns { diff --git a/internal/fourslash/tests/gen/quickInfoUnionOfNamespaces_test.go b/internal/fourslash/tests/gen/quickInfoUnionOfNamespaces_test.go index 15b77d4c39..c1c4808278 100644 --- a/internal/fourslash/tests/gen/quickInfoUnionOfNamespaces_test.go +++ b/internal/fourslash/tests/gen/quickInfoUnionOfNamespaces_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoUnionOfNamespaces(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const x: typeof A | typeof B; x./**/f; diff --git a/internal/fourslash/tests/gen/quickInfoUnion_discriminated_test.go b/internal/fourslash/tests/gen/quickInfoUnion_discriminated_test.go index f4fbac65dc..db39343a15 100644 --- a/internal/fourslash/tests/gen/quickInfoUnion_discriminated_test.go +++ b/internal/fourslash/tests/gen/quickInfoUnion_discriminated_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoUnion_discriminated(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: quickInfoJsDocTags.ts type U = A | B; diff --git a/internal/fourslash/tests/gen/quickInfoWidenedTypes_test.go b/internal/fourslash/tests/gen/quickInfoWidenedTypes_test.go index 76a0ae7179..f55b652cc3 100644 --- a/internal/fourslash/tests/gen/quickInfoWidenedTypes_test.go +++ b/internal/fourslash/tests/gen/quickInfoWidenedTypes_test.go @@ -9,7 +9,7 @@ import ( func TestQuickInfoWidenedTypes(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var /*1*/a = null; // var a: any var /*2*/b = undefined; // var b: any diff --git a/internal/fourslash/tests/gen/referencesForExportedValues_test.go b/internal/fourslash/tests/gen/referencesForExportedValues_test.go index 3398a768ab..dd5c8b12ca 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/referencesForStatementKeywords_test.go b/internal/fourslash/tests/gen/referencesForStatementKeywords_test.go index bde9db9024..fcec2a2070 100644 --- a/internal/fourslash/tests/gen/referencesForStatementKeywords_test.go +++ b/internal/fourslash/tests/gen/referencesForStatementKeywords_test.go @@ -9,7 +9,7 @@ import ( func TestReferencesForStatementKeywords(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: /main.ts // import ... = ... diff --git a/internal/fourslash/tests/gen/referencesInComment_test.go b/internal/fourslash/tests/gen/referencesInComment_test.go index 91e2e6fe2c..307dc29267 100644 --- a/internal/fourslash/tests/gen/referencesInComment_test.go +++ b/internal/fourslash/tests/gen/referencesInComment_test.go @@ -9,7 +9,7 @@ import ( func TestReferencesInComment(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// References to /*1*/foo or b/*2*/ar /* in comments should not find fo/*3*/o or bar/*4*/ */ diff --git a/internal/fourslash/tests/gen/referencesInEmptyFile_test.go b/internal/fourslash/tests/gen/referencesInEmptyFile_test.go index 57bc1bfe21..7afa6fcc96 100644 --- a/internal/fourslash/tests/gen/referencesInEmptyFile_test.go +++ b/internal/fourslash/tests/gen/referencesInEmptyFile_test.go @@ -9,7 +9,7 @@ import ( func TestReferencesInEmptyFile(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/internal/fourslash/tests/gen/referencesIsAvailableThroughGlobalNoCrash_test.go b/internal/fourslash/tests/gen/referencesIsAvailableThroughGlobalNoCrash_test.go index d7f6558e51..0ea3c6e347 100644 --- a/internal/fourslash/tests/gen/referencesIsAvailableThroughGlobalNoCrash_test.go +++ b/internal/fourslash/tests/gen/referencesIsAvailableThroughGlobalNoCrash_test.go @@ -9,7 +9,7 @@ import ( func TestReferencesIsAvailableThroughGlobalNoCrash(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /packages/playwright-core/bundles/utils/node_modules/@types/debug/index.d.ts declare var debug: debug.Debug & { debug: debug.Debug; default: debug.Debug }; diff --git a/internal/fourslash/tests/gen/regexDetection_test.go b/internal/fourslash/tests/gen/regexDetection_test.go index 23105d6182..d2e45c95fb 100644 --- a/internal/fourslash/tests/gen/regexDetection_test.go +++ b/internal/fourslash/tests/gen/regexDetection_test.go @@ -9,7 +9,7 @@ import ( func TestRegexDetection(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = ` /*1*/15 / /*2*/Math.min(61 / /*3*/42, 32 / 15) / /*4*/15;` f := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/internal/fourslash/tests/gen/reverseMappedTypeQuickInfo_test.go b/internal/fourslash/tests/gen/reverseMappedTypeQuickInfo_test.go index a8d3629abd..14d9fa4641 100644 --- a/internal/fourslash/tests/gen/reverseMappedTypeQuickInfo_test.go +++ b/internal/fourslash/tests/gen/reverseMappedTypeQuickInfo_test.go @@ -9,7 +9,7 @@ import ( func TestReverseMappedTypeQuickInfo(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IAction { type: string; diff --git a/internal/fourslash/tests/gen/selfReferencedExternalModule_test.go b/internal/fourslash/tests/gen/selfReferencedExternalModule_test.go index e76b080b75..e2fbaf67e9 100644 --- a/internal/fourslash/tests/gen/selfReferencedExternalModule_test.go +++ b/internal/fourslash/tests/gen/selfReferencedExternalModule_test.go @@ -11,7 +11,7 @@ import ( func TestSelfReferencedExternalModule(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: app.ts export import A = require('./app'); diff --git a/internal/fourslash/tests/gen/signatureHelpInferenceJsDocImportTag_test.go b/internal/fourslash/tests/gen/signatureHelpInferenceJsDocImportTag_test.go index 4c1e13b5d3..6a53358869 100644 --- a/internal/fourslash/tests/gen/signatureHelpInferenceJsDocImportTag_test.go +++ b/internal/fourslash/tests/gen/signatureHelpInferenceJsDocImportTag_test.go @@ -9,7 +9,7 @@ import ( func TestSignatureHelpInferenceJsDocImportTag(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/stringCompletionsImportOrExportSpecifier_test.go b/internal/fourslash/tests/gen/stringCompletionsImportOrExportSpecifier_test.go index aa30a667ee..53cf64bfac 100644 --- a/internal/fourslash/tests/gen/stringCompletionsImportOrExportSpecifier_test.go +++ b/internal/fourslash/tests/gen/stringCompletionsImportOrExportSpecifier_test.go @@ -10,7 +10,7 @@ import ( func TestStringCompletionsImportOrExportSpecifier(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: exports.ts export let foo = 1; diff --git a/internal/fourslash/tests/gen/stringCompletionsVsEscaping_test.go b/internal/fourslash/tests/gen/stringCompletionsVsEscaping_test.go index 23df266492..19708dc3fc 100644 --- a/internal/fourslash/tests/gen/stringCompletionsVsEscaping_test.go +++ b/internal/fourslash/tests/gen/stringCompletionsVsEscaping_test.go @@ -10,7 +10,7 @@ import ( func TestStringCompletionsVsEscaping(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type Value

= ` + "`" + `var(--\\\\, ${P})` + "`" + ` export const value: Value<'one' | 'two'> = "/*1*/" diff --git a/internal/fourslash/tests/gen/syntheticImportFromBabelGeneratedFile1_test.go b/internal/fourslash/tests/gen/syntheticImportFromBabelGeneratedFile1_test.go index 5803e6a895..6291486b2f 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 163571dd7e..c0bb77a861 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 f2c80eb871..85f333fac9 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 2e84d4799f..198ea5e01f 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 4b4d0de345..450bd21e9e 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 4f4dfe8aea..51f1616547 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 /// (...keys: (keyof T)[]) { } From 48b1b769b61915a6c13883ff147e18aa01b97aa5 Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Mon, 18 Aug 2025 18:34:39 -0700 Subject: [PATCH 6/6] Back to panic to fourslash new stuff is reported --- internal/checker/checker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/checker/checker.go b/internal/checker/checker.go index 4a2023c319..d6b0f780e4 100644 --- a/internal/checker/checker.go +++ b/internal/checker/checker.go @@ -15498,7 +15498,7 @@ func (c *Checker) ResolveAlias(symbol *ast.Symbol) (*ast.Symbol, bool) { func (c *Checker) resolveAlias(symbol *ast.Symbol) *ast.Symbol { if symbol.Flags&ast.SymbolFlagsAlias == 0 { - debug.Fail("Should only get alias here") + panic("Should only get alias here") } links := c.aliasSymbolLinks.Get(symbol) if links.aliasTarget == nil {