From 9fc326072f69c6442f1c2c715750a24e2be721ec Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Fri, 5 Mar 2021 13:01:12 +0100 Subject: [PATCH] remove displayLazyShapeCompilation option --- src/compiler/builderState.ts | 2 +- src/compiler/commandLineParser.ts | 6 ------ src/compiler/types.ts | 1 - src/server/protocol.ts | 1 - tests/baselines/reference/api/tsserverlibrary.d.ts | 1 - .../disableLazyShapeComputation/tsconfig.json | 5 ----- 6 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 tests/baselines/reference/showConfig/Shows tsconfig for single option/disableLazyShapeComputation/tsconfig.json diff --git a/src/compiler/builderState.ts b/src/compiler/builderState.ts index 379751043a88a..197d79efde2d9 100644 --- a/src/compiler/builderState.ts +++ b/src/compiler/builderState.ts @@ -341,7 +341,7 @@ namespace ts { } } else { - if ((prevSignature === undefined && avoidInitializingSignature) && !programOfThisState.getCompilerOptions().disableLazyShapeComputation) { + if (prevSignature === undefined && avoidInitializingSignature) { if (exportedModulesMapCache) { const references = state.referencedMap ? state.referencedMap.get(sourceFile.resolvedPath) : undefined; exportedModulesMapCache.set(sourceFile.resolvedPath, references || false); diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index dc8053cf10996..d02c6cfcf98b0 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -941,12 +941,6 @@ namespace ts { category: Diagnostics.Advanced_Options, description: Diagnostics.Do_not_emit_declarations_for_code_that_has_an_internal_annotation, }, - { - name: "disableLazyShapeComputation", - type: "boolean", - category: Diagnostics.Advanced_Options, - description: Diagnostics.Disable_lazy_computation_of_module_shapes - }, { name: "disableSizeLimit", type: "boolean", diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 2b492dda4c761..5b6bd03eecfd8 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -5840,7 +5840,6 @@ namespace ts { declarationDir?: string; /* @internal */ diagnostics?: boolean; /* @internal */ extendedDiagnostics?: boolean; - /* @internal */ disableLazyShapeComputation?: boolean; disableSizeLimit?: boolean; disableSourceOfProjectReferenceRedirect?: boolean; disableSolutionSearching?: boolean; diff --git a/src/server/protocol.ts b/src/server/protocol.ts index a48695e74af95..68d46ea7de217 100644 --- a/src/server/protocol.ts +++ b/src/server/protocol.ts @@ -3315,7 +3315,6 @@ namespace ts.server.protocol { checkJs?: boolean; declaration?: boolean; declarationDir?: string; - disableLazyShapeComputation?: boolean; disableSizeLimit?: boolean; downlevelIteration?: boolean; emitBOM?: boolean; diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index ef6d779decb55..aa6a43193d819 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -9157,7 +9157,6 @@ declare namespace ts.server.protocol { checkJs?: boolean; declaration?: boolean; declarationDir?: string; - disableLazyShapeComputation?: boolean; disableSizeLimit?: boolean; downlevelIteration?: boolean; emitBOM?: boolean; diff --git a/tests/baselines/reference/showConfig/Shows tsconfig for single option/disableLazyShapeComputation/tsconfig.json b/tests/baselines/reference/showConfig/Shows tsconfig for single option/disableLazyShapeComputation/tsconfig.json deleted file mode 100644 index 72d1e3783e6f9..0000000000000 --- a/tests/baselines/reference/showConfig/Shows tsconfig for single option/disableLazyShapeComputation/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "compilerOptions": { - "disableLazyShapeComputation": true - } -}