typescript 5.5.0-dev.20240304 → 5.5.0-dev.20240306

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/tsc.js CHANGED
@@ -18,7 +18,7 @@ and limitations under the License.
18
18
 
19
19
  // src/compiler/corePublic.ts
20
20
  var versionMajorMinor = "5.5";
21
- var version = `${versionMajorMinor}.0-dev.20240304`;
21
+ var version = `${versionMajorMinor}.0-dev.20240306`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -1215,7 +1215,7 @@ function skipWhile(array, predicate) {
1215
1215
  }
1216
1216
  }
1217
1217
  function isNodeLikeSystem() {
1218
- return typeof process !== "undefined" && !!process.nextTick && !process.browser && typeof module === "object";
1218
+ return typeof process !== "undefined" && !!process.nextTick && !process.browser && typeof require !== "undefined";
1219
1219
  }
1220
1220
 
1221
1221
  // src/compiler/debug.ts
@@ -54514,10 +54514,11 @@ function createTypeChecker(host) {
54514
54514
  const modifiers = getMappedTypeModifiers(type);
54515
54515
  return modifiers & 8 /* ExcludeOptional */ ? -1 : modifiers & 4 /* IncludeOptional */ ? 1 : 0;
54516
54516
  }
54517
+ function getModifiersTypeOptionality(type) {
54518
+ return type.flags & 2097152 /* Intersection */ ? Math.max(...map(type.types, getModifiersTypeOptionality)) : getObjectFlags(type) & 32 /* Mapped */ ? getCombinedMappedTypeOptionality(type) : 0;
54519
+ }
54517
54520
  function getCombinedMappedTypeOptionality(type) {
54518
- const optionality = getMappedTypeOptionality(type);
54519
- const modifiersType = getModifiersTypeFromMappedType(type);
54520
- return optionality || (isGenericMappedType(modifiersType) ? getMappedTypeOptionality(modifiersType) : 0);
54521
+ return getMappedTypeOptionality(type) || getModifiersTypeOptionality(getModifiersTypeFromMappedType(type));
54521
54522
  }
