mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Use explicit extensions for imports within src (#58421)
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
/* Generated file to emulate the ts.BreakpointResolver namespace. */
|
||||
|
||||
export * from "../breakpoints";
|
||||
export * from "../breakpoints.js";
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
/* Generated file to emulate the ts.CallHierarchy namespace. */
|
||||
|
||||
export * from "../callHierarchy";
|
||||
export * from "../callHierarchy.js";
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
/* Generated file to emulate the ts.Completions.StringCompletions namespace. */
|
||||
|
||||
export * from "../stringCompletions";
|
||||
export * from "../stringCompletions.js";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Generated file to emulate the ts.Completions namespace. */
|
||||
|
||||
export * from "../completions";
|
||||
import * as StringCompletions from "./ts.Completions.StringCompletions";
|
||||
export * from "../completions.js";
|
||||
import * as StringCompletions from "./ts.Completions.StringCompletions.js";
|
||||
export { StringCompletions };
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Generated file to emulate the ts.FindAllReferences namespace. */
|
||||
|
||||
export * from "../importTracker";
|
||||
export * from "../findAllReferences";
|
||||
export * from "../importTracker.js";
|
||||
export * from "../findAllReferences.js";
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
/* Generated file to emulate the ts.GoToDefinition namespace. */
|
||||
|
||||
export * from "../goToDefinition";
|
||||
export * from "../goToDefinition.js";
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
/* Generated file to emulate the ts.InlayHints namespace. */
|
||||
|
||||
export * from "../inlayHints";
|
||||
export * from "../inlayHints.js";
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
/* Generated file to emulate the ts.JsDoc namespace. */
|
||||
|
||||
export * from "../jsDoc";
|
||||
export * from "../jsDoc.js";
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
/* Generated file to emulate the ts.NavigateTo namespace. */
|
||||
|
||||
export * from "../navigateTo";
|
||||
export * from "../navigateTo.js";
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
/* Generated file to emulate the ts.NavigationBar namespace. */
|
||||
|
||||
export * from "../navigationBar";
|
||||
export * from "../navigationBar.js";
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
/* Generated file to emulate the ts.OrganizeImports namespace. */
|
||||
|
||||
export * from "../organizeImports";
|
||||
export * from "../organizeImports.js";
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
/* Generated file to emulate the ts.OutliningElementsCollector namespace. */
|
||||
|
||||
export * from "../outliningElementsCollector";
|
||||
export * from "../outliningElementsCollector.js";
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
/* Generated file to emulate the ts.Rename namespace. */
|
||||
|
||||
export * from "../rename";
|
||||
export * from "../rename.js";
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
/* Generated file to emulate the ts.SignatureHelp namespace. */
|
||||
|
||||
export * from "../signatureHelp";
|
||||
export * from "../signatureHelp.js";
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
/* Generated file to emulate the ts.SmartSelectionRange namespace. */
|
||||
|
||||
export * from "../smartSelection";
|
||||
export * from "../smartSelection.js";
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
/* Generated file to emulate the ts.SymbolDisplay namespace. */
|
||||
|
||||
export * from "../symbolDisplay";
|
||||
export * from "../symbolDisplay.js";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Generated file to emulate the ts.classifier namespace. */
|
||||
|
||||
import * as v2020 from "./ts.classifier.v2020";
|
||||
import * as v2020 from "./ts.classifier.v2020.js";
|
||||
export { v2020 };
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
/* Generated file to emulate the ts.classifier.v2020 namespace. */
|
||||
|
||||
export * from "../classifier2020";
|
||||
export * from "../classifier2020.js";
|
||||
|
||||
@@ -1,75 +1,75 @@
|
||||
/* Generated file to emulate the ts.codefix namespace. */
|
||||
|
||||
export * from "../codeFixProvider";
|
||||
export * from "../codefixes/addConvertToUnknownForNonOverlappingTypes";
|
||||
export * from "../codefixes/addEmptyExportDeclaration";
|
||||
export * from "../codefixes/addMissingAsync";
|
||||
export * from "../codefixes/addMissingAwait";
|
||||
export * from "../codefixes/addMissingConst";
|
||||
export * from "../codefixes/addMissingDeclareProperty";
|
||||
export * from "../codefixes/addMissingInvocationForDecorator";
|
||||
export * from "../codefixes/addNameToNamelessParameter";
|
||||
export * from "../codefixes/addOptionalPropertyUndefined";
|
||||
export * from "../codefixes/annotateWithTypeFromJSDoc";
|
||||
export * from "../codefixes/convertFunctionToEs6Class";
|
||||
export * from "../codefixes/convertToAsyncFunction";
|
||||
export * from "../codefixes/convertToEsModule";
|
||||
export * from "../codefixes/correctQualifiedNameToIndexedAccessType";
|
||||
export * from "../codefixes/convertToTypeOnlyExport";
|
||||
export * from "../codefixes/convertToTypeOnlyImport";
|
||||
export * from "../codefixes/convertTypedefToType";
|
||||
export * from "../codefixes/convertLiteralTypeToMappedType";
|
||||
export * from "../codefixes/fixClassIncorrectlyImplementsInterface";
|
||||
export * from "../codefixes/importFixes";
|
||||
export * from "../codefixes/fixAddMissingConstraint";
|
||||
export * from "../codefixes/fixOverrideModifier";
|
||||
export * from "../codefixes/fixNoPropertyAccessFromIndexSignature";
|
||||
export * from "../codefixes/fixImplicitThis";
|
||||
export * from "../codefixes/fixImportNonExportedMember";
|
||||
export * from "../codefixes/fixIncorrectNamedTupleSyntax";
|
||||
export * from "../codefixes/fixSpelling";
|
||||
export * from "../codefixes/returnValueCorrect";
|
||||
export * from "../codefixes/fixAddMissingMember";
|
||||
export * from "../codefixes/fixAddMissingNewOperator";
|
||||
export * from "../codefixes/fixAddMissingParam";
|
||||
export * from "../codefixes/fixCannotFindModule";
|
||||
export * from "../codefixes/fixClassDoesntImplementInheritedAbstractMember";
|
||||
export * from "../codefixes/fixClassSuperMustPrecedeThisAccess";
|
||||
export * from "../codefixes/fixConstructorForDerivedNeedSuperCall";
|
||||
export * from "../codefixes/fixEnableJsxFlag";
|
||||
export * from "../codefixes/fixNaNEquality";
|
||||
export * from "../codefixes/fixModuleAndTargetOptions";
|
||||
export * from "../codefixes/fixPropertyAssignment";
|
||||
export * from "../codefixes/fixExtendsInterfaceBecomesImplements";
|
||||
export * from "../codefixes/fixForgottenThisPropertyAccess";
|
||||
export * from "../codefixes/fixInvalidJsxCharacters";
|
||||
export * from "../codefixes/fixUnmatchedParameter";
|
||||
export * from "../codefixes/fixUnreferenceableDecoratorMetadata";
|
||||
export * from "../codefixes/fixUnusedIdentifier";
|
||||
export * from "../codefixes/fixUnreachableCode";
|
||||
export * from "../codefixes/fixUnusedLabel";
|
||||
export * from "../codefixes/fixJSDocTypes";
|
||||
export * from "../codefixes/fixMissingCallParentheses";
|
||||
export * from "../codefixes/fixMissingTypeAnnotationOnExports";
|
||||
export * from "../codefixes/fixAwaitInSyncFunction";
|
||||
export * from "../codefixes/fixPropertyOverrideAccessor";
|
||||
export * from "../codefixes/inferFromUsage";
|
||||
export * from "../codefixes/fixReturnTypeInAsyncFunction";
|
||||
export * from "../codefixes/disableJsDiagnostics";
|
||||
export * from "../codefixes/helpers";
|
||||
export * from "../codefixes/generateAccessors";
|
||||
export * from "../codefixes/fixInvalidImportSyntax";
|
||||
export * from "../codefixes/fixStrictClassInitialization";
|
||||
export * from "../codefixes/requireInTs";
|
||||
export * from "../codefixes/useDefaultImport";
|
||||
export * from "../codefixes/useBigintLiteral";
|
||||
export * from "../codefixes/fixAddModuleReferTypeMissingTypeof";
|
||||
export * from "../codefixes/wrapJsxInFragment";
|
||||
export * from "../codefixes/wrapDecoratorInParentheses";
|
||||
export * from "../codefixes/convertToMappedObjectType";
|
||||
export * from "../codefixes/removeAccidentalCallParentheses";
|
||||
export * from "../codefixes/removeUnnecessaryAwait";
|
||||
export * from "../codefixes/splitTypeOnlyImport";
|
||||
export * from "../codefixes/convertConstToLet";
|
||||
export * from "../codefixes/fixExpectedComma";
|
||||
export * from "../codefixes/fixAddVoidToPromise";
|
||||
export * from "../codeFixProvider.js";
|
||||
export * from "../codefixes/addConvertToUnknownForNonOverlappingTypes.js";
|
||||
export * from "../codefixes/addEmptyExportDeclaration.js";
|
||||
export * from "../codefixes/addMissingAsync.js";
|
||||
export * from "../codefixes/addMissingAwait.js";
|
||||
export * from "../codefixes/addMissingConst.js";
|
||||
export * from "../codefixes/addMissingDeclareProperty.js";
|
||||
export * from "../codefixes/addMissingInvocationForDecorator.js";
|
||||
export * from "../codefixes/addNameToNamelessParameter.js";
|
||||
export * from "../codefixes/addOptionalPropertyUndefined.js";
|
||||
export * from "../codefixes/annotateWithTypeFromJSDoc.js";
|
||||
export * from "../codefixes/convertFunctionToEs6Class.js";
|
||||
export * from "../codefixes/convertToAsyncFunction.js";
|
||||
export * from "../codefixes/convertToEsModule.js";
|
||||
export * from "../codefixes/correctQualifiedNameToIndexedAccessType.js";
|
||||
export * from "../codefixes/convertToTypeOnlyExport.js";
|
||||
export * from "../codefixes/convertToTypeOnlyImport.js";
|
||||
export * from "../codefixes/convertTypedefToType.js";
|
||||
export * from "../codefixes/convertLiteralTypeToMappedType.js";
|
||||
export * from "../codefixes/fixClassIncorrectlyImplementsInterface.js";
|
||||
export * from "../codefixes/importFixes.js";
|
||||
export * from "../codefixes/fixAddMissingConstraint.js";
|
||||
export * from "../codefixes/fixOverrideModifier.js";
|
||||
export * from "../codefixes/fixNoPropertyAccessFromIndexSignature.js";
|
||||
export * from "../codefixes/fixImplicitThis.js";
|
||||
export * from "../codefixes/fixImportNonExportedMember.js";
|
||||
export * from "../codefixes/fixIncorrectNamedTupleSyntax.js";
|
||||
export * from "../codefixes/fixSpelling.js";
|
||||
export * from "../codefixes/returnValueCorrect.js";
|
||||
export * from "../codefixes/fixAddMissingMember.js";
|
||||
export * from "../codefixes/fixAddMissingNewOperator.js";
|
||||
export * from "../codefixes/fixAddMissingParam.js";
|
||||
export * from "../codefixes/fixCannotFindModule.js";
|
||||
export * from "../codefixes/fixClassDoesntImplementInheritedAbstractMember.js";
|
||||
export * from "../codefixes/fixClassSuperMustPrecedeThisAccess.js";
|
||||
export * from "../codefixes/fixConstructorForDerivedNeedSuperCall.js";
|
||||
export * from "../codefixes/fixEnableJsxFlag.js";
|
||||
export * from "../codefixes/fixNaNEquality.js";
|
||||
export * from "../codefixes/fixModuleAndTargetOptions.js";
|
||||
export * from "../codefixes/fixPropertyAssignment.js";
|
||||
export * from "../codefixes/fixExtendsInterfaceBecomesImplements.js";
|
||||
export * from "../codefixes/fixForgottenThisPropertyAccess.js";
|
||||
export * from "../codefixes/fixInvalidJsxCharacters.js";
|
||||
export * from "../codefixes/fixUnmatchedParameter.js";
|
||||
export * from "../codefixes/fixUnreferenceableDecoratorMetadata.js";
|
||||
export * from "../codefixes/fixUnusedIdentifier.js";
|
||||
export * from "../codefixes/fixUnreachableCode.js";
|
||||
export * from "../codefixes/fixUnusedLabel.js";
|
||||
export * from "../codefixes/fixJSDocTypes.js";
|
||||
export * from "../codefixes/fixMissingCallParentheses.js";
|
||||
export * from "../codefixes/fixMissingTypeAnnotationOnExports.js";
|
||||
export * from "../codefixes/fixAwaitInSyncFunction.js";
|
||||
export * from "../codefixes/fixPropertyOverrideAccessor.js";
|
||||
export * from "../codefixes/inferFromUsage.js";
|
||||
export * from "../codefixes/fixReturnTypeInAsyncFunction.js";
|
||||
export * from "../codefixes/disableJsDiagnostics.js";
|
||||
export * from "../codefixes/helpers.js";
|
||||
export * from "../codefixes/generateAccessors.js";
|
||||
export * from "../codefixes/fixInvalidImportSyntax.js";
|
||||
export * from "../codefixes/fixStrictClassInitialization.js";
|
||||
export * from "../codefixes/requireInTs.js";
|
||||
export * from "../codefixes/useDefaultImport.js";
|
||||
export * from "../codefixes/useBigintLiteral.js";
|
||||
export * from "../codefixes/fixAddModuleReferTypeMissingTypeof.js";
|
||||
export * from "../codefixes/wrapJsxInFragment.js";
|
||||
export * from "../codefixes/wrapDecoratorInParentheses.js";
|
||||
export * from "../codefixes/convertToMappedObjectType.js";
|
||||
export * from "../codefixes/removeAccidentalCallParentheses.js";
|
||||
export * from "../codefixes/removeUnnecessaryAwait.js";
|
||||
export * from "../codefixes/splitTypeOnlyImport.js";
|
||||
export * from "../codefixes/convertConstToLet.js";
|
||||
export * from "../codefixes/fixExpectedComma.js";
|
||||
export * from "../codefixes/fixAddVoidToPromise.js";
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
/* Generated file to emulate the ts.formatting namespace. */
|
||||
|
||||
export * from "../formatting/formattingContext";
|
||||
export * from "../formatting/formattingScanner";
|
||||
export * from "../formatting/rule";
|
||||
export * from "../formatting/rules";
|
||||
export * from "../formatting/rulesMap";
|
||||
export * from "../formatting/formatting";
|
||||
export * from "../formatting/smartIndenter";
|
||||
export * from "../formatting/formattingContext.js";
|
||||
export * from "../formatting/formattingScanner.js";
|
||||
export * from "../formatting/rule.js";
|
||||
export * from "../formatting/rules.js";
|
||||
export * from "../formatting/rulesMap.js";
|
||||
export * from "../formatting/formatting.js";
|
||||
export * from "../formatting/smartIndenter.js";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Generated file to emulate the ts.refactor.addOrRemoveBracesToArrowFunction namespace. */
|
||||
|
||||
export * from "../refactors/convertOverloadListToSingleSignature";
|
||||
export * from "../refactors/addOrRemoveBracesToArrowFunction";
|
||||
export * from "../refactors/convertOverloadListToSingleSignature.js";
|
||||
export * from "../refactors/addOrRemoveBracesToArrowFunction.js";
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
/* Generated file to emulate the ts.refactor.convertArrowFunctionOrFunctionExpression namespace. */
|
||||
|
||||
export * from "../refactors/convertArrowFunctionOrFunctionExpression";
|
||||
export * from "../refactors/convertArrowFunctionOrFunctionExpression.js";
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
/* Generated file to emulate the ts.refactor.convertParamsToDestructuredObject namespace. */
|
||||
|
||||
export * from "../refactors/convertParamsToDestructuredObject";
|
||||
export * from "../refactors/convertParamsToDestructuredObject.js";
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
/* Generated file to emulate the ts.refactor.convertStringOrTemplateLiteral namespace. */
|
||||
|
||||
export * from "../refactors/convertStringOrTemplateLiteral";
|
||||
export * from "../refactors/convertStringOrTemplateLiteral.js";
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
/* Generated file to emulate the ts.refactor.convertToOptionalChainExpression namespace. */
|
||||
|
||||
export * from "../refactors/convertToOptionalChainExpression";
|
||||
export * from "../refactors/convertToOptionalChainExpression.js";
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
/* Generated file to emulate the ts.refactor.extractSymbol namespace. */
|
||||
|
||||
export * from "../refactors/extractSymbol";
|
||||
export * from "../refactors/extractSymbol.js";
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
/* Generated file to emulate the ts.refactor.generateGetAccessorAndSetAccessor namespace. */
|
||||
|
||||
export * from "../refactors/generateGetAccessorAndSetAccessor";
|
||||
export * from "../refactors/generateGetAccessorAndSetAccessor.js";
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
/* Generated file to emulate the ts.refactor.inferFunctionReturnType namespace. */
|
||||
|
||||
export * from "../refactors/inferFunctionReturnType";
|
||||
export * from "../refactors/inferFunctionReturnType.js";
|
||||
|
||||
@@ -1,26 +1,26 @@
|
||||
/* Generated file to emulate the ts.refactor namespace. */
|
||||
|
||||
export * from "../refactorProvider";
|
||||
export * from "../refactors/convertExport";
|
||||
export * from "../refactors/convertImport";
|
||||
export * from "../refactors/extractType";
|
||||
export * from "../refactors/helpers";
|
||||
export * from "../refactors/inlineVariable";
|
||||
export * from "../refactors/moveToNewFile";
|
||||
export * from "../refactors/moveToFile";
|
||||
import * as addOrRemoveBracesToArrowFunction from "./ts.refactor.addOrRemoveBracesToArrowFunction";
|
||||
export * from "../refactorProvider.js";
|
||||
export * from "../refactors/convertExport.js";
|
||||
export * from "../refactors/convertImport.js";
|
||||
export * from "../refactors/extractType.js";
|
||||
export * from "../refactors/helpers.js";
|
||||
export * from "../refactors/inlineVariable.js";
|
||||
export * from "../refactors/moveToNewFile.js";
|
||||
export * from "../refactors/moveToFile.js";
|
||||
import * as addOrRemoveBracesToArrowFunction from "./ts.refactor.addOrRemoveBracesToArrowFunction.js";
|
||||
export { addOrRemoveBracesToArrowFunction };
|
||||
import * as convertArrowFunctionOrFunctionExpression from "./ts.refactor.convertArrowFunctionOrFunctionExpression";
|
||||
import * as convertArrowFunctionOrFunctionExpression from "./ts.refactor.convertArrowFunctionOrFunctionExpression.js";
|
||||
export { convertArrowFunctionOrFunctionExpression };
|
||||
import * as convertParamsToDestructuredObject from "./ts.refactor.convertParamsToDestructuredObject";
|
||||
import * as convertParamsToDestructuredObject from "./ts.refactor.convertParamsToDestructuredObject.js";
|
||||
export { convertParamsToDestructuredObject };
|
||||
import * as convertStringOrTemplateLiteral from "./ts.refactor.convertStringOrTemplateLiteral";
|
||||
import * as convertStringOrTemplateLiteral from "./ts.refactor.convertStringOrTemplateLiteral.js";
|
||||
export { convertStringOrTemplateLiteral };
|
||||
import * as convertToOptionalChainExpression from "./ts.refactor.convertToOptionalChainExpression";
|
||||
import * as convertToOptionalChainExpression from "./ts.refactor.convertToOptionalChainExpression.js";
|
||||
export { convertToOptionalChainExpression };
|
||||
import * as extractSymbol from "./ts.refactor.extractSymbol";
|
||||
import * as extractSymbol from "./ts.refactor.extractSymbol.js";
|
||||
export { extractSymbol };
|
||||
import * as generateGetAccessorAndSetAccessor from "./ts.refactor.generateGetAccessorAndSetAccessor";
|
||||
import * as generateGetAccessorAndSetAccessor from "./ts.refactor.generateGetAccessorAndSetAccessor.js";
|
||||
export { generateGetAccessorAndSetAccessor };
|
||||
import * as inferFunctionReturnType from "./ts.refactor.inferFunctionReturnType";
|
||||
import * as inferFunctionReturnType from "./ts.refactor.inferFunctionReturnType.js";
|
||||
export { inferFunctionReturnType };
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
/* Generated file to emulate the ts.textChanges namespace. */
|
||||
|
||||
export * from "../textChanges";
|
||||
export * from "../textChanges.js";
|
||||
|
||||
@@ -1,58 +1,58 @@
|
||||
/* Generated file to emulate the ts namespace. */
|
||||
|
||||
export * from "../../compiler/_namespaces/ts";
|
||||
export * from "../../jsTyping/_namespaces/ts";
|
||||
export * from "../types";
|
||||
export * from "../utilities";
|
||||
export * from "../exportInfoMap";
|
||||
export * from "../classifier";
|
||||
export * from "../documentHighlights";
|
||||
export * from "../documentRegistry";
|
||||
export * from "../getEditsForFileRename";
|
||||
export * from "../patternMatcher";
|
||||
export * from "../preProcess";
|
||||
export * from "../sourcemaps";
|
||||
export * from "../suggestionDiagnostics";
|
||||
export * from "../transpile";
|
||||
export * from "../services";
|
||||
export * from "../transform";
|
||||
import * as BreakpointResolver from "./ts.BreakpointResolver";
|
||||
export * from "../../compiler/_namespaces/ts.js";
|
||||
export * from "../../jsTyping/_namespaces/ts.js";
|
||||
export * from "../types.js";
|
||||
export * from "../utilities.js";
|
||||
export * from "../exportInfoMap.js";
|
||||
export * from "../classifier.js";
|
||||
export * from "../documentHighlights.js";
|
||||
export * from "../documentRegistry.js";
|
||||
export * from "../getEditsForFileRename.js";
|
||||
export * from "../patternMatcher.js";
|
||||
export * from "../preProcess.js";
|
||||
export * from "../sourcemaps.js";
|
||||
export * from "../suggestionDiagnostics.js";
|
||||
export * from "../transpile.js";
|
||||
export * from "../services.js";
|
||||
export * from "../transform.js";
|
||||
import * as BreakpointResolver from "./ts.BreakpointResolver.js";
|
||||
export { BreakpointResolver };
|
||||
import * as CallHierarchy from "./ts.CallHierarchy";
|
||||
import * as CallHierarchy from "./ts.CallHierarchy.js";
|
||||
export { CallHierarchy };
|
||||
import * as classifier from "./ts.classifier";
|
||||
import * as classifier from "./ts.classifier.js";
|
||||
export { classifier };
|
||||
import * as codefix from "./ts.codefix";
|
||||
import * as codefix from "./ts.codefix.js";
|
||||
export { codefix };
|
||||
import * as Completions from "./ts.Completions";
|
||||
import * as Completions from "./ts.Completions.js";
|
||||
export { Completions };
|
||||
import * as FindAllReferences from "./ts.FindAllReferences";
|
||||
import * as FindAllReferences from "./ts.FindAllReferences.js";
|
||||
export { FindAllReferences };
|
||||
import * as GoToDefinition from "./ts.GoToDefinition";
|
||||
import * as GoToDefinition from "./ts.GoToDefinition.js";
|
||||
export { GoToDefinition };
|
||||
import * as InlayHints from "./ts.InlayHints";
|
||||
import * as InlayHints from "./ts.InlayHints.js";
|
||||
export { InlayHints };
|
||||
import * as JsDoc from "./ts.JsDoc";
|
||||
import * as JsDoc from "./ts.JsDoc.js";
|
||||
export { JsDoc };
|
||||
import * as NavigateTo from "./ts.NavigateTo";
|
||||
import * as NavigateTo from "./ts.NavigateTo.js";
|
||||
export { NavigateTo };
|
||||
import * as NavigationBar from "./ts.NavigationBar";
|
||||
import * as NavigationBar from "./ts.NavigationBar.js";
|
||||
export { NavigationBar };
|
||||
import * as OrganizeImports from "./ts.OrganizeImports";
|
||||
import * as OrganizeImports from "./ts.OrganizeImports.js";
|
||||
export { OrganizeImports };
|
||||
import * as OutliningElementsCollector from "./ts.OutliningElementsCollector";
|
||||
import * as OutliningElementsCollector from "./ts.OutliningElementsCollector.js";
|
||||
export { OutliningElementsCollector };
|
||||
import * as refactor from "./ts.refactor";
|
||||
import * as refactor from "./ts.refactor.js";
|
||||
export { refactor };
|
||||
import * as Rename from "./ts.Rename";
|
||||
import * as Rename from "./ts.Rename.js";
|
||||
export { Rename };
|
||||
import * as SignatureHelp from "./ts.SignatureHelp";
|
||||
import * as SignatureHelp from "./ts.SignatureHelp.js";
|
||||
export { SignatureHelp };
|
||||
import * as SmartSelectionRange from "./ts.SmartSelectionRange";
|
||||
import * as SmartSelectionRange from "./ts.SmartSelectionRange.js";
|
||||
export { SmartSelectionRange };
|
||||
import * as SymbolDisplay from "./ts.SymbolDisplay";
|
||||
import * as SymbolDisplay from "./ts.SymbolDisplay.js";
|
||||
export { SymbolDisplay };
|
||||
import * as textChanges from "./ts.textChanges";
|
||||
import * as textChanges from "./ts.textChanges.js";
|
||||
export { textChanges };
|
||||
import * as formatting from "./ts.formatting";
|
||||
import * as formatting from "./ts.formatting.js";
|
||||
export { formatting };
|
||||
|
||||
@@ -70,7 +70,7 @@ import {
|
||||
VariableStatement,
|
||||
WhileStatement,
|
||||
WithStatement,
|
||||
} from "./_namespaces/ts";
|
||||
} from "./_namespaces/ts.js";
|
||||
|
||||
/**
|
||||
* Get the breakpoint span in given sourceFile
|
||||
|
||||
@@ -105,7 +105,7 @@ import {
|
||||
TypeChecker,
|
||||
usingSingleLineStringWriter,
|
||||
VariableDeclaration,
|
||||
} from "./_namespaces/ts";
|
||||
} from "./_namespaces/ts.js";
|
||||
|
||||
/** @internal */
|
||||
export type NamedExpression =
|
||||
|
||||
@@ -75,7 +75,7 @@ import {
|
||||
TokenClass,
|
||||
TypeChecker,
|
||||
TypeParameterDeclaration,
|
||||
} from "./_namespaces/ts";
|
||||
} from "./_namespaces/ts.js";
|
||||
|
||||
/** The classifier is used for syntactic highlighting in editors via the TSServer */
|
||||
export function createClassifier(): Classifier {
|
||||
|
||||
@@ -43,7 +43,7 @@ import {
|
||||
Type,
|
||||
TypeChecker,
|
||||
VariableDeclaration,
|
||||
} from "./_namespaces/ts";
|
||||
} from "./_namespaces/ts.js";
|
||||
|
||||
/** @internal */
|
||||
export const enum TokenEncodingConsts {
|
||||
|
||||
@@ -23,7 +23,7 @@ import {
|
||||
map,
|
||||
TextChange,
|
||||
textChanges,
|
||||
} from "./_namespaces/ts";
|
||||
} from "./_namespaces/ts.js";
|
||||
|
||||
const errorCodeToFixes = createMultiMap<string, CodeFixRegistration>();
|
||||
const fixIdToRegistration = new Map<string, CodeFixRegistration>();
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
AsExpression,
|
||||
Diagnostics,
|
||||
@@ -11,12 +16,7 @@ import {
|
||||
SyntaxKind,
|
||||
textChanges,
|
||||
TypeAssertion,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "addConvertToUnknownForNonOverlappingTypes";
|
||||
const errorCodes = [Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import {
|
||||
createCodeFixActionWithoutFixAll,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
Diagnostics,
|
||||
factory,
|
||||
textChanges,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
createCodeFixActionWithoutFixAll,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
registerCodeFix({
|
||||
errorCodes: [
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
ArrowFunction,
|
||||
CodeFixAllContext,
|
||||
@@ -28,12 +33,7 @@ import {
|
||||
TextSpan,
|
||||
textSpanEnd,
|
||||
textSpansEqual,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
type ContextualTrackChangesFunction = (cb: (changeTracker: textChanges.ChangeTracker) => void) => FileTextChanges[];
|
||||
const fixId = "addMissingAsync";
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
createCodeFixActionWithoutFixAll,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
CancellationToken,
|
||||
CodeFixAllContext,
|
||||
@@ -44,13 +50,7 @@ import {
|
||||
tryCast,
|
||||
TypeChecker,
|
||||
TypeFlags,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
createCodeFixActionWithoutFixAll,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
type ContextualTrackChangesFunction = (cb: (changeTracker: textChanges.ChangeTracker) => void) => FileTextChanges[];
|
||||
const fixId = "addMissingAwait";
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
Diagnostics,
|
||||
every,
|
||||
@@ -17,12 +22,7 @@ import {
|
||||
textChanges,
|
||||
tryAddToSet,
|
||||
TypeChecker,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "addMissingConst";
|
||||
const errorCodes = [
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
Diagnostics,
|
||||
getTokenAtPosition,
|
||||
@@ -7,12 +12,7 @@ import {
|
||||
SyntaxKind,
|
||||
textChanges,
|
||||
tryAddToSet,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "addMissingDeclareProperty";
|
||||
const errorCodes = [
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
Debug,
|
||||
Diagnostics,
|
||||
@@ -7,12 +12,7 @@ import {
|
||||
isDecorator,
|
||||
SourceFile,
|
||||
textChanges,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "addMissingInvocationForDecorator";
|
||||
const errorCodes = [Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
createRange,
|
||||
Debug,
|
||||
@@ -14,12 +19,7 @@ import {
|
||||
SyntaxKind,
|
||||
textChanges,
|
||||
TypeNode,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "addNameToNamelessParameter";
|
||||
const errorCodes = [Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
import {
|
||||
createCodeFixActionWithoutFixAll,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
Diagnostics,
|
||||
emptyArray,
|
||||
@@ -26,11 +30,7 @@ import {
|
||||
TextSpan,
|
||||
TypeChecker,
|
||||
UnionTypeNode,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
createCodeFixActionWithoutFixAll,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const addOptionalPropertyUndefined = "addOptionalPropertyUndefined";
|
||||
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
Debug,
|
||||
Diagnostics,
|
||||
@@ -40,12 +45,7 @@ import {
|
||||
visitEachChild,
|
||||
visitNode,
|
||||
visitNodes,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "annotateWithTypeFromJSDoc";
|
||||
const errorCodes = [Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
import {
|
||||
createCodeFixActionMaybeFixAll,
|
||||
createCombinedCodeActions,
|
||||
eachDiagnostic,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
addToSeen,
|
||||
Diagnostics,
|
||||
@@ -13,13 +19,7 @@ import {
|
||||
textChanges,
|
||||
Token,
|
||||
tryCast,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
createCodeFixActionMaybeFixAll,
|
||||
createCombinedCodeActions,
|
||||
eachDiagnostic,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "fixConvertConstToLet";
|
||||
const errorCodes = [Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code];
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
__String,
|
||||
AccessExpression,
|
||||
@@ -60,12 +65,7 @@ import {
|
||||
TypeChecker,
|
||||
UserPreferences,
|
||||
VariableDeclaration,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "convertFunctionToEs6Class";
|
||||
const errorCodes = [Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code];
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
cast,
|
||||
Diagnostics,
|
||||
@@ -10,12 +15,7 @@ import {
|
||||
textChanges,
|
||||
TypeLiteralNode,
|
||||
TypeNode,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "convertLiteralTypeToMappedType";
|
||||
const errorCodes = [Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
ArrowFunction,
|
||||
AwaitExpression,
|
||||
@@ -77,12 +82,7 @@ import {
|
||||
TypeNode,
|
||||
TypeReference,
|
||||
UnionReduction,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "convertToAsyncFunction";
|
||||
const errorCodes = [Diagnostics.This_may_be_converted_to_an_async_function.code];
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
createCodeFixActionWithoutFixAll,
|
||||
moduleSpecifierToValidIdentifier,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
__String,
|
||||
arrayFrom,
|
||||
@@ -74,12 +79,7 @@ import {
|
||||
textChanges,
|
||||
TypeChecker,
|
||||
VariableStatement,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
createCodeFixActionWithoutFixAll,
|
||||
moduleSpecifierToValidIdentifier,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
registerCodeFix({
|
||||
errorCodes: [Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
cast,
|
||||
Diagnostics,
|
||||
@@ -21,12 +26,7 @@ import {
|
||||
TypeAliasDeclaration,
|
||||
TypeLiteralNode,
|
||||
TypeNode,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "fixConvertToMappedObjectType";
|
||||
const errorCodes = [Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
addToSeen,
|
||||
CodeFixContextBase,
|
||||
@@ -17,12 +22,7 @@ import {
|
||||
textChanges,
|
||||
TextSpan,
|
||||
tryCast,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const errorCodes = [Diagnostics.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code];
|
||||
const fixId = "convertToTypeOnlyExport";
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
createCodeFixActionWithoutFixAll,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
Diagnostics,
|
||||
factory,
|
||||
@@ -17,13 +23,7 @@ import {
|
||||
SourceFile,
|
||||
SyntaxKind,
|
||||
textChanges,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
createCodeFixActionWithoutFixAll,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const errorCodes = [
|
||||
Diagnostics._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
Diagnostics,
|
||||
factory,
|
||||
@@ -23,12 +28,7 @@ import {
|
||||
SyntaxKind,
|
||||
textChanges,
|
||||
TypeAliasDeclaration,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "convertTypedefToType";
|
||||
const errorCodes = [Diagnostics.JSDoc_typedef_may_be_converted_to_TypeScript_type.code];
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
Debug,
|
||||
Diagnostics,
|
||||
@@ -10,12 +15,7 @@ import {
|
||||
QualifiedName,
|
||||
SourceFile,
|
||||
textChanges,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "correctQualifiedNameToIndexedAccessType";
|
||||
const errorCodes = [Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code];
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
createCodeFixActionWithoutFixAll,
|
||||
createFileTextChanges,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
CodeFixAction,
|
||||
createTextChange,
|
||||
@@ -13,14 +20,7 @@ import {
|
||||
SourceFile,
|
||||
textChanges,
|
||||
tryAddToSet,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
createCodeFixActionWithoutFixAll,
|
||||
createFileTextChanges,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixName = "disableJsDiagnostics";
|
||||
const fixId = "disableJsDiagnostics";
|
||||
|
||||
@@ -1,3 +1,13 @@
|
||||
import {
|
||||
createCodeFixAction,
|
||||
createCombinedCodeActions,
|
||||
createImportAdder,
|
||||
eachDiagnostic,
|
||||
findAncestorMatchingSpan,
|
||||
getNoopSymbolTrackerWithResolver,
|
||||
registerCodeFix,
|
||||
typeToAutoImportableTypeNode,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
addToSeen,
|
||||
createTextSpan,
|
||||
@@ -25,17 +35,7 @@ import {
|
||||
TypeChecker,
|
||||
TypeParameterDeclaration,
|
||||
UserPreferences,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
createCodeFixAction,
|
||||
createCombinedCodeActions,
|
||||
createImportAdder,
|
||||
eachDiagnostic,
|
||||
findAncestorMatchingSpan,
|
||||
getNoopSymbolTrackerWithResolver,
|
||||
registerCodeFix,
|
||||
typeToAutoImportableTypeNode,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "addMissingConstraint";
|
||||
const errorCodes = [
|
||||
|
||||
@@ -1,3 +1,16 @@
|
||||
import {
|
||||
createCodeFixAction,
|
||||
createCodeFixActionWithoutFixAll,
|
||||
createCombinedCodeActions,
|
||||
createImportAdder,
|
||||
createSignatureDeclarationFromCallExpression,
|
||||
createSignatureDeclarationFromSignature,
|
||||
createStubbedBody,
|
||||
eachDiagnostic,
|
||||
getAllSupers,
|
||||
ImportAdder,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
__String,
|
||||
addToSeen,
|
||||
@@ -112,20 +125,7 @@ import {
|
||||
TypeNode,
|
||||
TypeReference,
|
||||
UnionType,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
createCodeFixAction,
|
||||
createCodeFixActionWithoutFixAll,
|
||||
createCombinedCodeActions,
|
||||
createImportAdder,
|
||||
createSignatureDeclarationFromCallExpression,
|
||||
createSignatureDeclarationFromSignature,
|
||||
createStubbedBody,
|
||||
eachDiagnostic,
|
||||
getAllSupers,
|
||||
ImportAdder,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixMissingMember = "fixMissingMember";
|
||||
const fixMissingProperties = "fixMissingProperties";
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
cast,
|
||||
Diagnostics,
|
||||
@@ -9,12 +14,7 @@ import {
|
||||
textChanges,
|
||||
TextSpan,
|
||||
textSpanEnd,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "addMissingNewOperator";
|
||||
const errorCodes = [Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];
|
||||
|
||||
@@ -1,3 +1,12 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
createImportAdder,
|
||||
ImportAdder,
|
||||
importSymbols,
|
||||
registerCodeFix,
|
||||
tryGetAutoImportableReferenceFromTypeNode,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
append,
|
||||
ArrowFunction,
|
||||
@@ -44,16 +53,7 @@ import {
|
||||
TypeChecker,
|
||||
TypeNode,
|
||||
UserPreferences,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
createImportAdder,
|
||||
ImportAdder,
|
||||
importSymbols,
|
||||
registerCodeFix,
|
||||
tryGetAutoImportableReferenceFromTypeNode,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const addMissingParamFixId = "addMissingParam";
|
||||
const addOptionalParamFixId = "addOptionalParam";
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
Debug,
|
||||
Diagnostics,
|
||||
@@ -7,12 +12,7 @@ import {
|
||||
SourceFile,
|
||||
SyntaxKind,
|
||||
textChanges,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixIdAddMissingTypeof = "fixAddModuleReferTypeMissingTypeof";
|
||||
const fixId = fixIdAddMissingTypeof;
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
CodeFixAllContext,
|
||||
Diagnostics,
|
||||
@@ -24,12 +29,7 @@ import {
|
||||
textChanges,
|
||||
TextSpan,
|
||||
TypeFlags,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixName = "addVoidToPromise";
|
||||
const fixId = "addVoidToPromise";
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
addToSeen,
|
||||
ArrowFunction,
|
||||
@@ -19,12 +24,7 @@ import {
|
||||
SyntaxKind,
|
||||
textChanges,
|
||||
TypeNode,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "fixAwaitInSyncFunction";
|
||||
const errorCodes = [
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
Debug,
|
||||
Diagnostics,
|
||||
@@ -11,12 +16,7 @@ import {
|
||||
parsePackageName,
|
||||
SourceFile,
|
||||
tryCast,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixName = "fixCannotFindModule";
|
||||
const fixIdInstallTypesPackage = "installTypesPackage";
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
createImportAdder,
|
||||
createMissingMemberNodes,
|
||||
registerCodeFix,
|
||||
TypeConstructionContext,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
addToSeen,
|
||||
cast,
|
||||
@@ -15,15 +23,7 @@ import {
|
||||
Symbol,
|
||||
textChanges,
|
||||
UserPreferences,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
createImportAdder,
|
||||
createMissingMemberNodes,
|
||||
registerCodeFix,
|
||||
TypeConstructionContext,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const errorCodes = [
|
||||
Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,
|
||||
|
||||
@@ -1,3 +1,12 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
createImportAdder,
|
||||
createMissingMemberNodes,
|
||||
getNoopSymbolTrackerWithResolver,
|
||||
registerCodeFix,
|
||||
TypeConstructionContext,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
addToSeen,
|
||||
and,
|
||||
@@ -27,16 +36,7 @@ import {
|
||||
textChanges,
|
||||
TypeChecker,
|
||||
UserPreferences,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
createImportAdder,
|
||||
createMissingMemberNodes,
|
||||
getNoopSymbolTrackerWithResolver,
|
||||
registerCodeFix,
|
||||
TypeConstructionContext,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const errorCodes = [
|
||||
Diagnostics.Class_0_incorrectly_implements_interface_1.code,
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
addToSeen,
|
||||
CallExpression,
|
||||
@@ -16,12 +21,7 @@ import {
|
||||
SourceFile,
|
||||
SyntaxKind,
|
||||
textChanges,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "classSuperMustPrecedeThisAccess";
|
||||
const errorCodes = [Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
ConstructorDeclaration,
|
||||
Debug,
|
||||
@@ -8,12 +13,7 @@ import {
|
||||
isConstructorDeclaration,
|
||||
SourceFile,
|
||||
textChanges,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "constructorForDerivedNeedSuperCall";
|
||||
const errorCodes = [Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code];
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
import {
|
||||
Diagnostics,
|
||||
factory,
|
||||
textChanges,
|
||||
TsConfigSourceFile,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixActionWithoutFixAll,
|
||||
registerCodeFix,
|
||||
setJsonCompilerOptionValue,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
Diagnostics,
|
||||
factory,
|
||||
textChanges,
|
||||
TsConfigSourceFile,
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixID = "fixEnableJsxFlag";
|
||||
const errorCodes = [Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
Diagnostics,
|
||||
factory,
|
||||
@@ -8,12 +13,7 @@ import {
|
||||
SourceFile,
|
||||
SyntaxKind,
|
||||
textChanges,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "fixExpectedComma";
|
||||
const expectedErrorCode = Diagnostics._0_expected.code;
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
Diagnostics,
|
||||
factory,
|
||||
@@ -9,12 +14,7 @@ import {
|
||||
SourceFile,
|
||||
SyntaxKind,
|
||||
textChanges,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "extendsInterfaceBecomesImplements";
|
||||
const errorCodes = [Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
Diagnostics,
|
||||
factory,
|
||||
@@ -10,12 +15,7 @@ import {
|
||||
SourceFile,
|
||||
suppressLeadingAndTrailingTrivia,
|
||||
textChanges,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "forgottenThisPropertyAccess";
|
||||
const didYouMeanStaticMemberCode = Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code;
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
ANONYMOUS,
|
||||
Debug,
|
||||
@@ -17,12 +22,7 @@ import {
|
||||
SyntaxKind,
|
||||
textChanges,
|
||||
TypeChecker,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "fixImplicitThis";
|
||||
const errorCodes = [Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
import {
|
||||
createCodeFixAction,
|
||||
createCombinedCodeActions,
|
||||
eachDiagnostic,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
canHaveExportModifier,
|
||||
canHaveLocals,
|
||||
@@ -30,13 +36,7 @@ import {
|
||||
textChanges,
|
||||
tryCast,
|
||||
VariableStatement,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
createCodeFixAction,
|
||||
createCombinedCodeActions,
|
||||
eachDiagnostic,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "fixImportNonExportedMember";
|
||||
const errorCodes = [
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
import {
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
Diagnostics,
|
||||
factory,
|
||||
@@ -10,11 +14,7 @@ import {
|
||||
SourceFile,
|
||||
SyntaxKind,
|
||||
textChanges,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "fixIncorrectNamedTupleSyntax";
|
||||
const errorCodes = [
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
import {
|
||||
createCodeFixActionWithoutFixAll,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
addRange,
|
||||
CallExpression,
|
||||
@@ -24,11 +28,7 @@ import {
|
||||
SourceFile,
|
||||
SyntaxKind,
|
||||
textChanges,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
createCodeFixActionWithoutFixAll,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixName = "invalidImportSyntax";
|
||||
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
Diagnostics,
|
||||
hasProperty,
|
||||
@@ -5,12 +10,7 @@ import {
|
||||
SourceFile,
|
||||
textChanges,
|
||||
UserPreferences,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixIdExpression = "fixInvalidJsxCharacters_expression";
|
||||
const fixIdHtmlEntity = "fixInvalidJsxCharacters_htmlEntity";
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
append,
|
||||
AsExpression,
|
||||
@@ -30,12 +35,7 @@ import {
|
||||
TypeFlags,
|
||||
TypeNode,
|
||||
VariableDeclaration,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixIdPlain = "fixJSDocTypes_plain";
|
||||
const fixIdNullable = "fixJSDocTypes_nullable";
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
Diagnostics,
|
||||
getTokenAtPosition,
|
||||
@@ -8,12 +13,7 @@ import {
|
||||
PropertyAccessExpression,
|
||||
SourceFile,
|
||||
textChanges,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "fixMissingCallParentheses";
|
||||
const errorCodes = [
|
||||
|
||||
@@ -94,7 +94,7 @@ import {
|
||||
VariableDeclaration,
|
||||
VariableStatement,
|
||||
walkUpParenthesizedExpressions,
|
||||
} from "../_namespaces/ts";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
import {
|
||||
createCodeFixAction,
|
||||
@@ -103,8 +103,8 @@ import {
|
||||
eachDiagnostic,
|
||||
registerCodeFix,
|
||||
typeToAutoImportableTypeNode,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
import { getIdentifierForNode } from "../refactors/helpers";
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import { getIdentifierForNode } from "../refactors/helpers.js";
|
||||
|
||||
const fixId = "fixMissingTypeAnnotationOnExports";
|
||||
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
import {
|
||||
createCodeFixActionWithoutFixAll,
|
||||
registerCodeFix,
|
||||
setJsonCompilerOptionValue,
|
||||
setJsonCompilerOptionValues,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
CodeFixAction,
|
||||
Diagnostics,
|
||||
@@ -9,13 +15,7 @@ import {
|
||||
ModuleKind,
|
||||
ScriptTarget,
|
||||
textChanges,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
createCodeFixActionWithoutFixAll,
|
||||
registerCodeFix,
|
||||
setJsonCompilerOptionValue,
|
||||
setJsonCompilerOptionValues,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
registerCodeFix({
|
||||
errorCodes: [
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
findAncestorMatchingSpan,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
BinaryExpression,
|
||||
createTextSpan,
|
||||
@@ -14,13 +20,7 @@ import {
|
||||
SyntaxKind,
|
||||
textChanges,
|
||||
TextSpan,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
findAncestorMatchingSpan,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "fixNaNEquality";
|
||||
const errorCodes = [
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
cast,
|
||||
Diagnostics,
|
||||
@@ -11,12 +16,7 @@ import {
|
||||
SourceFile,
|
||||
textChanges,
|
||||
UserPreferences,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "fixNoPropertyAccessFromIndexSignature";
|
||||
const errorCodes = [
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixActionMaybeFixAll,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
CodeFixAllContext,
|
||||
CodeFixContext,
|
||||
@@ -31,12 +36,7 @@ import {
|
||||
SourceFile,
|
||||
SyntaxKind,
|
||||
textChanges,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixActionMaybeFixAll,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixName = "fixOverrideModifier";
|
||||
const fixAddOverrideId = "fixAddOverrideModifier";
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
cast,
|
||||
Diagnostics,
|
||||
@@ -8,12 +13,7 @@ import {
|
||||
ShorthandPropertyAssignment,
|
||||
SourceFile,
|
||||
textChanges,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "fixPropertyAssignment";
|
||||
const errorCodes = [
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
generateAccessorFromProperty,
|
||||
getAllSupers,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
CodeFixAllContext,
|
||||
CodeFixContext,
|
||||
@@ -11,14 +18,7 @@ import {
|
||||
singleOrUndefined,
|
||||
SourceFile,
|
||||
unescapeLeadingUnderscores,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
generateAccessorFromProperty,
|
||||
getAllSupers,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const errorCodes = [
|
||||
Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
Diagnostics,
|
||||
factory,
|
||||
@@ -10,12 +15,7 @@ import {
|
||||
Type,
|
||||
TypeChecker,
|
||||
TypeNode,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "fixReturnTypeInAsyncFunction";
|
||||
const errorCodes = [
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
CodeFixContextBase,
|
||||
Debug,
|
||||
@@ -36,12 +41,7 @@ import {
|
||||
symbolName,
|
||||
SyntaxKind,
|
||||
textChanges,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "fixSpelling";
|
||||
const errorCodes = [
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
append,
|
||||
BigIntLiteralType,
|
||||
@@ -27,12 +32,7 @@ import {
|
||||
TypeChecker,
|
||||
TypeFlags,
|
||||
TypeNode,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixName = "strictClassInitialization";
|
||||
const fixIdAddDefiniteAssignmentAssertions = "addMissingPropertyDefiniteAssignmentAssertions";
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
import {
|
||||
createCodeFixAction,
|
||||
createCodeFixActionWithoutFixAll,
|
||||
createCombinedCodeActions,
|
||||
eachDiagnostic,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
__String,
|
||||
append,
|
||||
@@ -21,14 +28,7 @@ import {
|
||||
SignatureDeclaration,
|
||||
SourceFile,
|
||||
textChanges,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
createCodeFixAction,
|
||||
createCodeFixActionWithoutFixAll,
|
||||
createCombinedCodeActions,
|
||||
eachDiagnostic,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const deleteUnmatchedParameter = "deleteUnmatchedParameter";
|
||||
const renameUnmatchedParameter = "renameUnmatchedParameter";
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
Debug,
|
||||
Diagnostics,
|
||||
@@ -13,12 +18,7 @@ import {
|
||||
SourceFile,
|
||||
SyntaxKind,
|
||||
textChanges,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "fixUnreachableCode";
|
||||
const errorCodes = [Diagnostics.Unreachable_code_detected.code];
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
import {
|
||||
createCodeFixActionWithoutFixAll,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
append,
|
||||
CodeFixAction,
|
||||
@@ -23,11 +27,7 @@ import {
|
||||
SyntaxKind,
|
||||
textChanges,
|
||||
tryCast,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
createCodeFixActionWithoutFixAll,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "fixUnreferenceableDecoratorMetadata";
|
||||
const errorCodes = [Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code];
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
ArrayBindingPattern,
|
||||
CancellationToken,
|
||||
@@ -59,12 +64,7 @@ import {
|
||||
TypeChecker,
|
||||
VariableDeclaration,
|
||||
VariableDeclarationList,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixName = "unusedIdentifier";
|
||||
const fixIdPrefix = "unusedIdentifier_prefix";
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
cast,
|
||||
Diagnostics,
|
||||
@@ -9,12 +14,7 @@ import {
|
||||
SourceFile,
|
||||
SyntaxKind,
|
||||
textChanges,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "fixUnusedLabel";
|
||||
const errorCodes = [Diagnostics.Unused_label.code];
|
||||
|
||||
@@ -55,7 +55,7 @@ import {
|
||||
textChanges,
|
||||
TypeChecker,
|
||||
TypeNode,
|
||||
} from "../_namespaces/ts";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
/** @internal */
|
||||
export type AcceptedDeclaration = ParameterPropertyDeclaration | PropertyDeclaration | PropertyAssignment;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { ImportAdder } from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
AccessorDeclaration,
|
||||
append,
|
||||
@@ -110,8 +111,7 @@ import {
|
||||
visitEachChild,
|
||||
visitNode,
|
||||
visitNodes,
|
||||
} from "../_namespaces/ts";
|
||||
import { ImportAdder } from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
/**
|
||||
* Finds members of the resolved type that are missing in the class pointed to by class decl
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
import {
|
||||
createCodeFixAction,
|
||||
createCombinedCodeActions,
|
||||
eachDiagnostic,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
AnyImportOrRequire,
|
||||
AnyImportOrRequireStatement,
|
||||
@@ -153,13 +159,7 @@ import {
|
||||
TypeOnlyAliasDeclaration,
|
||||
UserPreferences,
|
||||
VariableDeclarationInitializedTo,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
createCodeFixAction,
|
||||
createCombinedCodeActions,
|
||||
eachDiagnostic,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
/** @internal */
|
||||
export const importFixName = "import";
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
createImportAdder,
|
||||
ImportAdder,
|
||||
registerCodeFix,
|
||||
tryGetAutoImportableReferenceFromTypeNode,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
__String,
|
||||
AnonymousType,
|
||||
@@ -101,15 +109,7 @@ import {
|
||||
UnionReduction,
|
||||
UserPreferences,
|
||||
VariableDeclaration,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
codeFixAll,
|
||||
createCodeFixAction,
|
||||
createImportAdder,
|
||||
ImportAdder,
|
||||
registerCodeFix,
|
||||
tryGetAutoImportableReferenceFromTypeNode,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "inferFromUsage";
|
||||
const errorCodes = [
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import {
|
||||
createCodeFixActionWithoutFixAll,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix.js";
|
||||
import {
|
||||
Diagnostics,
|
||||
findAncestor,
|
||||
getTokenAtPosition,
|
||||
isCallExpression,
|
||||
textChanges,
|
||||
} from "../_namespaces/ts";
|
||||
import {
|
||||
createCodeFixActionWithoutFixAll,
|
||||
registerCodeFix,
|
||||
} from "../_namespaces/ts.codefix";
|
||||
} from "../_namespaces/ts.js";
|
||||
|
||||
const fixId = "removeAccidentalCallParentheses";
|
||||
const errorCodes = [
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user