mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-11 10:46:28 -05:00
* add convertOptionalChain * cover more cases * expose containsMatchingReference * clean up performing edits * bound start position * add tests * refactor and handle edge cases * update tests * consider explicit requests for empty spans * update fourslash to use trigger reason * add tests cases for trigger reason * fix errors * remove type assertion * fix non ampersand chains * clean up some logic * add ternary case * add diagnostic message * add nullish check for ternary expressions * Update src/services/refactors/convertToOptionalChainExpression.ts Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> * Update src/services/refactors/convertToOptionalChainExpression.ts Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> * Update tests/cases/fourslash/refactorConvertToOptionalChainExpressionForTriggerReason3.ts Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> * Update tests/cases/fourslash/refactorConvertToOptionalChainExpressionForTriggerReason1.ts Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> * reformat and remove unused checks * allow any for ternary refactor * add tests * add tests * check return and variable statements * use isMatchingReference instead of containsMatchingReference * allow partial selections * fine tune selection ranges * recurse for call expressions * fix spellings * add recursive cases * remove isOrContainsMatchingReference * cleanup * more refactoring * cleanup * rename tests * address PR comments * check match syntactically * handle another call expression case * some renames * inline some checks * add test * address comments * add refactorNotAvailableReason Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
128 lines
5.0 KiB
JSON
128 lines
5.0 KiB
JSON
{
|
|
"extends": "../tsconfig-base",
|
|
"compilerOptions": {
|
|
"outFile": "../../built/local/services.js"
|
|
},
|
|
"references": [
|
|
{ "path": "../shims" },
|
|
{ "path": "../compiler" },
|
|
{ "path": "../jsTyping" }
|
|
],
|
|
"files": [
|
|
"types.ts",
|
|
"utilities.ts",
|
|
"classifier.ts",
|
|
"stringCompletions.ts",
|
|
"completions.ts",
|
|
"documentHighlights.ts",
|
|
"documentRegistry.ts",
|
|
"importTracker.ts",
|
|
"findAllReferences.ts",
|
|
"callHierarchy.ts",
|
|
"getEditsForFileRename.ts",
|
|
"goToDefinition.ts",
|
|
"jsDoc.ts",
|
|
"navigateTo.ts",
|
|
"navigationBar.ts",
|
|
"organizeImports.ts",
|
|
"getEditsForFileRename.ts",
|
|
"outliningElementsCollector.ts",
|
|
"patternMatcher.ts",
|
|
"preProcess.ts",
|
|
"rename.ts",
|
|
"smartSelection.ts",
|
|
"signatureHelp.ts",
|
|
"sourcemaps.ts",
|
|
"suggestionDiagnostics.ts",
|
|
"symbolDisplay.ts",
|
|
"transpile.ts",
|
|
"formatting/formattingContext.ts",
|
|
"formatting/formattingScanner.ts",
|
|
"formatting/rule.ts",
|
|
"formatting/rules.ts",
|
|
"formatting/rulesMap.ts",
|
|
"formatting/formatting.ts",
|
|
"formatting/smartIndenter.ts",
|
|
"textChanges.ts",
|
|
"codeFixProvider.ts",
|
|
"refactorProvider.ts",
|
|
"codefixes/addConvertToUnknownForNonOverlappingTypes.ts",
|
|
"codefixes/addEmptyExportDeclaration.ts",
|
|
"codefixes/addMissingAsync.ts",
|
|
"codefixes/addMissingAwait.ts",
|
|
"codefixes/addMissingConst.ts",
|
|
"codefixes/addMissingDeclareProperty.ts",
|
|
"codefixes/addMissingInvocationForDecorator.ts",
|
|
"codefixes/addNameToNamelessParameter.ts",
|
|
"codefixes/annotateWithTypeFromJSDoc.ts",
|
|
"codefixes/convertFunctionToEs6Class.ts",
|
|
"codefixes/convertToAsyncFunction.ts",
|
|
"codefixes/convertToEs6Module.ts",
|
|
"codefixes/correctQualifiedNameToIndexedAccessType.ts",
|
|
"codefixes/convertToTypeOnlyExport.ts",
|
|
"codefixes/convertToTypeOnlyImport.ts",
|
|
"codefixes/fixClassIncorrectlyImplementsInterface.ts",
|
|
"codefixes/importFixes.ts",
|
|
"codefixes/fixImplicitThis.ts",
|
|
"codefixes/fixIncorrectNamedTupleSyntax.ts",
|
|
"codefixes/fixSpelling.ts",
|
|
"codefixes/returnValueCorrect.ts",
|
|
"codefixes/fixAddMissingMember.ts",
|
|
"codefixes/fixAddMissingNewOperator.ts",
|
|
"codefixes/fixCannotFindModule.ts",
|
|
"codefixes/fixClassDoesntImplementInheritedAbstractMember.ts",
|
|
"codefixes/fixClassSuperMustPrecedeThisAccess.ts",
|
|
"codefixes/fixConstructorForDerivedNeedSuperCall.ts",
|
|
"codefixes/fixEnableExperimentalDecorators.ts",
|
|
"codefixes/fixEnableJsxFlag.ts",
|
|
"codefixes/fixModuleAndTargetOptions.ts",
|
|
"codefixes/fixPropertyAssignment.ts",
|
|
"codefixes/fixExtendsInterfaceBecomesImplements.ts",
|
|
"codefixes/fixForgottenThisPropertyAccess.ts",
|
|
"codefixes/fixInvalidJsxCharacters.ts",
|
|
"codefixes/fixUnusedIdentifier.ts",
|
|
"codefixes/fixUnreachableCode.ts",
|
|
"codefixes/fixUnusedLabel.ts",
|
|
"codefixes/fixJSDocTypes.ts",
|
|
"codefixes/fixMissingCallParentheses.ts",
|
|
"codefixes/fixAwaitInSyncFunction.ts",
|
|
"codefixes/fixPropertyOverrideAccessor.ts",
|
|
"codefixes/inferFromUsage.ts",
|
|
"codefixes/fixReturnTypeInAsyncFunction.ts",
|
|
"codefixes/disableJsDiagnostics.ts",
|
|
"codefixes/helpers.ts",
|
|
"codefixes/generateAccessors.ts",
|
|
"codefixes/fixInvalidImportSyntax.ts",
|
|
"codefixes/fixStrictClassInitialization.ts",
|
|
"codefixes/requireInTs.ts",
|
|
"codefixes/useDefaultImport.ts",
|
|
"codefixes/useBigintLiteral.ts",
|
|
"codefixes/fixAddModuleReferTypeMissingTypeof.ts",
|
|
"codefixes/wrapJsxInFragment.ts",
|
|
"codefixes/convertToMappedObjectType.ts",
|
|
"codefixes/removeAccidentalCallParentheses.ts",
|
|
"codefixes/removeUnnecessaryAwait.ts",
|
|
"codefixes/splitTypeOnlyImport.ts",
|
|
"codefixes/convertConstToLet.ts",
|
|
"codefixes/fixExpectedComma.ts",
|
|
"refactors/convertExport.ts",
|
|
"refactors/convertImport.ts",
|
|
"refactors/convertToOptionalChainExpression.ts",
|
|
"refactors/convertOverloadListToSingleSignature.ts",
|
|
"refactors/extractSymbol.ts",
|
|
"refactors/extractType.ts",
|
|
"refactors/generateGetAccessorAndSetAccessor.ts",
|
|
"refactors/moveToNewFile.ts",
|
|
"refactors/addOrRemoveBracesToArrowFunction.ts",
|
|
"refactors/convertParamsToDestructuredObject.ts",
|
|
"refactors/convertStringOrTemplateLiteral.ts",
|
|
"refactors/convertArrowFunctionOrFunctionExpression.ts",
|
|
"services.ts",
|
|
"breakpoints.ts",
|
|
"transform.ts",
|
|
"shims.ts",
|
|
"globalThisShim.ts",
|
|
"exportAsModule.ts"
|
|
]
|
|
}
|