54522
54523
  function isPartialMappedType(type) {
54523
54524
  return !!(getObjectFlags(type) & 32 /* Mapped */ && getMappedTypeModifiers(type) & 4 /* IncludeOptional */);
@@ -58282,7 +58283,13 @@ function createTypeChecker(host) {
58282
58283
  function substituteIndexedMappedType(objectType, index) {
58283
58284
  const mapper = createTypeMapper([getTypeParameterFromMappedType(objectType)], [index]);
58284
58285
  const templateMapper = combineTypeMappers(objectType.mapper, mapper);
58285
- return instantiateType(getTemplateTypeFromMappedType(objectType.target || objectType), templateMapper);
58286
+ const instantiatedTemplateType = instantiateType(getTemplateTypeFromMappedType(objectType.target || objectType), templateMapper);
58287
+ return addOptionality(
58288
+ instantiatedTemplateType,
58289
+ /*isProperty*/
58290
+ true,
58291
+ getCombinedMappedTypeOptionality(objectType) > 0
58292
+ );
58286
58293
  }
58287
58294
  function getIndexedAccessType(objectType, indexType, accessFlags = 0 /* None */, accessNode, aliasSymbol, aliasTypeArguments) {
58288
58295
  return getIndexedAccessTypeOrUndefined(objectType, indexType, accessFlags, accessNode, aliasSymbol, aliasTypeArguments) || (accessNode ? errorType : unknownType);
package/lib/tsserver.js CHANGED
@@ -2325,7 +2325,7 @@ module.exports = __toCommonJS(server_exports);
2325
2325
 
2326
2326
  // src/compiler/corePublic.ts
2327
2327
  var versionMajorMinor = "5.5";
2328
- var version = `${versionMajorMinor}.0-dev.20240304`;
2328
+ var version = `${versionMajorMinor}.0-dev.20240306`;
2329
2329
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2330
2330
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2331
2331
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -3936,7 +3936,7 @@ function skipWhile(array, predicate) {
3936
3936
  }
3937
3937
  }
3938
3938
  function isNodeLikeSystem() {
3939
- return typeof process !== "undefined" && !!process.nextTick && !process.browser && typeof module === "object";
3939
+ return typeof process !== "undefined" && !!process.nextTick && !process.browser && typeof require !== "undefined";
3940
3940
  }
3941
3941
 
3942
3942
  // src/compiler/debug.ts
@@ -59233,10 +59233,11 @@ function createTypeChecker(host) {
59233
59233
  const modifiers = getMappedTypeModifiers(type);
59234
59234
  return modifiers & 8 /* ExcludeOptional */ ? -1 : modifiers & 4 /* IncludeOptional */ ? 1 : 0;
59235
59235
  }
59236
+ function getModifiersTypeOptionality(type) {
59237
+ return type.flags & 2097152 /* Intersection */ ? Math.max(...map(type.types, getModifiersTypeOptionality)) : getObjectFlags(type) & 32 /* Mapped */ ? getCombinedMappedTypeOptionality(type) : 0;
59238
+ }
59236
59239
  function getCombinedMappedTypeOptionality(type) {
59237
- const optionality = getMappedTypeOptionality(type);
59238
- const modifiersType = getModifiersTypeFromMappedType(type);
59239
- return optionality || (isGenericMappedType(modifiersType) ? getMappedTypeOptionality(modifiersType) : 0);
59240
+ return getMappedTypeOptionality(type) || getModifiersTypeOptionality(getModifiersTypeFromMappedType(type));
59240
59241
  }
59241
59242
  function isPartialMappedType(type) {
59242
59243
  return !!(getObjectFlags(type) & 32 /* Mapped */ && getMappedTypeModifiers(type) & 4 /* IncludeOptional */);
@@ -63001,7 +63002,13 @@ function createTypeChecker(host) {
63001
63002
  function substituteIndexedMappedType(objectType, index) {
63002
63003
  const mapper = createTypeMapper([getTypeParameterFromMappedType(objectType)], [index]);
63003
63004
  const templateMapper = combineTypeMappers(objectType.mapper, mapper);
63004
- return instantiateType(getTemplateTypeFromMappedType(objectType.target || objectType), templateMapper);
63005
+ const instantiatedTemplateType = instantiateType(getTemplateTypeFromMappedType(objectType.target || objectType), templateMapper);
63006
+ return addOptionality(
63007
+ instantiatedTemplateType,
63008
+ /*isProperty*/
63009
+ true,
63010
+ getCombinedMappedTypeOptionality(objectType) > 0
63011
+ );
63005
63012
  }
63006
63013
  function getIndexedAccessType(objectType, indexType, accessFlags = 0 /* None */, accessNode, aliasSymbol, aliasTypeArguments) {
63007
63014
  return getIndexedAccessTypeOrUndefined(objectType, indexType, accessFlags, accessNode, aliasSymbol, aliasTypeArguments) || (accessNode ? errorType : unknownType);
@@ -131109,17 +131116,17 @@ var SemanticClassificationFormat = /* @__PURE__ */ ((SemanticClassificationForma
131109
131116
  SemanticClassificationFormat2["TwentyTwenty"] = "2020";
131110
131117
  return SemanticClassificationFormat2;
131111
131118
  })(SemanticClassificationFormat || {});
131112
- var OrganizeImportsMode = /* @__PURE__ */ ((OrganizeImportsMode3) => {
131113
- OrganizeImportsMode3["All"] = "All";
131114
- OrganizeImportsMode3["SortAndCombine"] = "SortAndCombine";
131115
- OrganizeImportsMode3["RemoveUnused"] = "RemoveUnused";
131116
- return OrganizeImportsMode3;
131119
+ var OrganizeImportsMode = /* @__PURE__ */ ((OrganizeImportsMode2) => {
131120
+ OrganizeImportsMode2["All"] = "All";
131121
+ OrganizeImportsMode2["SortAndCombine"] = "SortAndCombine";
131122
+ OrganizeImportsMode2["RemoveUnused"] = "RemoveUnused";
131123
+ return OrganizeImportsMode2;
131117
131124
  })(OrganizeImportsMode || {});
131118
- var CompletionTriggerKind = /* @__PURE__ */ ((CompletionTriggerKind4) => {
131119
- CompletionTriggerKind4[CompletionTriggerKind4["Invoked"] = 1] = "Invoked";
131120
- CompletionTriggerKind4[CompletionTriggerKind4["TriggerCharacter"] = 2] = "TriggerCharacter";
131121
- CompletionTriggerKind4[CompletionTriggerKind4["TriggerForIncompleteCompletions"] = 3] = "TriggerForIncompleteCompletions";
131122
- return CompletionTriggerKind4;
131125
+ var CompletionTriggerKind = /* @__PURE__ */ ((CompletionTriggerKind3) => {
131126
+ CompletionTriggerKind3[CompletionTriggerKind3["Invoked"] = 1] = "Invoked";
131127
+ CompletionTriggerKind3[CompletionTriggerKind3["TriggerCharacter"] = 2] = "TriggerCharacter";
131128
+ CompletionTriggerKind3[CompletionTriggerKind3["TriggerForIncompleteCompletions"] = 3] = "TriggerForIncompleteCompletions";
131129
+ return CompletionTriggerKind3;
131123
131130
  })(CompletionTriggerKind || {});
131124
131131
  var InlayHintKind = /* @__PURE__ */ ((InlayHintKind2) => {
131125
131132
  InlayHintKind2["Type"] = "Type";
@@ -131140,11 +131147,11 @@ var IndentStyle = /* @__PURE__ */ ((IndentStyle3) => {
131140
131147
  IndentStyle3[IndentStyle3["Smart"] = 2] = "Smart";
131141
131148
  return IndentStyle3;
131142
131149
  })(IndentStyle || {});
131143
- var SemicolonPreference = /* @__PURE__ */ ((SemicolonPreference3) => {
131144
- SemicolonPreference3["Ignore"] = "ignore";
131145
- SemicolonPreference3["Insert"] = "insert";
131146
- SemicolonPreference3["Remove"] = "remove";
131147
- return SemicolonPreference3;
131150
+ var SemicolonPreference = /* @__PURE__ */ ((SemicolonPreference2) => {
131151
+ SemicolonPreference2["Ignore"] = "ignore";
131152
+ SemicolonPreference2["Insert"] = "insert";
131153
+ SemicolonPreference2["Remove"] = "remove";
131154
+ return SemicolonPreference2;
131148
131155
  })(SemicolonPreference || {});
131149
131156
  function getDefaultFormatCodeSettings(newLineCharacter) {
131150
131157
  return {
@@ -131342,33 +131349,33 @@ var ClassificationTypeNames = /* @__PURE__ */ ((ClassificationTypeNames2) => {
131342
131349
  ClassificationTypeNames2["jsxAttributeStringLiteralValue"] = "jsx attribute string literal value";
131343
131350
  return ClassificationTypeNames2;
131344
131351
  })(ClassificationTypeNames || {});
131345
- var ClassificationType = /* @__PURE__ */ ((ClassificationType3) => {
131346
- ClassificationType3[ClassificationType3["comment"] = 1] = "comment";
131347
- ClassificationType3[ClassificationType3["identifier"] = 2] = "identifier";
131348
- ClassificationType3[ClassificationType3["keyword"] = 3] = "keyword";
131349
- ClassificationType3[ClassificationType3["numericLiteral"] = 4] = "numericLiteral";
131350
- ClassificationType3[ClassificationType3["operator"] = 5] = "operator";
131351
- ClassificationType3[ClassificationType3["stringLiteral"] = 6] = "stringLiteral";
131352
- ClassificationType3[ClassificationType3["regularExpressionLiteral"] = 7] = "regularExpressionLiteral";
131353
- ClassificationType3[ClassificationType3["whiteSpace"] = 8] = "whiteSpace";
131354
- ClassificationType3[ClassificationType3["text"] = 9] = "text";
131355
- ClassificationType3[ClassificationType3["punctuation"] = 10] = "punctuation";
131356
- ClassificationType3[ClassificationType3["className"] = 11] = "className";
131357
- ClassificationType3[ClassificationType3["enumName"] = 12] = "enumName";
131358
- ClassificationType3[ClassificationType3["interfaceName"] = 13] = "interfaceName";
131359
- ClassificationType3[ClassificationType3["moduleName"] = 14] = "moduleName";
131360
- ClassificationType3[ClassificationType3["typeParameterName"] = 15] = "typeParameterName";
131361
- ClassificationType3[ClassificationType3["typeAliasName"] = 16] = "typeAliasName";
131362
- ClassificationType3[ClassificationType3["parameterName"] = 17] = "parameterName";
131363
- ClassificationType3[ClassificationType3["docCommentTagName"] = 18] = "docCommentTagName";
131364
- ClassificationType3[ClassificationType3["jsxOpenTagName"] = 19] = "jsxOpenTagName";
131365
- ClassificationType3[ClassificationType3["jsxCloseTagName"] = 20] = "jsxCloseTagName";
131366
- ClassificationType3[ClassificationType3["jsxSelfClosingTagName"] = 21] = "jsxSelfClosingTagName";
131367
- ClassificationType3[ClassificationType3["jsxAttribute"] = 22] = "jsxAttribute";
131368
- ClassificationType3[ClassificationType3["jsxText"] = 23] = "jsxText";
131369
- ClassificationType3[ClassificationType3["jsxAttributeStringLiteralValue"] = 24] = "jsxAttributeStringLiteralValue";
131370
- ClassificationType3[ClassificationType3["bigintLiteral"] = 25] = "bigintLiteral";
131371
- return ClassificationType3;
131352
+ var ClassificationType = /* @__PURE__ */ ((ClassificationType2) => {
131353
+ ClassificationType2[ClassificationType2["comment"] = 1] = "comment";
131354
+ ClassificationType2[ClassificationType2["identifier"] = 2] = "identifier";
131355
+ ClassificationType2[ClassificationType2["keyword"] = 3] = "keyword";
131356
+ ClassificationType2[ClassificationType2["numericLiteral"] = 4] = "numericLiteral";
131357
+ ClassificationType2[ClassificationType2["operator"] = 5] = "operator";
131358
+ ClassificationType2[ClassificationType2["stringLiteral"] = 6] = "stringLiteral";
131359
+ ClassificationType2[ClassificationType2["regularExpressionLiteral"] = 7] = "regularExpressionLiteral";
131360
+ ClassificationType2[ClassificationType2["whiteSpace"] = 8] = "whiteSpace";
131361
+ ClassificationType2[ClassificationType2["text"] = 9] = "text";
131362
+ ClassificationType2[ClassificationType2["punctuation"] = 10] = "punctuation";
131363
+ ClassificationType2[ClassificationType2["className"] = 11] = "className";
131364
+ ClassificationType2[ClassificationType2["enumName"] = 12] = "enumName";
131365
+ ClassificationType2[ClassificationType2["interfaceName"] = 13] = "interfaceName";
131366
+ ClassificationType2[ClassificationType2["moduleName"] = 14] = "moduleName";
131367
+ ClassificationType2[ClassificationType2["typeParameterName"] = 15] = "typeParameterName";
131368
+ ClassificationType2[ClassificationType2["typeAliasName"] = 16] = "typeAliasName";
131369
+ ClassificationType2[ClassificationType2["parameterName"] = 17] = "parameterName";
131370
+ ClassificationType2[ClassificationType2["docCommentTagName"] = 18] = "docCommentTagName";
131371
+ ClassificationType2[ClassificationType2["jsxOpenTagName"] = 19] = "jsxOpenTagName";
131372
+ ClassificationType2[ClassificationType2["jsxCloseTagName"] = 20] = "jsxCloseTagName";
131373
+ ClassificationType2[ClassificationType2["jsxSelfClosingTagName"] = 21] = "jsxSelfClosingTagName";
131374
+ ClassificationType2[ClassificationType2["jsxAttribute"] = 22] = "jsxAttribute";
131375
+ ClassificationType2[ClassificationType2["jsxText"] = 23] = "jsxText";
131376
+ ClassificationType2[ClassificationType2["jsxAttributeStringLiteralValue"] = 24] = "jsxAttributeStringLiteralValue";
131377
+ ClassificationType2[ClassificationType2["bigintLiteral"] = 25] = "bigintLiteral";
131378
+ return ClassificationType2;
131372
131379
  })(ClassificationType || {});
131373
131380
 
131374
131381
  // src/services/utilities.ts
@@ -136020,7 +136027,7 @@ function createDocumentRegistryInternal(useCaseSensitiveFileNames2, currentDirec
136020
136027
  let entry = bucketEntry && getDocumentRegistryEntry(bucketEntry, scriptKind);
136021
136028
  if (!entry && externalCache) {
136022
136029
  const sourceFile = externalCache.getDocument(keyWithMode, path);
136023
- if (sourceFile) {
136030
+ if (sourceFile && sourceFile.scriptKind === scriptKind && sourceFile.text === getSnapshotText(scriptSnapshot)) {
136024
136031
  Debug.assert(acquiring);
136025
136032
  entry = {
136026
136033
  sourceFile,
@@ -171123,6 +171130,8 @@ function getAllRules() {
171123
171130
  rule("SpaceAfterSemicolon", 27 /* SemicolonToken */, anyToken, [isNonJsxSameLineTokenContext], 4 /* InsertSpace */),
171124
171131
  // Remove extra space between for and await
171125
171132
  rule("SpaceBetweenForAndAwaitKeyword", 99 /* ForKeyword */, 135 /* AwaitKeyword */, [isNonJsxSameLineTokenContext], 4 /* InsertSpace */),
171133
+ // Remove extra spaces between ... and type name in tuple spread
171134
+ rule("SpaceBetweenDotDotDotAndTypeName", 26 /* DotDotDotToken */, typeNames, [isNonJsxSameLineTokenContext], 16 /* DeleteSpace */),
171126
171135
  // Add a space between statements. All keywords except (do,else,case) has open/close parens after them.
171127
171136
  // So, we have a rule to add a space for [),Any], [do,Any], [else,Any], and [case,Any]
171128
171137
  rule(
@@ -176292,18 +176301,18 @@ function removeSorted(array, remove, compare) {
176292
176301
  // src/server/_namespaces/ts.server.protocol.ts
176293
176302
  var ts_server_protocol_exports = {};
176294
176303
  __export(ts_server_protocol_exports, {
176295
- ClassificationType: () => ClassificationType2,
176304
+ ClassificationType: () => ClassificationType,
176296
176305
  CommandTypes: () => CommandTypes,
176297
- CompletionTriggerKind: () => CompletionTriggerKind2,
176306
+ CompletionTriggerKind: () => CompletionTriggerKind,
176298
176307
  IndentStyle: () => IndentStyle2,
176299
176308
  JsxEmit: () => JsxEmit2,
176300
176309
  ModuleKind: () => ModuleKind2,
176301
176310
  ModuleResolutionKind: () => ModuleResolutionKind2,
176302
176311
  NewLineKind: () => NewLineKind2,
176303
- OrganizeImportsMode: () => OrganizeImportsMode2,
176312
+ OrganizeImportsMode: () => OrganizeImportsMode,
176304
176313
  PollingWatchKind: () => PollingWatchKind2,
176305
176314
  ScriptTarget: () => ScriptTarget10,
176306
- SemicolonPreference: () => SemicolonPreference2,
176315
+ SemicolonPreference: () => SemicolonPreference,
176307
176316
  WatchDirectoryKind: () => WatchDirectoryKind2,
176308
176317
  WatchFileKind: () => WatchFileKind2
176309
176318
  });
@@ -176422,12 +176431,6 @@ var CommandTypes = /* @__PURE__ */ ((CommandTypes2) => {
176422
176431
  CommandTypes2["WatchChange"] = "watchChange";
176423
176432
  return CommandTypes2;
176424
176433
  })(CommandTypes || {});
176425
- var OrganizeImportsMode2 = /* @__PURE__ */ ((OrganizeImportsMode3) => {
176426
- OrganizeImportsMode3["All"] = "All";
176427
- OrganizeImportsMode3["SortAndCombine"] = "SortAndCombine";
176428
- OrganizeImportsMode3["RemoveUnused"] = "RemoveUnused";
176429
- return OrganizeImportsMode3;
176430
- })(OrganizeImportsMode2 || {});
176431
176434
  var WatchFileKind2 = /* @__PURE__ */ ((WatchFileKind3) => {
176432
176435
  WatchFileKind3["FixedPollingInterval"] = "FixedPollingInterval";
176433
176436
  WatchFileKind3["PriorityPollingInterval"] = "PriorityPollingInterval";
@@ -176451,52 +176454,45 @@ var PollingWatchKind2 = /* @__PURE__ */ ((PollingWatchKind3) => {
176451
176454
  PollingWatchKind3["FixedChunkSize"] = "FixedChunkSize";
176452
176455
  return PollingWatchKind3;
176453
176456
  })(PollingWatchKind2 || {});
176454
- var CompletionTriggerKind2 = /* @__PURE__ */ ((CompletionTriggerKind4) => {
176455
- CompletionTriggerKind4[CompletionTriggerKind4["Invoked"] = 1] = "Invoked";
176456
- CompletionTriggerKind4[CompletionTriggerKind4["TriggerCharacter"] = 2] = "TriggerCharacter";
176457
- CompletionTriggerKind4[CompletionTriggerKind4["TriggerForIncompleteCompletions"] = 3] = "TriggerForIncompleteCompletions";
176458
- return CompletionTriggerKind4;
176459
- })(CompletionTriggerKind2 || {});
176460
176457
  var IndentStyle2 = /* @__PURE__ */ ((IndentStyle3) => {
176461
176458
  IndentStyle3["None"] = "None";
176462
176459
  IndentStyle3["Block"] = "Block";
176463
176460
  IndentStyle3["Smart"] = "Smart";
176464
176461
  return IndentStyle3;
176465
176462
  })(IndentStyle2 || {});
176466
- var SemicolonPreference2 = /* @__PURE__ */ ((SemicolonPreference3) => {
176467
- SemicolonPreference3["Ignore"] = "ignore";
176468
- SemicolonPreference3["Insert"] = "insert";
176469
- SemicolonPreference3["Remove"] = "remove";
176470
- return SemicolonPreference3;
176471
- })(SemicolonPreference2 || {});
176472
176463
  var JsxEmit2 = /* @__PURE__ */ ((JsxEmit3) => {
176473
- JsxEmit3["None"] = "None";
176474
- JsxEmit3["Preserve"] = "Preserve";
176475
- JsxEmit3["ReactNative"] = "ReactNative";
176476
- JsxEmit3["React"] = "React";
176464
+ JsxEmit3["None"] = "none";
176465
+ JsxEmit3["Preserve"] = "preserve";
176466
+ JsxEmit3["ReactNative"] = "react-native";
176467
+ JsxEmit3["React"] = "react";
176468
+ JsxEmit3["ReactJSX"] = "react-jsx";
176469
+ JsxEmit3["ReactJSXDev"] = "react-jsxdev";
176477
176470
  return JsxEmit3;
176478
176471
  })(JsxEmit2 || {});
176479
176472
  var ModuleKind2 = /* @__PURE__ */ ((ModuleKind3) => {
176480
- ModuleKind3["None"] = "None";
176481
- ModuleKind3["CommonJS"] = "CommonJS";
176482
- ModuleKind3["AMD"] = "AMD";
176483
- ModuleKind3["UMD"] = "UMD";
176484
- ModuleKind3["System"] = "System";
176485
- ModuleKind3["ES6"] = "ES6";
176486
- ModuleKind3["ES2015"] = "ES2015";
176487
- ModuleKind3["ESNext"] = "ESNext";
176488
- ModuleKind3["Node16"] = "Node16";
176489
- ModuleKind3["NodeNext"] = "NodeNext";
176490
- ModuleKind3["Preserve"] = "Preserve";
176473
+ ModuleKind3["None"] = "none";
176474
+ ModuleKind3["CommonJS"] = "commonjs";
176475
+ ModuleKind3["AMD"] = "amd";
176476
+ ModuleKind3["UMD"] = "umd";
176477
+ ModuleKind3["System"] = "system";
176478
+ ModuleKind3["ES6"] = "es6";
176479
+ ModuleKind3["ES2015"] = "es2015";
176480
+ ModuleKind3["ES2020"] = "es2020";
176481
+ ModuleKind3["ES2022"] = "es2022";
176482
+ ModuleKind3["ESNext"] = "esnext";
176483
+ ModuleKind3["Node16"] = "node16";
176484
+ ModuleKind3["NodeNext"] = "nodenext";
176485
+ ModuleKind3["Preserve"] = "preserve";
176491
176486
  return ModuleKind3;
176492
176487
  })(ModuleKind2 || {});
176493
176488
  var ModuleResolutionKind2 = /* @__PURE__ */ ((ModuleResolutionKind3) => {
176494
- ModuleResolutionKind3["Classic"] = "Classic";
176495
- ModuleResolutionKind3["Node"] = "Node";
176496
- ModuleResolutionKind3["Node10"] = "Node10";
176497
- ModuleResolutionKind3["Node16"] = "Node16";
176498
- ModuleResolutionKind3["NodeNext"] = "NodeNext";
176499
- ModuleResolutionKind3["Bundler"] = "Bundler";
176489
+ ModuleResolutionKind3["Classic"] = "classic";
176490
+ ModuleResolutionKind3["Node"] = "node";
176491
+ ModuleResolutionKind3["NodeJs"] = "node";
176492
+ ModuleResolutionKind3["Node10"] = "node10";
176493
+ ModuleResolutionKind3["Node16"] = "node16";
176494
+ ModuleResolutionKind3["NodeNext"] = "nodenext";
176495
+ ModuleResolutionKind3["Bundler"] = "bundler";
176500
176496
  return ModuleResolutionKind3;
176501
176497
  })(ModuleResolutionKind2 || {});
176502
176498
  var NewLineKind2 = /* @__PURE__ */ ((NewLineKind3) => {
@@ -176505,48 +176501,24 @@ var NewLineKind2 = /* @__PURE__ */ ((NewLineKind3) => {
176505
176501
  return NewLineKind3;
176506
176502
  })(NewLineKind2 || {});
176507
176503
  var ScriptTarget10 = /* @__PURE__ */ ((ScriptTarget11) => {
176508
- ScriptTarget11["ES3"] = "ES3";
176509
- ScriptTarget11["ES5"] = "ES5";
176510
- ScriptTarget11["ES6"] = "ES6";
176511
- ScriptTarget11["ES2015"] = "ES2015";
176512
- ScriptTarget11["ES2016"] = "ES2016";
176513
- ScriptTarget11["ES2017"] = "ES2017";
176514
- ScriptTarget11["ES2018"] = "ES2018";
176515
- ScriptTarget11["ES2019"] = "ES2019";
176516
- ScriptTarget11["ES2020"] = "ES2020";
176517
- ScriptTarget11["ES2021"] = "ES2021";
176518
- ScriptTarget11["ES2022"] = "ES2022";
176519
- ScriptTarget11["ESNext"] = "ESNext";
176504
+ ScriptTarget11["ES3"] = "es3";
176505
+ ScriptTarget11["ES5"] = "es5";
176506
+ ScriptTarget11["ES6"] = "es6";
176507
+ ScriptTarget11["ES2015"] = "es2015";
176508
+ ScriptTarget11["ES2016"] = "es2016";
176509
+ ScriptTarget11["ES2017"] = "es2017";
176510
+ ScriptTarget11["ES2018"] = "es2018";
176511
+ ScriptTarget11["ES2019"] = "es2019";
176512
+ ScriptTarget11["ES2020"] = "es2020";
176513
+ ScriptTarget11["ES2021"] = "es2021";
176514
+ ScriptTarget11["ES2022"] = "es2022";
176515
+ ScriptTarget11["ESNext"] = "esnext";
176516
+ ScriptTarget11["JSON"] = "json";
176517
+ ScriptTarget11["Latest"] = "esnext" /* ESNext */;
176520
176518
  return ScriptTarget11;
176521
176519
  })(ScriptTarget10 || {});
176522
- var ClassificationType2 = /* @__PURE__ */ ((ClassificationType3) => {
176523
- ClassificationType3[ClassificationType3["comment"] = 1] = "comment";
176524
- ClassificationType3[ClassificationType3["identifier"] = 2] = "identifier";
176525
- ClassificationType3[ClassificationType3["keyword"] = 3] = "keyword";
176526
- ClassificationType3[ClassificationType3["numericLiteral"] = 4] = "numericLiteral";
176527
- ClassificationType3[ClassificationType3["operator"] = 5] = "operator";
176528
- ClassificationType3[ClassificationType3["stringLiteral"] = 6] = "stringLiteral";
176529
- ClassificationType3[ClassificationType3["regularExpressionLiteral"] = 7] = "regularExpressionLiteral";
176530
- ClassificationType3[ClassificationType3["whiteSpace"] = 8] = "whiteSpace";
176531
- ClassificationType3[ClassificationType3["text"] = 9] = "text";
176532
- ClassificationType3[ClassificationType3["punctuation"] = 10] = "punctuation";
176533
- ClassificationType3[ClassificationType3["className"] = 11] = "className";
176534
- ClassificationType3[ClassificationType3["enumName"] = 12] = "enumName";
176535
- ClassificationType3[ClassificationType3["interfaceName"] = 13] = "interfaceName";
176536
- ClassificationType3[ClassificationType3["moduleName"] = 14] = "moduleName";
176537
- ClassificationType3[ClassificationType3["typeParameterName"] = 15] = "typeParameterName";
176538
- ClassificationType3[ClassificationType3["typeAliasName"] = 16] = "typeAliasName";
176539
- ClassificationType3[ClassificationType3["parameterName"] = 17] = "parameterName";
176540
- ClassificationType3[ClassificationType3["docCommentTagName"] = 18] = "docCommentTagName";
176541
- ClassificationType3[ClassificationType3["jsxOpenTagName"] = 19] = "jsxOpenTagName";
176542
- ClassificationType3[ClassificationType3["jsxCloseTagName"] = 20] = "jsxCloseTagName";
176543
- ClassificationType3[ClassificationType3["jsxSelfClosingTagName"] = 21] = "jsxSelfClosingTagName";
176544
- ClassificationType3[ClassificationType3["jsxAttribute"] = 22] = "jsxAttribute";
176545
- ClassificationType3[ClassificationType3["jsxText"] = 23] = "jsxText";
176546
- ClassificationType3[ClassificationType3["jsxAttributeStringLiteralValue"] = 24] = "jsxAttributeStringLiteralValue";
176547
- ClassificationType3[ClassificationType3["bigintLiteral"] = 25] = "bigintLiteral";
176548
- return ClassificationType3;
176549
- })(ClassificationType2 || {});
176520
+ {
176521
+ }
176550
176522
 
176551
176523
  // src/server/scriptInfo.ts
176552
176524
  var TextStorage = class {