typescript 5.4.0-dev.20231208 → 5.4.0-dev.20231209

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/tsserver.js CHANGED
@@ -333,6 +333,7 @@ __export(server_exports, {
333
333
  computeSignature: () => computeSignature,
334
334
  computeSignatureWithDiagnostics: () => computeSignatureWithDiagnostics,
335
335
  computeSuggestionDiagnostics: () => computeSuggestionDiagnostics,
336
+ computedOptions: () => computedOptions,
336
337
  concatenate: () => concatenate,
337
338
  concatenateDiagnosticMessageChains: () => concatenateDiagnosticMessageChains,
338
339
  consumesNodeCoreModules: () => consumesNodeCoreModules,
@@ -2334,7 +2335,7 @@ module.exports = __toCommonJS(server_exports);
2334
2335
 
2335
2336
  // src/compiler/corePublic.ts
2336
2337
  var versionMajorMinor = "5.4";
2337
- var version = `${versionMajorMinor}.0-dev.20231208`;
2338
+ var version = `${versionMajorMinor}.0-dev.20231209`;
2338
2339
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2339
2340
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2340
2341
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -20522,37 +20523,230 @@ function getSetExternalModuleIndicator(options) {
20522
20523
  return callback;
20523
20524
  }
20524
20525
  }
20525
- function getEmitScriptTarget(compilerOptions) {
20526
- return compilerOptions.target ?? (compilerOptions.module === 100 /* Node16 */ && 9 /* ES2022 */ || compilerOptions.module === 199 /* NodeNext */ && 99 /* ESNext */ || 1 /* ES5 */);
20527
- }
20528
- function getEmitModuleKind(compilerOptions) {
20529
- return typeof compilerOptions.module === "number" ? compilerOptions.module : getEmitScriptTarget(compilerOptions) >= 2 /* ES2015 */ ? 5 /* ES2015 */ : 1 /* CommonJS */;
20530
- }
20531
- function emitModuleKindIsNonNodeESM(moduleKind) {
20532
- return moduleKind >= 5 /* ES2015 */ && moduleKind <= 99 /* ESNext */;
20526
+ function createComputedCompilerOptions(options) {
20527
+ return options;
20533
20528
  }
20534
- function getEmitModuleResolutionKind(compilerOptions) {
20535
- let moduleResolution = compilerOptions.moduleResolution;
20536
- if (moduleResolution === void 0) {
20537
- switch (getEmitModuleKind(compilerOptions)) {
20538
- case 1 /* CommonJS */:
20539
- moduleResolution = 2 /* Node10 */;
20540
- break;
20541
- case 100 /* Node16 */:
20542
- moduleResolution = 3 /* Node16 */;
20543
- break;
20544
- case 199 /* NodeNext */:
20545
- moduleResolution = 99 /* NodeNext */;
20546
- break;
20547
- default:
20548
- moduleResolution = 1 /* Classic */;
20549
- break;
20529
+ var computedOptions = createComputedCompilerOptions({
20530
+ target: {
20531
+ dependencies: ["module"],
20532
+ computeValue: (compilerOptions) => {
20533
+ return compilerOptions.target ?? (compilerOptions.module === 100 /* Node16 */ && 9 /* ES2022 */ || compilerOptions.module === 199 /* NodeNext */ && 99 /* ESNext */ || 1 /* ES5 */);
20534
+ }
20535
+ },
20536
+ module: {
20537
+ dependencies: ["target"],
20538
+ computeValue: (compilerOptions) => {
20539
+ return typeof compilerOptions.module === "number" ? compilerOptions.module : computedOptions.target.computeValue(compilerOptions) >= 2 /* ES2015 */ ? 5 /* ES2015 */ : 1 /* CommonJS */;
20540
+ }
20541
+ },
20542
+ moduleResolution: {
20543
+ dependencies: ["module", "target"],
20544
+ computeValue: (compilerOptions) => {
20545
+ let moduleResolution = compilerOptions.moduleResolution;
20546
+ if (moduleResolution === void 0) {
20547
+ switch (computedOptions.module.computeValue(compilerOptions)) {
20548
+ case 1 /* CommonJS */:
20549
+ moduleResolution = 2 /* Node10 */;
20550
+ break;
20551
+ case 100 /* Node16 */:
20552
+ moduleResolution = 3 /* Node16 */;
20553
+ break;
20554
+ case 199 /* NodeNext */:
20555
+ moduleResolution = 99 /* NodeNext */;
20556
+ break;
20557
+ default:
20558
+ moduleResolution = 1 /* Classic */;
20559
+ break;
20560
+ }
20561
+ }
20562
+ return moduleResolution;
20563
+ }
20564
+ },
20565
+ moduleDetection: {
20566
+ dependencies: ["module", "target"],
20567
+ computeValue: (compilerOptions) => {
20568
+ return compilerOptions.moduleDetection || (computedOptions.module.computeValue(compilerOptions) === 100 /* Node16 */ || computedOptions.module.computeValue(compilerOptions) === 199 /* NodeNext */ ? 3 /* Force */ : 2 /* Auto */);
20569
+ }
20570
+ },
20571
+ isolatedModules: {
20572
+ dependencies: ["verbatimModuleSyntax"],
20573
+ computeValue: (compilerOptions) => {
20574
+ return !!(compilerOptions.isolatedModules || compilerOptions.verbatimModuleSyntax);
20575
+ }
20576
+ },
20577
+ esModuleInterop: {
20578
+ dependencies: ["module", "target"],
20579
+ computeValue: (compilerOptions) => {
20580
+ if (compilerOptions.esModuleInterop !== void 0) {
20581
+ return compilerOptions.esModuleInterop;
20582
+ }
20583
+ switch (computedOptions.module.computeValue(compilerOptions)) {
20584
+ case 100 /* Node16 */:
20585
+ case 199 /* NodeNext */:
20586
+ return true;
20587
+ }
20588
+ return false;
20589
+ }
20590
+ },
20591
+ allowSyntheticDefaultImports: {
20592
+ dependencies: ["module", "target", "moduleResolution"],
20593
+ computeValue: (compilerOptions) => {
20594
+ if (compilerOptions.allowSyntheticDefaultImports !== void 0) {
20595
+ return compilerOptions.allowSyntheticDefaultImports;
20596
+ }
20597
+ return computedOptions.esModuleInterop.computeValue(compilerOptions) || computedOptions.module.computeValue(compilerOptions) === 4 /* System */ || computedOptions.moduleResolution.computeValue(compilerOptions) === 100 /* Bundler */;
20598
+ }
20599
+ },
20600
+ resolvePackageJsonExports: {
20601
+ dependencies: ["moduleResolution"],
20602
+ computeValue: (compilerOptions) => {
20603
+ const moduleResolution = computedOptions.moduleResolution.computeValue(compilerOptions);
20604
+ if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) {
20605
+ return false;
20606
+ }
20607
+ if (compilerOptions.resolvePackageJsonExports !== void 0) {
20608
+ return compilerOptions.resolvePackageJsonExports;
20609
+ }
20610
+ switch (moduleResolution) {
20611
+ case 3 /* Node16 */:
20612
+ case 99 /* NodeNext */:
20613
+ case 100 /* Bundler */:
20614
+ return true;
20615
+ }
20616
+ return false;
20617
+ }
20618
+ },
20619
+ resolvePackageJsonImports: {
20620
+ dependencies: ["moduleResolution", "resolvePackageJsonExports"],
20621
+ computeValue: (compilerOptions) => {
20622
+ const moduleResolution = computedOptions.moduleResolution.computeValue(compilerOptions);
20623
+ if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) {
20624
+ return false;
20625
+ }
20626
+ if (compilerOptions.resolvePackageJsonExports !== void 0) {
20627
+ return compilerOptions.resolvePackageJsonExports;
20628
+ }
20629
+ switch (moduleResolution) {
20630
+ case 3 /* Node16 */:
20631
+ case 99 /* NodeNext */:
20632
+ case 100 /* Bundler */:
20633
+ return true;
20634
+ }
20635
+ return false;
20636
+ }
20637
+ },
20638
+ resolveJsonModule: {
20639
+ dependencies: ["moduleResolution", "module", "target"],
20640
+ computeValue: (compilerOptions) => {
20641
+ if (compilerOptions.resolveJsonModule !== void 0) {
20642
+ return compilerOptions.resolveJsonModule;
20643
+ }
20644
+ return computedOptions.moduleResolution.computeValue(compilerOptions) === 100 /* Bundler */;
20645
+ }
20646
+ },
20647
+ declaration: {
20648
+ dependencies: ["composite"],
20649
+ computeValue: (compilerOptions) => {
20650
+ return !!(compilerOptions.declaration || compilerOptions.composite);
20651
+ }
20652
+ },
20653
+ preserveConstEnums: {
20654
+ dependencies: ["isolatedModules", "verbatimModuleSyntax"],
20655
+ computeValue: (compilerOptions) => {
20656
+ return !!(compilerOptions.preserveConstEnums || computedOptions.isolatedModules.computeValue(compilerOptions));
20657
+ }
20658
+ },
20659
+ incremental: {
20660
+ dependencies: ["composite"],
20661
+ computeValue: (compilerOptions) => {
20662
+ return !!(compilerOptions.incremental || compilerOptions.composite);
20663
+ }
20664
+ },
20665
+ declarationMap: {
20666
+ dependencies: ["declaration", "composite"],
20667
+ computeValue: (compilerOptions) => {
20668
+ return !!(compilerOptions.declarationMap && computedOptions.declaration.computeValue(compilerOptions));
20669
+ }
20670
+ },
20671
+ allowJs: {
20672
+ dependencies: ["checkJs"],
20673
+ computeValue: (compilerOptions) => {
20674
+ return compilerOptions.allowJs === void 0 ? !!compilerOptions.checkJs : compilerOptions.allowJs;
20675
+ }
20676
+ },
20677
+ useDefineForClassFields: {
20678
+ dependencies: ["target", "module"],
20679
+ computeValue: (compilerOptions) => {
20680
+ return compilerOptions.useDefineForClassFields === void 0 ? computedOptions.target.computeValue(compilerOptions) >= 9 /* ES2022 */ : compilerOptions.useDefineForClassFields;
20681
+ }
20682
+ },
20683
+ noImplicitAny: {
20684
+ dependencies: ["strict"],
20685
+ computeValue: (compilerOptions) => {
20686
+ return getStrictOptionValue(compilerOptions, "noImplicitAny");
20687
+ }
20688
+ },
20689
+ noImplicitThis: {
20690
+ dependencies: ["strict"],
20691
+ computeValue: (compilerOptions) => {
20692
+ return getStrictOptionValue(compilerOptions, "noImplicitThis");
20693
+ }
20694
+ },
20695
+ strictNullChecks: {
20696
+ dependencies: ["strict"],
20697
+ computeValue: (compilerOptions) => {
20698
+ return getStrictOptionValue(compilerOptions, "strictNullChecks");
20699
+ }
20700
+ },
20701
+ strictFunctionTypes: {
20702
+ dependencies: ["strict"],
20703
+ computeValue: (compilerOptions) => {
20704
+ return getStrictOptionValue(compilerOptions, "strictFunctionTypes");
20705
+ }
20706
+ },
20707
+ strictBindCallApply: {
20708
+ dependencies: ["strict"],
20709
+ computeValue: (compilerOptions) => {
20710
+ return getStrictOptionValue(compilerOptions, "strictBindCallApply");
20711
+ }
20712
+ },
20713
+ strictPropertyInitialization: {
20714
+ dependencies: ["strict"],
20715
+ computeValue: (compilerOptions) => {
20716
+ return getStrictOptionValue(compilerOptions, "strictPropertyInitialization");
20717
+ }
20718
+ },
20719
+ alwaysStrict: {
20720
+ dependencies: ["strict"],
20721
+ computeValue: (compilerOptions) => {
20722
+ return getStrictOptionValue(compilerOptions, "alwaysStrict");
20723
+ }
20724
+ },
20725
+ useUnknownInCatchVariables: {
20726
+ dependencies: ["strict"],
20727
+ computeValue: (compilerOptions) => {
20728
+ return getStrictOptionValue(compilerOptions, "useUnknownInCatchVariables");
20550
20729
  }
20551
20730
  }
20552
- return moduleResolution;
20553
- }
20554
- function getEmitModuleDetectionKind(options) {
20555
- return options.moduleDetection || (getEmitModuleKind(options) === 100 /* Node16 */ || getEmitModuleKind(options) === 199 /* NodeNext */ ? 3 /* Force */ : 2 /* Auto */);
20731
+ });
20732
+ var getEmitScriptTarget = computedOptions.target.computeValue;
20733
+ var getEmitModuleKind = computedOptions.module.computeValue;
20734
+ var getEmitModuleResolutionKind = computedOptions.moduleResolution.computeValue;
20735
+ var getEmitModuleDetectionKind = computedOptions.moduleDetection.computeValue;
20736
+ var getIsolatedModules = computedOptions.isolatedModules.computeValue;
20737
+ var getESModuleInterop = computedOptions.esModuleInterop.computeValue;
20738
+ var getAllowSyntheticDefaultImports = computedOptions.allowSyntheticDefaultImports.computeValue;
20739
+ var getResolvePackageJsonExports = computedOptions.resolvePackageJsonExports.computeValue;
20740
+ var getResolvePackageJsonImports = computedOptions.resolvePackageJsonImports.computeValue;
20741
+ var getResolveJsonModule = computedOptions.resolveJsonModule.computeValue;
20742
+ var getEmitDeclarations = computedOptions.declaration.computeValue;
20743
+ var shouldPreserveConstEnums = computedOptions.preserveConstEnums.computeValue;
20744
+ var isIncrementalCompilation = computedOptions.incremental.computeValue;
20745
+ var getAreDeclarationMapsEnabled = computedOptions.declarationMap.computeValue;
20746
+ var getAllowJSCompilerOption = computedOptions.allowJs.computeValue;
20747
+ var getUseDefineForClassFields = computedOptions.useDefineForClassFields.computeValue;
20748
+ function emitModuleKindIsNonNodeESM(moduleKind) {
20749
+ return moduleKind >= 5 /* ES2015 */ && moduleKind <= 99 /* ESNext */;
20556
20750
  }
20557
20751
  function hasJsonModuleEmitEnabled(options) {
20558
20752
  switch (getEmitModuleKind(options)) {
@@ -20569,9 +20763,6 @@ function hasJsonModuleEmitEnabled(options) {
20569
20763
  return false;
20570
20764
  }
20571
20765
  }
20572
- function getIsolatedModules(options) {
20573
- return !!(options.isolatedModules || options.verbatimModuleSyntax);
20574
- }
20575
20766
  function importNameElisionDisabled(options) {
20576
20767
  return options.verbatimModuleSyntax || options.isolatedModules && options.preserveValueImports;
20577
20768
  }
@@ -20581,88 +20772,15 @@ function unreachableCodeIsError(options) {
20581
20772
  function unusedLabelIsError(options) {
20582
20773
  return options.allowUnusedLabels === false;
20583
20774
  }
20584
- function getAreDeclarationMapsEnabled(options) {
20585
- return !!(getEmitDeclarations(options) && options.declarationMap);
20586
- }
20587
- function getESModuleInterop(compilerOptions) {
20588
- if (compilerOptions.esModuleInterop !== void 0) {
20589
- return compilerOptions.esModuleInterop;
20590
- }
20591
- switch (getEmitModuleKind(compilerOptions)) {
20592
- case 100 /* Node16 */:
20593
- case 199 /* NodeNext */:
20594
- return true;
20595
- }
20596
- return void 0;
20597
- }
20598
- function getAllowSyntheticDefaultImports(compilerOptions) {
20599
- if (compilerOptions.allowSyntheticDefaultImports !== void 0) {
20600
- return compilerOptions.allowSyntheticDefaultImports;
20601
- }
20602
- return getESModuleInterop(compilerOptions) || getEmitModuleKind(compilerOptions) === 4 /* System */ || getEmitModuleResolutionKind(compilerOptions) === 100 /* Bundler */;
20603
- }
20604
20775
  function moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution) {
20605
20776
  return moduleResolution >= 3 /* Node16 */ && moduleResolution <= 99 /* NodeNext */ || moduleResolution === 100 /* Bundler */;
20606
20777
  }
20607
20778
  function shouldResolveJsRequire(compilerOptions) {
20608
20779
  return !!compilerOptions.noDtsResolution || getEmitModuleResolutionKind(compilerOptions) !== 100 /* Bundler */;
20609
20780
  }
20610
- function getResolvePackageJsonExports(compilerOptions) {
20611
- const moduleResolution = getEmitModuleResolutionKind(compilerOptions);
20612
- if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) {
20613
- return false;
20614
- }
20615
- if (compilerOptions.resolvePackageJsonExports !== void 0) {
20616
- return compilerOptions.resolvePackageJsonExports;
20617
- }
20618
- switch (moduleResolution) {
20619
- case 3 /* Node16 */:
20620
- case 99 /* NodeNext */:
20621
- case 100 /* Bundler */:
20622
- return true;
20623
- }
20624
- return false;
20625
- }
20626
- function getResolvePackageJsonImports(compilerOptions) {
20627
- const moduleResolution = getEmitModuleResolutionKind(compilerOptions);
20628
- if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) {
20629
- return false;
20630
- }
20631
- if (compilerOptions.resolvePackageJsonExports !== void 0) {
20632
- return compilerOptions.resolvePackageJsonExports;
20633
- }
20634
- switch (moduleResolution) {
20635
- case 3 /* Node16 */:
20636
- case 99 /* NodeNext */:
20637
- case 100 /* Bundler */:
20638
- return true;
20639
- }
20640
- return false;
20641
- }
20642
- function getResolveJsonModule(compilerOptions) {
20643
- if (compilerOptions.resolveJsonModule !== void 0) {
20644
- return compilerOptions.resolveJsonModule;
20645
- }
20646
- return getEmitModuleResolutionKind(compilerOptions) === 100 /* Bundler */;
20647
- }
20648
- function getEmitDeclarations(compilerOptions) {
20649
- return !!(compilerOptions.declaration || compilerOptions.composite);
20650
- }
20651
- function shouldPreserveConstEnums(compilerOptions) {
20652
- return !!(compilerOptions.preserveConstEnums || getIsolatedModules(compilerOptions));
20653
- }
20654
- function isIncrementalCompilation(options) {
20655
- return !!(options.incremental || options.composite);
20656
- }
20657
20781
  function getStrictOptionValue(compilerOptions, flag) {
20658
20782
  return compilerOptions[flag] === void 0 ? !!compilerOptions.strict : !!compilerOptions[flag];
20659
20783
  }
20660
- function getAllowJSCompilerOption(compilerOptions) {
20661
- return compilerOptions.allowJs === void 0 ? !!compilerOptions.checkJs : compilerOptions.allowJs;
20662
- }
20663
- function getUseDefineForClassFields(compilerOptions) {
20664
- return compilerOptions.useDefineForClassFields === void 0 ? getEmitScriptTarget(compilerOptions) >= 9 /* ES2022 */ : compilerOptions.useDefineForClassFields;
20665
- }
20666
20784
  function getEmitStandardClassFields(compilerOptions) {
20667
20785
  return compilerOptions.useDefineForClassFields !== false && getEmitScriptTarget(compilerOptions) >= 9 /* ES2022 */;
20668
20786
  }
@@ -40335,7 +40453,8 @@ function convertToTSConfig(configParseResult, configFileName, host) {
40335
40453
  ),
40336
40454
  (f) => getRelativePathFromFile(getNormalizedAbsolutePath(configFileName, host.getCurrentDirectory()), getNormalizedAbsolutePath(f, host.getCurrentDirectory()), getCanonicalFileName)
40337
40455
  );
40338
- const optionMap = serializeCompilerOptions(configParseResult.options, { configFilePath: getNormalizedAbsolutePath(configFileName, host.getCurrentDirectory()), useCaseSensitiveFileNames: host.useCaseSensitiveFileNames });
40456
+ const pathOptions = { configFilePath: getNormalizedAbsolutePath(configFileName, host.getCurrentDirectory()), useCaseSensitiveFileNames: host.useCaseSensitiveFileNames };
40457
+ const optionMap = serializeCompilerOptions(configParseResult.options, pathOptions);
40339
40458
  const watchOptionMap = configParseResult.watchOptions && serializeWatchOptions(configParseResult.watchOptions);
40340
40459
  const config = {
40341
40460
  compilerOptions: {
@@ -40360,6 +40479,18 @@ function convertToTSConfig(configParseResult, configFileName, host) {
40360
40479
  } : {},
40361
40480
  compileOnSave: !!configParseResult.compileOnSave ? true : void 0
40362
40481
  };
40482
+ const providedKeys = new Set(optionMap.keys());
40483
+ const impliedCompilerOptions = {};
40484
+ for (const option in computedOptions) {
40485
+ if (!providedKeys.has(option) && some(computedOptions[option].dependencies, (dep) => providedKeys.has(dep))) {
40486
+ const implied = computedOptions[option].computeValue(configParseResult.options);
40487
+ const defaultValue = computedOptions[option].computeValue({});
40488
+ if (implied !== defaultValue) {
40489
+ impliedCompilerOptions[option] = computedOptions[option].computeValue(configParseResult.options);
40490
+ }
40491
+ }
40492
+ }
40493
+ assign(config.compilerOptions, optionMapToObject(serializeCompilerOptions(impliedCompilerOptions, pathOptions)));
40363
40494
  return config;
40364
40495
  }
40365
40496
  function optionMapToObject(optionMap) {
@@ -63033,7 +63164,9 @@ function createTypeChecker(host) {
63033
63164
  if (checkType === wildcardType || extendsType === wildcardType) {
63034
63165
  return wildcardType;
63035
63166
  }
63036
- const checkTuples = isSimpleTupleType(root.node.checkType) && isSimpleTupleType(root.node.extendsType) && length(root.node.checkType.elements) === length(root.node.extendsType.elements);
63167
+ const checkTypeNode = skipTypeParentheses(root.node.checkType);
63168
+ const extendsTypeNode = skipTypeParentheses(root.node.extendsType);
63169
+ const checkTuples = isSimpleTupleType(checkTypeNode) && isSimpleTupleType(extendsTypeNode) && length(checkTypeNode.elements) === length(extendsTypeNode.elements);
63037
63170
  const checkTypeDeferred = isDeferredType(checkType, checkTuples);
63038
63171
  let combinedMapper;
63039
63172
  if (root.inferTypeParameters) {
@@ -159770,7 +159903,6 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position,
159770
159903
  }
159771
159904
  const semanticStart = timestamp();
159772
159905
  let completionKind = 5 /* None */;
159773
- let isNonContextualObjectLiteral = false;
159774
159906
  let hasUnresolvedAutoImports = false;
159775
159907
  let symbols = [];
159776
159908
  let importSpecifierResolver;
@@ -160130,8 +160262,6 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position,
160130
160262
  function shouldOfferImportCompletions() {
160131
160263
  if (importStatementCompletion)
160132
160264
  return true;
160133
- if (isNonContextualObjectLiteral)
160134
- return false;
160135
160265
  if (!preferences.includeCompletionsForModuleExports)
160136
160266
  return false;
160137
160267
  if (sourceFile.externalModuleIndicator || sourceFile.commonJsModuleIndicator)
@@ -160434,7 +160564,6 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position,
160434
160564
  if (objectLikeContainer.flags & 67108864 /* InWithStatement */) {
160435
160565
  return 2 /* Fail */;
160436
160566
  }
160437
- isNonContextualObjectLiteral = true;
160438
160567
  return 0 /* Continue */;
160439
160568
  }
160440
160569
  const completionsType = typeChecker.getContextualType(objectLikeContainer, 4 /* Completions */);
@@ -160445,7 +160574,6 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position,
160445
160574
  existingMembers = objectLikeContainer.properties;
160446
160575
  if (typeMembers.length === 0) {
160447
160576
  if (!hasNumberIndextype) {
160448
- isNonContextualObjectLiteral = true;
160449
160577
  return 0 /* Continue */;
160450
160578
  }
160451
160579
  }
@@ -167630,16 +167758,16 @@ function getRenameInfoForModule(node, sourceFile, moduleSymbol) {
167630
167758
  if (!moduleSourceFile)
167631
167759
  return void 0;
167632
167760
  const withoutIndex = endsWith(node.text, "/index") || endsWith(node.text, "/index.js") ? void 0 : tryRemoveSuffix(removeFileExtension(moduleSourceFile.fileName), "/index");
167633
- const name = withoutIndex === void 0 ? moduleSourceFile.fileName : withoutIndex;
167761
+ const fileName = withoutIndex === void 0 ? moduleSourceFile.fileName : withoutIndex;
167634
167762
  const kind = withoutIndex === void 0 ? "module" /* moduleElement */ : "directory" /* directory */;
167635
167763
  const indexAfterLastSlash = node.text.lastIndexOf("/") + 1;
167636
167764
  const triggerSpan = createTextSpan(node.getStart(sourceFile) + 1 + indexAfterLastSlash, node.text.length - indexAfterLastSlash);
167637
167765
  return {
167638
167766
  canRename: true,
167639
- fileToRename: name,
167767
+ fileToRename: fileName,
167640
167768
  kind,
167641
- displayName: name,
167642
- fullDisplayName: name,
167769
+ displayName: fileName,
167770
+ fullDisplayName: node.text,
167643
167771
  kindModifiers: "" /* none */,
167644
167772
  triggerSpan
167645
167773
  };
@@ -173461,6 +173589,7 @@ __export(ts_exports2, {
173461
173589
  computeSignature: () => computeSignature,
173462
173590
  computeSignatureWithDiagnostics: () => computeSignatureWithDiagnostics,
173463
173591
  computeSuggestionDiagnostics: () => computeSuggestionDiagnostics,
173592
+ computedOptions: () => computedOptions,
173464
173593
  concatenate: () => concatenate,
173465
173594
  concatenateDiagnosticMessageChains: () => concatenateDiagnosticMessageChains,
173466
173595
  consumesNodeCoreModules: () => consumesNodeCoreModules,
@@ -188255,6 +188384,7 @@ start(initializeNodeSystem(), require("os").platform());
188255
188384
  computeSignature,
188256
188385
  computeSignatureWithDiagnostics,
188257
188386
  computeSuggestionDiagnostics,
188387
+ computedOptions,
188258
188388
  concatenate,
188259
188389
  concatenateDiagnosticMessageChains,
188260
188390
  consumesNodeCoreModules,
@@ -1087,6 +1087,7 @@ declare namespace ts {
1087
1087
  displayName: string;
1088
1088
  /**
1089
1089
  * Full display name of item to be renamed.
1090
+ * If item to be renamed is a file, then this is the original text of the module specifer
1090
1091
  */
1091
1092
  fullDisplayName: string;
1092
1093
  /**
@@ -6831,6 +6832,20 @@ declare namespace ts {
6831
6832
  * is `never`. Instead, use `type.flags & TypeFlags.Never`.
6832
6833
  */
6833
6834
  getNeverType(): Type;
6835
+ /**
6836
+ * Returns true if the "source" type is assignable to the "target" type.
6837
+ *
6838
+ * ```ts
6839
+ * declare const abcLiteral: ts.Type; // Type of "abc"
6840
+ * declare const stringType: ts.Type; // Type of string
6841
+ *
6842
+ * isTypeAssignableTo(abcLiteral, abcLiteral); // true; "abc" is assignable to "abc"
6843
+ * isTypeAssignableTo(abcLiteral, stringType); // true; "abc" is assignable to string
6844
+ * isTypeAssignableTo(stringType, abcLiteral); // false; string is not assignable to "abc"
6845
+ * isTypeAssignableTo(stringType, stringType); // true; string is assignable to string
6846
+ * ```
6847
+ */
6848
+ isTypeAssignableTo(source: Type, target: Type): boolean;
6834
6849
  /**
6835
6850
  * True if this type is the `Array` or `ReadonlyArray` type from lib.d.ts.
6836
6851
  * This function will _not_ return true if passed a type which
@@ -11092,6 +11107,10 @@ declare namespace ts {
11092
11107
  */
11093
11108
  fileToRename?: string;
11094
11109
  displayName: string;
11110
+ /**
11111
+ * Full display name of item to be renamed.
11112
+ * If item to be renamed is a file, then this is the original text of the module specifer
11113
+ */
11095
11114
  fullDisplayName: string;
11096
11115
  kind: ScriptElementKind;
11097
11116
  kindModifiers: string;