typescript 5.3.0-dev.20230927 → 5.3.0-dev.20230929

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/typescript.js CHANGED
@@ -35,7 +35,7 @@ var ts = (() => {
35
35
  "src/compiler/corePublic.ts"() {
36
36
  "use strict";
37
37
  versionMajorMinor = "5.3";
38
- version = `${versionMajorMinor}.0-dev.20230927`;
38
+ version = `${versionMajorMinor}.0-dev.20230929`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -5186,12 +5186,12 @@ ${lanes.join("\n")}
5186
5186
  kind: 4 /* MultiLine */
5187
5187
  }
5188
5188
  };
5189
- JSDocParsingMode = /* @__PURE__ */ ((JSDocParsingMode7) => {
5190
- JSDocParsingMode7[JSDocParsingMode7["ParseAll"] = 0] = "ParseAll";
5191
- JSDocParsingMode7[JSDocParsingMode7["ParseNone"] = 1] = "ParseNone";
5192
- JSDocParsingMode7[JSDocParsingMode7["ParseForTypeErrors"] = 2] = "ParseForTypeErrors";
5193
- JSDocParsingMode7[JSDocParsingMode7["ParseForTypeInfo"] = 3] = "ParseForTypeInfo";
5194
- return JSDocParsingMode7;
5189
+ JSDocParsingMode = /* @__PURE__ */ ((JSDocParsingMode6) => {
5190
+ JSDocParsingMode6[JSDocParsingMode6["ParseAll"] = 0] = "ParseAll";
5191
+ JSDocParsingMode6[JSDocParsingMode6["ParseNone"] = 1] = "ParseNone";
5192
+ JSDocParsingMode6[JSDocParsingMode6["ParseForTypeErrors"] = 2] = "ParseForTypeErrors";
5193
+ JSDocParsingMode6[JSDocParsingMode6["ParseForTypeInfo"] = 3] = "ParseForTypeInfo";
5194
+ return JSDocParsingMode6;
5195
5195
  })(JSDocParsingMode || {});
5196
5196
  }
5197
5197
  });
@@ -128824,10 +128824,10 @@ ${lanes.join("\n")}
128824
128824
  return LanguageServiceMode2;
128825
128825
  })(LanguageServiceMode || {});
128826
128826
  emptyOptions = {};
128827
- SemanticClassificationFormat = /* @__PURE__ */ ((SemanticClassificationFormat3) => {
128828
- SemanticClassificationFormat3["Original"] = "original";
128829
- SemanticClassificationFormat3["TwentyTwenty"] = "2020";
128830
- return SemanticClassificationFormat3;
128827
+ SemanticClassificationFormat = /* @__PURE__ */ ((SemanticClassificationFormat2) => {
128828
+ SemanticClassificationFormat2["Original"] = "original";
128829
+ SemanticClassificationFormat2["TwentyTwenty"] = "2020";
128830
+ return SemanticClassificationFormat2;
128831
128831
  })(SemanticClassificationFormat || {});
128832
128832
  OrganizeImportsMode = /* @__PURE__ */ ((OrganizeImportsMode3) => {
128833
128833
  OrganizeImportsMode3["All"] = "All";
@@ -128918,15 +128918,15 @@ ${lanes.join("\n")}
128918
128918
  OutputFileType2[OutputFileType2["Declaration"] = 2] = "Declaration";
128919
128919
  return OutputFileType2;
128920
128920
  })(OutputFileType || {});
128921
- EndOfLineState = /* @__PURE__ */ ((EndOfLineState3) => {
128922
- EndOfLineState3[EndOfLineState3["None"] = 0] = "None";
128923
- EndOfLineState3[EndOfLineState3["InMultiLineCommentTrivia"] = 1] = "InMultiLineCommentTrivia";
128924
- EndOfLineState3[EndOfLineState3["InSingleQuoteStringLiteral"] = 2] = "InSingleQuoteStringLiteral";
128925
- EndOfLineState3[EndOfLineState3["InDoubleQuoteStringLiteral"] = 3] = "InDoubleQuoteStringLiteral";
128926
- EndOfLineState3[EndOfLineState3["InTemplateHeadOrNoSubstitutionTemplate"] = 4] = "InTemplateHeadOrNoSubstitutionTemplate";
128927
- EndOfLineState3[EndOfLineState3["InTemplateMiddleOrTail"] = 5] = "InTemplateMiddleOrTail";
128928
- EndOfLineState3[EndOfLineState3["InTemplateSubstitutionPosition"] = 6] = "InTemplateSubstitutionPosition";
128929
- return EndOfLineState3;
128921
+ EndOfLineState = /* @__PURE__ */ ((EndOfLineState2) => {
128922
+ EndOfLineState2[EndOfLineState2["None"] = 0] = "None";
128923
+ EndOfLineState2[EndOfLineState2["InMultiLineCommentTrivia"] = 1] = "InMultiLineCommentTrivia";
128924
+ EndOfLineState2[EndOfLineState2["InSingleQuoteStringLiteral"] = 2] = "InSingleQuoteStringLiteral";
128925
+ EndOfLineState2[EndOfLineState2["InDoubleQuoteStringLiteral"] = 3] = "InDoubleQuoteStringLiteral";
128926
+ EndOfLineState2[EndOfLineState2["InTemplateHeadOrNoSubstitutionTemplate"] = 4] = "InTemplateHeadOrNoSubstitutionTemplate";
128927
+ EndOfLineState2[EndOfLineState2["InTemplateMiddleOrTail"] = 5] = "InTemplateMiddleOrTail";
128928
+ EndOfLineState2[EndOfLineState2["InTemplateSubstitutionPosition"] = 6] = "InTemplateSubstitutionPosition";
128929
+ return EndOfLineState2;
128930
128930
  })(EndOfLineState || {});
128931
128931
  TokenClass = /* @__PURE__ */ ((TokenClass2) => {
128932
128932
  TokenClass2[TokenClass2["Punctuation"] = 0] = "Punctuation";
@@ -144058,933 +144058,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
144058
144058
  }
144059
144059
  });
144060
144060
 
144061
- // src/services/shims.ts
144062
- function logInternalError(logger, err) {
144063
- if (logger) {
144064
- logger.log("*INTERNAL ERROR* - Exception in typescript services: " + err.message);
144065
- }
144066
- }
144067
- function simpleForwardCall(logger, actionDescription2, action, logPerformance) {
144068
- let start;
144069
- if (logPerformance) {
144070
- logger.log(actionDescription2);
144071
- start = timestamp();
144072
- }
144073
- const result = action();
144074
- if (logPerformance) {
144075
- const end = timestamp();
144076
- logger.log(`${actionDescription2} completed in ${end - start} msec`);
144077
- if (isString(result)) {
144078
- let str = result;
144079
- if (str.length > 128) {
144080
- str = str.substring(0, 128) + "...";
144081
- }
144082
- logger.log(` result.length=${str.length}, result='${JSON.stringify(str)}'`);
144083
- }
144084
- }
144085
- return result;
144086
- }
144087
- function forwardJSONCall(logger, actionDescription2, action, logPerformance) {
144088
- return forwardCall(
144089
- logger,
144090
- actionDescription2,
144091
- /*returnJson*/
144092
- true,
144093
- action,
144094
- logPerformance
144095
- );
144096
- }
144097
- function forwardCall(logger, actionDescription2, returnJson, action, logPerformance) {
144098
- try {
144099
- const result = simpleForwardCall(logger, actionDescription2, action, logPerformance);
144100
- return returnJson ? JSON.stringify({ result }) : result;
144101
- } catch (err) {
144102
- if (err instanceof OperationCanceledException) {
144103
- return JSON.stringify({ canceled: true });
144104
- }
144105
- logInternalError(logger, err);
144106
- err.description = actionDescription2;
144107
- return JSON.stringify({ error: err });
144108
- }
144109
- }
144110
- function realizeDiagnostics(diagnostics, newLine) {
144111
- return diagnostics.map((d) => realizeDiagnostic(d, newLine));
144112
- }
144113
- function realizeDiagnostic(diagnostic, newLine) {
144114
- return {
144115
- message: flattenDiagnosticMessageText(diagnostic.messageText, newLine),
144116
- start: diagnostic.start,
144117
- // TODO: GH#18217
144118
- length: diagnostic.length,
144119
- // TODO: GH#18217
144120
- category: diagnosticCategoryName(diagnostic),
144121
- code: diagnostic.code,
144122
- reportsUnnecessary: diagnostic.reportsUnnecessary,
144123
- reportsDeprecated: diagnostic.reportsDeprecated
144124
- };
144125
- }
144126
- function convertClassifications(classifications) {
144127
- return { spans: classifications.spans.join(","), endOfLineState: classifications.endOfLineState };
144128
- }
144129
- var debugObjectHost, ScriptSnapshotShimAdapter, LanguageServiceShimHostAdapter, CoreServicesShimHostAdapter, ShimBase, LanguageServiceShimObject, ClassifierShimObject, CoreServicesShimObject, TypeScriptServicesFactory;
144130
- var init_shims = __esm({
144131
- "src/services/shims.ts"() {
144132
- "use strict";
144133
- init_ts4();
144134
- debugObjectHost = function() {
144135
- return this;
144136
- }();
144137
- ScriptSnapshotShimAdapter = class {
144138
- constructor(scriptSnapshotShim) {
144139
- this.scriptSnapshotShim = scriptSnapshotShim;
144140
- }
144141
- getText(start, end) {
144142
- return this.scriptSnapshotShim.getText(start, end);
144143
- }
144144
- getLength() {
144145
- return this.scriptSnapshotShim.getLength();
144146
- }
144147
- getChangeRange(oldSnapshot) {
144148
- const oldSnapshotShim = oldSnapshot;
144149
- const encoded = this.scriptSnapshotShim.getChangeRange(oldSnapshotShim.scriptSnapshotShim);
144150
- if (encoded === null) {
144151
- return null;
144152
- }
144153
- const decoded = JSON.parse(encoded);
144154
- return createTextChangeRange(
144155
- createTextSpan(decoded.span.start, decoded.span.length),
144156
- decoded.newLength
144157
- );
144158
- }
144159
- dispose() {
144160
- if ("dispose" in this.scriptSnapshotShim) {
144161
- this.scriptSnapshotShim.dispose();
144162
- }
144163
- }
144164
- };
144165
- LanguageServiceShimHostAdapter = class {
144166
- constructor(shimHost) {
144167
- this.shimHost = shimHost;
144168
- this.loggingEnabled = false;
144169
- this.tracingEnabled = false;
144170
- if ("getModuleResolutionsForFile" in this.shimHost) {
144171
- this.resolveModuleNames = (moduleNames, containingFile) => {
144172
- const resolutionsInFile = JSON.parse(this.shimHost.getModuleResolutionsForFile(containingFile));
144173
- return map(moduleNames, (name) => {
144174
- const result = getProperty(resolutionsInFile, name);
144175
- return result ? { resolvedFileName: result, extension: extensionFromPath(result), isExternalLibraryImport: false } : void 0;
144176
- });
144177
- };
144178
- }
144179
- if ("directoryExists" in this.shimHost) {
144180
- this.directoryExists = (directoryName) => this.shimHost.directoryExists(directoryName);
144181
- }
144182
- if ("getTypeReferenceDirectiveResolutionsForFile" in this.shimHost) {
144183
- this.resolveTypeReferenceDirectives = (typeDirectiveNames, containingFile) => {
144184
- const typeDirectivesForFile = JSON.parse(this.shimHost.getTypeReferenceDirectiveResolutionsForFile(containingFile));
144185
- return map(typeDirectiveNames, (name) => getProperty(typeDirectivesForFile, isString(name) ? name : toFileNameLowerCase(name.fileName)));
144186
- };
144187
- }
144188
- if ("jsDocParsingMode" in this.shimHost) {
144189
- this.jsDocParsingMode = this.shimHost.jsDocParsingMode;
144190
- }
144191
- }
144192
- log(s) {
144193
- if (this.loggingEnabled) {
144194
- this.shimHost.log(s);
144195
- }
144196
- }
144197
- trace(s) {
144198
- if (this.tracingEnabled) {
144199
- this.shimHost.trace(s);
144200
- }
144201
- }
144202
- error(s) {
144203
- this.shimHost.error(s);
144204
- }
144205
- getProjectVersion() {
144206
- if (!this.shimHost.getProjectVersion) {
144207
- return void 0;
144208
- }
144209
- return this.shimHost.getProjectVersion();
144210
- }
144211
- getTypeRootsVersion() {
144212
- if (!this.shimHost.getTypeRootsVersion) {
144213
- return 0;
144214
- }
144215
- return this.shimHost.getTypeRootsVersion();
144216
- }
144217
- useCaseSensitiveFileNames() {
144218
- return this.shimHost.useCaseSensitiveFileNames ? this.shimHost.useCaseSensitiveFileNames() : false;
144219
- }
144220
- getCompilationSettings() {
144221
- const settingsJson = this.shimHost.getCompilationSettings();
144222
- if (settingsJson === null || settingsJson === "") {
144223
- throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");
144224
- }
144225
- const compilerOptions = JSON.parse(settingsJson);
144226
- compilerOptions.allowNonTsExtensions = true;
144227
- return compilerOptions;
144228
- }
144229
- getScriptFileNames() {
144230
- const encoded = this.shimHost.getScriptFileNames();
144231
- return JSON.parse(encoded);
144232
- }
144233
- getScriptSnapshot(fileName) {
144234
- const scriptSnapshot = this.shimHost.getScriptSnapshot(fileName);
144235
- return scriptSnapshot && new ScriptSnapshotShimAdapter(scriptSnapshot);
144236
- }
144237
- getScriptKind(fileName) {
144238
- if ("getScriptKind" in this.shimHost) {
144239
- return this.shimHost.getScriptKind(fileName);
144240
- } else {
144241
- return 0 /* Unknown */;
144242
- }
144243
- }
144244
- getScriptVersion(fileName) {
144245
- return this.shimHost.getScriptVersion(fileName);
144246
- }
144247
- getLocalizedDiagnosticMessages() {
144248
- const diagnosticMessagesJson = this.shimHost.getLocalizedDiagnosticMessages();
144249
- if (diagnosticMessagesJson === null || diagnosticMessagesJson === "") {
144250
- return null;
144251
- }
144252
- try {
144253
- return JSON.parse(diagnosticMessagesJson);
144254
- } catch (e) {
144255
- this.log(e.description || "diagnosticMessages.generated.json has invalid JSON format");
144256
- return null;
144257
- }
144258
- }
144259
- getCancellationToken() {
144260
- const hostCancellationToken = this.shimHost.getCancellationToken();
144261
- return new ThrottledCancellationToken(hostCancellationToken);
144262
- }
144263
- getCurrentDirectory() {
144264
- return this.shimHost.getCurrentDirectory();
144265
- }
144266
- getDirectories(path) {
144267
- return JSON.parse(this.shimHost.getDirectories(path));
144268
- }
144269
- getDefaultLibFileName(options) {
144270
- return this.shimHost.getDefaultLibFileName(JSON.stringify(options));
144271
- }
144272
- readDirectory(path, extensions, exclude, include, depth) {
144273
- const pattern = getFileMatcherPatterns(path, exclude, include, this.shimHost.useCaseSensitiveFileNames(), this.shimHost.getCurrentDirectory());
144274
- return JSON.parse(this.shimHost.readDirectory(
144275
- path,
144276
- JSON.stringify(extensions),
144277
- JSON.stringify(pattern.basePaths),
144278
- pattern.excludePattern,
144279
- pattern.includeFilePattern,
144280
- pattern.includeDirectoryPattern,
144281
- depth
144282
- ));
144283
- }
144284
- readFile(path, encoding) {
144285
- return this.shimHost.readFile(path, encoding);
144286
- }
144287
- fileExists(path) {
144288
- return this.shimHost.fileExists(path);
144289
- }
144290
- };
144291
- CoreServicesShimHostAdapter = class {
144292
- constructor(shimHost) {
144293
- this.shimHost = shimHost;
144294
- this.useCaseSensitiveFileNames = this.shimHost.useCaseSensitiveFileNames ? this.shimHost.useCaseSensitiveFileNames() : false;
144295
- if ("directoryExists" in this.shimHost) {
144296
- this.directoryExists = (directoryName) => this.shimHost.directoryExists(directoryName);
144297
- } else {
144298
- this.directoryExists = void 0;
144299
- }
144300
- if ("realpath" in this.shimHost) {
144301
- this.realpath = (path) => this.shimHost.realpath(path);
144302
- } else {
144303
- this.realpath = void 0;
144304
- }
144305
- }
144306
- readDirectory(rootDir, extensions, exclude, include, depth) {
144307
- const pattern = getFileMatcherPatterns(rootDir, exclude, include, this.shimHost.useCaseSensitiveFileNames(), this.shimHost.getCurrentDirectory());
144308
- return JSON.parse(this.shimHost.readDirectory(
144309
- rootDir,
144310
- JSON.stringify(extensions),
144311
- JSON.stringify(pattern.basePaths),
144312
- pattern.excludePattern,
144313
- pattern.includeFilePattern,
144314
- pattern.includeDirectoryPattern,
144315
- depth
144316
- ));
144317
- }
144318
- fileExists(fileName) {
144319
- return this.shimHost.fileExists(fileName);
144320
- }
144321
- readFile(fileName) {
144322
- return this.shimHost.readFile(fileName);
144323
- }
144324
- getDirectories(path) {
144325
- return JSON.parse(this.shimHost.getDirectories(path));
144326
- }
144327
- };
144328
- ShimBase = class {
144329
- constructor(factory2) {
144330
- this.factory = factory2;
144331
- factory2.registerShim(this);
144332
- }
144333
- dispose(_dummy) {
144334
- this.factory.unregisterShim(this);
144335
- }
144336
- };
144337
- LanguageServiceShimObject = class extends ShimBase {
144338
- constructor(factory2, host, languageService) {
144339
- super(factory2);
144340
- this.host = host;
144341
- this.languageService = languageService;
144342
- this.logPerformance = false;
144343
- this.logger = this.host;
144344
- }
144345
- forwardJSONCall(actionDescription2, action) {
144346
- return forwardJSONCall(this.logger, actionDescription2, action, this.logPerformance);
144347
- }
144348
- /// DISPOSE
144349
- /**
144350
- * Ensure (almost) deterministic release of internal Javascript resources when
144351
- * some external native objects holds onto us (e.g. Com/Interop).
144352
- */
144353
- dispose(dummy) {
144354
- this.logger.log("dispose()");
144355
- this.languageService.dispose();
144356
- this.languageService = null;
144357
- if (debugObjectHost && debugObjectHost.CollectGarbage) {
144358
- debugObjectHost.CollectGarbage();
144359
- this.logger.log("CollectGarbage()");
144360
- }
144361
- this.logger = null;
144362
- super.dispose(dummy);
144363
- }
144364
- /// REFRESH
144365
- /**
144366
- * Update the list of scripts known to the compiler
144367
- */
144368
- refresh(throwOnError) {
144369
- this.forwardJSONCall(
144370
- `refresh(${throwOnError})`,
144371
- () => null
144372
- // eslint-disable-line no-null/no-null
144373
- );
144374
- }
144375
- cleanupSemanticCache() {
144376
- this.forwardJSONCall(
144377
- "cleanupSemanticCache()",
144378
- () => {
144379
- this.languageService.cleanupSemanticCache();
144380
- return null;
144381
- }
144382
- );
144383
- }
144384
- realizeDiagnostics(diagnostics) {
144385
- const newLine = getNewLineOrDefaultFromHost(
144386
- this.host,
144387
- /*formatSettings*/
144388
- void 0
144389
- );
144390
- return realizeDiagnostics(diagnostics, newLine);
144391
- }
144392
- getSyntacticClassifications(fileName, start, length2) {
144393
- return this.forwardJSONCall(
144394
- `getSyntacticClassifications('${fileName}', ${start}, ${length2})`,
144395
- () => this.languageService.getSyntacticClassifications(fileName, createTextSpan(start, length2))
144396
- );
144397
- }
144398
- getSemanticClassifications(fileName, start, length2) {
144399
- return this.forwardJSONCall(
144400
- `getSemanticClassifications('${fileName}', ${start}, ${length2})`,
144401
- () => this.languageService.getSemanticClassifications(fileName, createTextSpan(start, length2))
144402
- );
144403
- }
144404
- getEncodedSyntacticClassifications(fileName, start, length2) {
144405
- return this.forwardJSONCall(
144406
- `getEncodedSyntacticClassifications('${fileName}', ${start}, ${length2})`,
144407
- // directly serialize the spans out to a string. This is much faster to decode
144408
- // on the managed side versus a full JSON array.
144409
- () => convertClassifications(this.languageService.getEncodedSyntacticClassifications(fileName, createTextSpan(start, length2)))
144410
- );
144411
- }
144412
- getEncodedSemanticClassifications(fileName, start, length2) {
144413
- return this.forwardJSONCall(
144414
- `getEncodedSemanticClassifications('${fileName}', ${start}, ${length2})`,
144415
- // directly serialize the spans out to a string. This is much faster to decode
144416
- // on the managed side versus a full JSON array.
144417
- () => convertClassifications(this.languageService.getEncodedSemanticClassifications(fileName, createTextSpan(start, length2)))
144418
- );
144419
- }
144420
- getSyntacticDiagnostics(fileName) {
144421
- return this.forwardJSONCall(
144422
- `getSyntacticDiagnostics('${fileName}')`,
144423
- () => {
144424
- const diagnostics = this.languageService.getSyntacticDiagnostics(fileName);
144425
- return this.realizeDiagnostics(diagnostics);
144426
- }
144427
- );
144428
- }
144429
- getSemanticDiagnostics(fileName) {
144430
- return this.forwardJSONCall(
144431
- `getSemanticDiagnostics('${fileName}')`,
144432
- () => {
144433
- const diagnostics = this.languageService.getSemanticDiagnostics(fileName);
144434
- return this.realizeDiagnostics(diagnostics);
144435
- }
144436
- );
144437
- }
144438
- getSuggestionDiagnostics(fileName) {
144439
- return this.forwardJSONCall(`getSuggestionDiagnostics('${fileName}')`, () => this.realizeDiagnostics(this.languageService.getSuggestionDiagnostics(fileName)));
144440
- }
144441
- getCompilerOptionsDiagnostics() {
144442
- return this.forwardJSONCall(
144443
- "getCompilerOptionsDiagnostics()",
144444
- () => {
144445
- const diagnostics = this.languageService.getCompilerOptionsDiagnostics();
144446
- return this.realizeDiagnostics(diagnostics);
144447
- }
144448
- );
144449
- }
144450
- /// QUICKINFO
144451
- /**
144452
- * Computes a string representation of the type at the requested position
144453
- * in the active file.
144454
- */
144455
- getQuickInfoAtPosition(fileName, position) {
144456
- return this.forwardJSONCall(
144457
- `getQuickInfoAtPosition('${fileName}', ${position})`,
144458
- () => this.languageService.getQuickInfoAtPosition(fileName, position)
144459
- );
144460
- }
144461
- /// NAMEORDOTTEDNAMESPAN
144462
- /**
144463
- * Computes span information of the name or dotted name at the requested position
144464
- * in the active file.
144465
- */
144466
- getNameOrDottedNameSpan(fileName, startPos, endPos) {
144467
- return this.forwardJSONCall(
144468
- `getNameOrDottedNameSpan('${fileName}', ${startPos}, ${endPos})`,
144469
- () => this.languageService.getNameOrDottedNameSpan(fileName, startPos, endPos)
144470
- );
144471
- }
144472
- /**
144473
- * STATEMENTSPAN
144474
- * Computes span information of statement at the requested position in the active file.
144475
- */
144476
- getBreakpointStatementAtPosition(fileName, position) {
144477
- return this.forwardJSONCall(
144478
- `getBreakpointStatementAtPosition('${fileName}', ${position})`,
144479
- () => this.languageService.getBreakpointStatementAtPosition(fileName, position)
144480
- );
144481
- }
144482
- /// SIGNATUREHELP
144483
- getSignatureHelpItems(fileName, position, options) {
144484
- return this.forwardJSONCall(
144485
- `getSignatureHelpItems('${fileName}', ${position})`,
144486
- () => this.languageService.getSignatureHelpItems(fileName, position, options)
144487
- );
144488
- }
144489
- /// GOTO DEFINITION
144490
- /**
144491
- * Computes the definition location and file for the symbol
144492
- * at the requested position.
144493
- */
144494
- getDefinitionAtPosition(fileName, position) {
144495
- return this.forwardJSONCall(
144496
- `getDefinitionAtPosition('${fileName}', ${position})`,
144497
- () => this.languageService.getDefinitionAtPosition(fileName, position)
144498
- );
144499
- }
144500
- /**
144501
- * Computes the definition location and file for the symbol
144502
- * at the requested position.
144503
- */
144504
- getDefinitionAndBoundSpan(fileName, position) {
144505
- return this.forwardJSONCall(
144506
- `getDefinitionAndBoundSpan('${fileName}', ${position})`,
144507
- () => this.languageService.getDefinitionAndBoundSpan(fileName, position)
144508
- );
144509
- }
144510
- /// GOTO Type
144511
- /**
144512
- * Computes the definition location of the type of the symbol
144513
- * at the requested position.
144514
- */
144515
- getTypeDefinitionAtPosition(fileName, position) {
144516
- return this.forwardJSONCall(
144517
- `getTypeDefinitionAtPosition('${fileName}', ${position})`,
144518
- () => this.languageService.getTypeDefinitionAtPosition(fileName, position)
144519
- );
144520
- }
144521
- /// GOTO Implementation
144522
- /**
144523
- * Computes the implementation location of the symbol
144524
- * at the requested position.
144525
- */
144526
- getImplementationAtPosition(fileName, position) {
144527
- return this.forwardJSONCall(
144528
- `getImplementationAtPosition('${fileName}', ${position})`,
144529
- () => this.languageService.getImplementationAtPosition(fileName, position)
144530
- );
144531
- }
144532
- getRenameInfo(fileName, position, preferences) {
144533
- return this.forwardJSONCall(
144534
- `getRenameInfo('${fileName}', ${position})`,
144535
- () => this.languageService.getRenameInfo(fileName, position, preferences)
144536
- );
144537
- }
144538
- getSmartSelectionRange(fileName, position) {
144539
- return this.forwardJSONCall(
144540
- `getSmartSelectionRange('${fileName}', ${position})`,
144541
- () => this.languageService.getSmartSelectionRange(fileName, position)
144542
- );
144543
- }
144544
- findRenameLocations(fileName, position, findInStrings, findInComments, preferences) {
144545
- return this.forwardJSONCall(
144546
- `findRenameLocations('${fileName}', ${position}, ${findInStrings}, ${findInComments})`,
144547
- () => this.languageService.findRenameLocations(fileName, position, findInStrings, findInComments, preferences)
144548
- );
144549
- }
144550
- /// GET BRACE MATCHING
144551
- getBraceMatchingAtPosition(fileName, position) {
144552
- return this.forwardJSONCall(
144553
- `getBraceMatchingAtPosition('${fileName}', ${position})`,
144554
- () => this.languageService.getBraceMatchingAtPosition(fileName, position)
144555
- );
144556
- }
144557
- isValidBraceCompletionAtPosition(fileName, position, openingBrace) {
144558
- return this.forwardJSONCall(
144559
- `isValidBraceCompletionAtPosition('${fileName}', ${position}, ${openingBrace})`,
144560
- () => this.languageService.isValidBraceCompletionAtPosition(fileName, position, openingBrace)
144561
- );
144562
- }
144563
- getSpanOfEnclosingComment(fileName, position, onlyMultiLine) {
144564
- return this.forwardJSONCall(
144565
- `getSpanOfEnclosingComment('${fileName}', ${position})`,
144566
- () => this.languageService.getSpanOfEnclosingComment(fileName, position, onlyMultiLine)
144567
- );
144568
- }
144569
- /// GET SMART INDENT
144570
- getIndentationAtPosition(fileName, position, options) {
144571
- return this.forwardJSONCall(
144572
- `getIndentationAtPosition('${fileName}', ${position})`,
144573
- () => {
144574
- const localOptions = JSON.parse(options);
144575
- return this.languageService.getIndentationAtPosition(fileName, position, localOptions);
144576
- }
144577
- );
144578
- }
144579
- /// GET REFERENCES
144580
- getReferencesAtPosition(fileName, position) {
144581
- return this.forwardJSONCall(
144582
- `getReferencesAtPosition('${fileName}', ${position})`,
144583
- () => this.languageService.getReferencesAtPosition(fileName, position)
144584
- );
144585
- }
144586
- findReferences(fileName, position) {
144587
- return this.forwardJSONCall(
144588
- `findReferences('${fileName}', ${position})`,
144589
- () => this.languageService.findReferences(fileName, position)
144590
- );
144591
- }
144592
- getFileReferences(fileName) {
144593
- return this.forwardJSONCall(
144594
- `getFileReferences('${fileName})`,
144595
- () => this.languageService.getFileReferences(fileName)
144596
- );
144597
- }
144598
- getDocumentHighlights(fileName, position, filesToSearch) {
144599
- return this.forwardJSONCall(
144600
- `getDocumentHighlights('${fileName}', ${position})`,
144601
- () => {
144602
- const results = this.languageService.getDocumentHighlights(fileName, position, JSON.parse(filesToSearch));
144603
- const normalizedName = toFileNameLowerCase(normalizeSlashes(fileName));
144604
- return filter(results, (r) => toFileNameLowerCase(normalizeSlashes(r.fileName)) === normalizedName);
144605
- }
144606
- );
144607
- }
144608
- /// COMPLETION LISTS
144609
- /**
144610
- * Get a string based representation of the completions
144611
- * to provide at the given source position and providing a member completion
144612
- * list if requested.
144613
- */
144614
- getCompletionsAtPosition(fileName, position, preferences, formattingSettings) {
144615
- return this.forwardJSONCall(
144616
- `getCompletionsAtPosition('${fileName}', ${position}, ${preferences}, ${formattingSettings})`,
144617
- () => this.languageService.getCompletionsAtPosition(fileName, position, preferences, formattingSettings)
144618
- );
144619
- }
144620
- /** Get a string based representation of a completion list entry details */
144621
- getCompletionEntryDetails(fileName, position, entryName, formatOptions, source, preferences, data) {
144622
- return this.forwardJSONCall(
144623
- `getCompletionEntryDetails('${fileName}', ${position}, '${entryName}')`,
144624
- () => {
144625
- const localOptions = formatOptions === void 0 ? void 0 : JSON.parse(formatOptions);
144626
- return this.languageService.getCompletionEntryDetails(fileName, position, entryName, localOptions, source, preferences, data);
144627
- }
144628
- );
144629
- }
144630
- getFormattingEditsForRange(fileName, start, end, options) {
144631
- return this.forwardJSONCall(
144632
- `getFormattingEditsForRange('${fileName}', ${start}, ${end})`,
144633
- () => {
144634
- const localOptions = JSON.parse(options);
144635
- return this.languageService.getFormattingEditsForRange(fileName, start, end, localOptions);
144636
- }
144637
- );
144638
- }
144639
- getFormattingEditsForDocument(fileName, options) {
144640
- return this.forwardJSONCall(
144641
- `getFormattingEditsForDocument('${fileName}')`,
144642
- () => {
144643
- const localOptions = JSON.parse(options);
144644
- return this.languageService.getFormattingEditsForDocument(fileName, localOptions);
144645
- }
144646
- );
144647
- }
144648
- getFormattingEditsAfterKeystroke(fileName, position, key, options) {
144649
- return this.forwardJSONCall(
144650
- `getFormattingEditsAfterKeystroke('${fileName}', ${position}, '${key}')`,
144651
- () => {
144652
- const localOptions = JSON.parse(options);
144653
- return this.languageService.getFormattingEditsAfterKeystroke(fileName, position, key, localOptions);
144654
- }
144655
- );
144656
- }
144657
- getDocCommentTemplateAtPosition(fileName, position, options, formatOptions) {
144658
- return this.forwardJSONCall(
144659
- `getDocCommentTemplateAtPosition('${fileName}', ${position})`,
144660
- () => this.languageService.getDocCommentTemplateAtPosition(fileName, position, options, formatOptions)
144661
- );
144662
- }
144663
- /// NAVIGATE TO
144664
- /** Return a list of symbols that are interesting to navigate to */
144665
- getNavigateToItems(searchValue, maxResultCount, fileName) {
144666
- return this.forwardJSONCall(
144667
- `getNavigateToItems('${searchValue}', ${maxResultCount}, ${fileName})`,
144668
- () => this.languageService.getNavigateToItems(searchValue, maxResultCount, fileName)
144669
- );
144670
- }
144671
- getNavigationBarItems(fileName) {
144672
- return this.forwardJSONCall(
144673
- `getNavigationBarItems('${fileName}')`,
144674
- () => this.languageService.getNavigationBarItems(fileName)
144675
- );
144676
- }
144677
- getNavigationTree(fileName) {
144678
- return this.forwardJSONCall(
144679
- `getNavigationTree('${fileName}')`,
144680
- () => this.languageService.getNavigationTree(fileName)
144681
- );
144682
- }
144683
- getOutliningSpans(fileName) {
144684
- return this.forwardJSONCall(
144685
- `getOutliningSpans('${fileName}')`,
144686
- () => this.languageService.getOutliningSpans(fileName)
144687
- );
144688
- }
144689
- getTodoComments(fileName, descriptors) {
144690
- return this.forwardJSONCall(
144691
- `getTodoComments('${fileName}')`,
144692
- () => this.languageService.getTodoComments(fileName, JSON.parse(descriptors))
144693
- );
144694
- }
144695
- /// CALL HIERARCHY
144696
- prepareCallHierarchy(fileName, position) {
144697
- return this.forwardJSONCall(
144698
- `prepareCallHierarchy('${fileName}', ${position})`,
144699
- () => this.languageService.prepareCallHierarchy(fileName, position)
144700
- );
144701
- }
144702
- provideCallHierarchyIncomingCalls(fileName, position) {
144703
- return this.forwardJSONCall(
144704
- `provideCallHierarchyIncomingCalls('${fileName}', ${position})`,
144705
- () => this.languageService.provideCallHierarchyIncomingCalls(fileName, position)
144706
- );
144707
- }
144708
- provideCallHierarchyOutgoingCalls(fileName, position) {
144709
- return this.forwardJSONCall(
144710
- `provideCallHierarchyOutgoingCalls('${fileName}', ${position})`,
144711
- () => this.languageService.provideCallHierarchyOutgoingCalls(fileName, position)
144712
- );
144713
- }
144714
- provideInlayHints(fileName, span, preference) {
144715
- return this.forwardJSONCall(
144716
- `provideInlayHints('${fileName}', '${JSON.stringify(span)}', ${JSON.stringify(preference)})`,
144717
- () => this.languageService.provideInlayHints(fileName, span, preference)
144718
- );
144719
- }
144720
- /// Emit
144721
- getEmitOutput(fileName) {
144722
- return this.forwardJSONCall(
144723
- `getEmitOutput('${fileName}')`,
144724
- () => {
144725
- const { diagnostics, ...rest } = this.languageService.getEmitOutput(fileName);
144726
- return { ...rest, diagnostics: this.realizeDiagnostics(diagnostics) };
144727
- }
144728
- );
144729
- }
144730
- getEmitOutputObject(fileName) {
144731
- return forwardCall(
144732
- this.logger,
144733
- `getEmitOutput('${fileName}')`,
144734
- /*returnJson*/
144735
- false,
144736
- () => this.languageService.getEmitOutput(fileName),
144737
- this.logPerformance
144738
- );
144739
- }
144740
- toggleLineComment(fileName, textRange) {
144741
- return this.forwardJSONCall(
144742
- `toggleLineComment('${fileName}', '${JSON.stringify(textRange)}')`,
144743
- () => this.languageService.toggleLineComment(fileName, textRange)
144744
- );
144745
- }
144746
- toggleMultilineComment(fileName, textRange) {
144747
- return this.forwardJSONCall(
144748
- `toggleMultilineComment('${fileName}', '${JSON.stringify(textRange)}')`,
144749
- () => this.languageService.toggleMultilineComment(fileName, textRange)
144750
- );
144751
- }
144752
- commentSelection(fileName, textRange) {
144753
- return this.forwardJSONCall(
144754
- `commentSelection('${fileName}', '${JSON.stringify(textRange)}')`,
144755
- () => this.languageService.commentSelection(fileName, textRange)
144756
- );
144757
- }
144758
- uncommentSelection(fileName, textRange) {
144759
- return this.forwardJSONCall(
144760
- `uncommentSelection('${fileName}', '${JSON.stringify(textRange)}')`,
144761
- () => this.languageService.uncommentSelection(fileName, textRange)
144762
- );
144763
- }
144764
- };
144765
- ClassifierShimObject = class extends ShimBase {
144766
- constructor(factory2, logger) {
144767
- super(factory2);
144768
- this.logger = logger;
144769
- this.logPerformance = false;
144770
- this.classifier = createClassifier();
144771
- }
144772
- getEncodedLexicalClassifications(text, lexState, syntacticClassifierAbsent = false) {
144773
- return forwardJSONCall(this.logger, "getEncodedLexicalClassifications", () => convertClassifications(this.classifier.getEncodedLexicalClassifications(text, lexState, syntacticClassifierAbsent)), this.logPerformance);
144774
- }
144775
- /// COLORIZATION
144776
- getClassificationsForLine(text, lexState, classifyKeywordsInGenerics = false) {
144777
- const classification = this.classifier.getClassificationsForLine(text, lexState, classifyKeywordsInGenerics);
144778
- let result = "";
144779
- for (const item of classification.entries) {
144780
- result += item.length + "\n";
144781
- result += item.classification + "\n";
144782
- }
144783
- result += classification.finalLexState;
144784
- return result;
144785
- }
144786
- };
144787
- CoreServicesShimObject = class extends ShimBase {
144788
- constructor(factory2, logger, host) {
144789
- super(factory2);
144790
- this.logger = logger;
144791
- this.host = host;
144792
- this.logPerformance = false;
144793
- }
144794
- forwardJSONCall(actionDescription2, action) {
144795
- return forwardJSONCall(this.logger, actionDescription2, action, this.logPerformance);
144796
- }
144797
- resolveModuleName(fileName, moduleName, compilerOptionsJson) {
144798
- return this.forwardJSONCall(`resolveModuleName('${fileName}')`, () => {
144799
- const compilerOptions = JSON.parse(compilerOptionsJson);
144800
- const result = resolveModuleName(moduleName, normalizeSlashes(fileName), compilerOptions, this.host);
144801
- let resolvedFileName = result.resolvedModule ? result.resolvedModule.resolvedFileName : void 0;
144802
- if (result.resolvedModule && result.resolvedModule.extension !== ".ts" /* Ts */ && result.resolvedModule.extension !== ".tsx" /* Tsx */ && result.resolvedModule.extension !== ".d.ts" /* Dts */) {
144803
- resolvedFileName = void 0;
144804
- }
144805
- return {
144806
- resolvedFileName,
144807
- failedLookupLocations: result.failedLookupLocations,
144808
- affectingLocations: result.affectingLocations
144809
- };
144810
- });
144811
- }
144812
- resolveTypeReferenceDirective(fileName, typeReferenceDirective, compilerOptionsJson) {
144813
- return this.forwardJSONCall(`resolveTypeReferenceDirective(${fileName})`, () => {
144814
- const compilerOptions = JSON.parse(compilerOptionsJson);
144815
- const result = resolveTypeReferenceDirective(typeReferenceDirective, normalizeSlashes(fileName), compilerOptions, this.host);
144816
- return {
144817
- resolvedFileName: result.resolvedTypeReferenceDirective ? result.resolvedTypeReferenceDirective.resolvedFileName : void 0,
144818
- primary: result.resolvedTypeReferenceDirective ? result.resolvedTypeReferenceDirective.primary : true,
144819
- failedLookupLocations: result.failedLookupLocations
144820
- };
144821
- });
144822
- }
144823
- getPreProcessedFileInfo(fileName, sourceTextSnapshot) {
144824
- return this.forwardJSONCall(
144825
- `getPreProcessedFileInfo('${fileName}')`,
144826
- () => {
144827
- const result = preProcessFile(
144828
- getSnapshotText(sourceTextSnapshot),
144829
- /*readImportFiles*/
144830
- true,
144831
- /*detectJavaScriptImports*/
144832
- true
144833
- );
144834
- return {
144835
- referencedFiles: this.convertFileReferences(result.referencedFiles),
144836
- importedFiles: this.convertFileReferences(result.importedFiles),
144837
- ambientExternalModules: result.ambientExternalModules,
144838
- isLibFile: result.isLibFile,
144839
- typeReferenceDirectives: this.convertFileReferences(result.typeReferenceDirectives),
144840
- libReferenceDirectives: this.convertFileReferences(result.libReferenceDirectives)
144841
- };
144842
- }
144843
- );
144844
- }
144845
- getAutomaticTypeDirectiveNames(compilerOptionsJson) {
144846
- return this.forwardJSONCall(
144847
- `getAutomaticTypeDirectiveNames('${compilerOptionsJson}')`,
144848
- () => {
144849
- const compilerOptions = JSON.parse(compilerOptionsJson);
144850
- return getAutomaticTypeDirectiveNames(compilerOptions, this.host);
144851
- }
144852
- );
144853
- }
144854
- convertFileReferences(refs) {
144855
- if (!refs) {
144856
- return void 0;
144857
- }
144858
- const result = [];
144859
- for (const ref of refs) {
144860
- result.push({
144861
- path: normalizeSlashes(ref.fileName),
144862
- position: ref.pos,
144863
- length: ref.end - ref.pos
144864
- });
144865
- }
144866
- return result;
144867
- }
144868
- getTSConfigFileInfo(fileName, sourceTextSnapshot) {
144869
- return this.forwardJSONCall(
144870
- `getTSConfigFileInfo('${fileName}')`,
144871
- () => {
144872
- const result = parseJsonText(fileName, getSnapshotText(sourceTextSnapshot));
144873
- const normalizedFileName = normalizeSlashes(fileName);
144874
- const configFile = parseJsonSourceFileConfigFileContent(
144875
- result,
144876
- this.host,
144877
- getDirectoryPath(normalizedFileName),
144878
- /*existingOptions*/
144879
- {},
144880
- normalizedFileName
144881
- );
144882
- return {
144883
- options: configFile.options,
144884
- typeAcquisition: configFile.typeAcquisition,
144885
- files: configFile.fileNames,
144886
- raw: configFile.raw,
144887
- errors: realizeDiagnostics([...result.parseDiagnostics, ...configFile.errors], "\r\n")
144888
- };
144889
- }
144890
- );
144891
- }
144892
- getDefaultCompilationSettings() {
144893
- return this.forwardJSONCall(
144894
- "getDefaultCompilationSettings()",
144895
- () => getDefaultCompilerOptions2()
144896
- );
144897
- }
144898
- discoverTypings(discoverTypingsJson) {
144899
- const getCanonicalFileName = createGetCanonicalFileName(
144900
- /*useCaseSensitiveFileNames*/
144901
- false
144902
- );
144903
- return this.forwardJSONCall("discoverTypings()", () => {
144904
- const info = JSON.parse(discoverTypingsJson);
144905
- if (this.safeList === void 0) {
144906
- this.safeList = ts_JsTyping_exports.loadSafeList(this.host, toPath(info.safeListPath, info.safeListPath, getCanonicalFileName));
144907
- }
144908
- return ts_JsTyping_exports.discoverTypings(
144909
- this.host,
144910
- (msg) => this.logger.log(msg),
144911
- info.fileNames,
144912
- toPath(info.projectRootPath, info.projectRootPath, getCanonicalFileName),
144913
- this.safeList,
144914
- info.packageNameToTypingLocation,
144915
- info.typeAcquisition,
144916
- info.unresolvedImports,
144917
- info.typesRegistry,
144918
- emptyOptions
144919
- );
144920
- });
144921
- }
144922
- };
144923
- TypeScriptServicesFactory = class {
144924
- constructor() {
144925
- this._shims = [];
144926
- }
144927
- /*
144928
- * Returns script API version.
144929
- */
144930
- getServicesVersion() {
144931
- return servicesVersion;
144932
- }
144933
- createLanguageServiceShim(host) {
144934
- try {
144935
- if (this.documentRegistry === void 0) {
144936
- this.documentRegistry = createDocumentRegistry(host.useCaseSensitiveFileNames && host.useCaseSensitiveFileNames(), host.getCurrentDirectory());
144937
- }
144938
- const hostAdapter = new LanguageServiceShimHostAdapter(host);
144939
- const languageService = createLanguageService(
144940
- hostAdapter,
144941
- this.documentRegistry,
144942
- /*syntaxOnlyOrLanguageServiceMode*/
144943
- false
144944
- );
144945
- return new LanguageServiceShimObject(this, host, languageService);
144946
- } catch (err) {
144947
- logInternalError(host, err);
144948
- throw err;
144949
- }
144950
- }
144951
- createClassifierShim(logger) {
144952
- try {
144953
- return new ClassifierShimObject(this, logger);
144954
- } catch (err) {
144955
- logInternalError(logger, err);
144956
- throw err;
144957
- }
144958
- }
144959
- createCoreServicesShim(host) {
144960
- try {
144961
- const adapter = new CoreServicesShimHostAdapter(host);
144962
- return new CoreServicesShimObject(this, host, adapter);
144963
- } catch (err) {
144964
- logInternalError(host, err);
144965
- throw err;
144966
- }
144967
- }
144968
- close() {
144969
- clear(this._shims);
144970
- this.documentRegistry = void 0;
144971
- }
144972
- registerShim(shim) {
144973
- this._shims.push(shim);
144974
- }
144975
- unregisterShim(shim) {
144976
- for (let i = 0; i < this._shims.length; i++) {
144977
- if (this._shims[i] === shim) {
144978
- delete this._shims[i];
144979
- return;
144980
- }
144981
- }
144982
- throw new Error("Invalid operation");
144983
- }
144984
- };
144985
- }
144986
- });
144987
-
144988
144061
  // src/services/breakpoints.ts
144989
144062
  function spanInSourceFileAtLocation(sourceFile, position) {
144990
144063
  if (sourceFile.isDeclarationFile) {
@@ -172273,7 +171346,6 @@ ${options.prefix}` : "\n" : options.prefix
172273
171346
  init_transpile();
172274
171347
  init_services();
172275
171348
  init_transform();
172276
- init_shims();
172277
171349
  init_ts_BreakpointResolver();
172278
171350
  init_ts_CallHierarchy();
172279
171351
  init_ts_classifier();
@@ -184049,7 +183121,6 @@ ${e.message}`;
184049
183121
  ConfigFileProgramReloadLevel: () => ConfigFileProgramReloadLevel,
184050
183122
  ContainerFlags: () => ContainerFlags,
184051
183123
  ContextFlags: () => ContextFlags,
184052
- CoreServicesShimHostAdapter: () => CoreServicesShimHostAdapter,
184053
183124
  Debug: () => Debug,
184054
183125
  DiagnosticCategory: () => DiagnosticCategory,
184055
183126
  Diagnostics: () => Diagnostics,
@@ -184098,7 +183169,6 @@ ${e.message}`;
184098
183169
  JsxFlags: () => JsxFlags,
184099
183170
  JsxReferenceKind: () => JsxReferenceKind,
184100
183171
  LanguageServiceMode: () => LanguageServiceMode,
184101
- LanguageServiceShimHostAdapter: () => LanguageServiceShimHostAdapter,
184102
183172
  LanguageVariant: () => LanguageVariant,
184103
183173
  LexicalEnvironmentFlags: () => LexicalEnvironmentFlags,
184104
183174
  ListFormat: () => ListFormat,
@@ -184172,7 +183242,6 @@ ${e.message}`;
184172
183242
  TypeMapKind: () => TypeMapKind,
184173
183243
  TypePredicateKind: () => TypePredicateKind,
184174
183244
  TypeReferenceSerializationKind: () => TypeReferenceSerializationKind,
184175
- TypeScriptServicesFactory: () => TypeScriptServicesFactory,
184176
183245
  UnionReduction: () => UnionReduction,
184177
183246
  UpToDateStatusType: () => UpToDateStatusType,
184178
183247
  VarianceFlags: () => VarianceFlags,
@@ -186016,7 +185085,6 @@ ${e.message}`;
186016
185085
  readJson: () => readJson,
186017
185086
  readJsonConfigFile: () => readJsonConfigFile,
186018
185087
  readJsonOrUndefined: () => readJsonOrUndefined,
186019
- realizeDiagnostics: () => realizeDiagnostics,
186020
185088
  reduceEachLeadingCommentRange: () => reduceEachLeadingCommentRange,
186021
185089
  reduceEachTrailingCommentRange: () => reduceEachTrailingCommentRange,
186022
185090
  reduceLeft: () => reduceLeft,
@@ -186458,7 +185526,6 @@ ${e.message}`;
186458
185526
  ConfigFileProgramReloadLevel: () => ConfigFileProgramReloadLevel,
186459
185527
  ContainerFlags: () => ContainerFlags,
186460
185528
  ContextFlags: () => ContextFlags,
186461
- CoreServicesShimHostAdapter: () => CoreServicesShimHostAdapter,
186462
185529
  Debug: () => Debug,
186463
185530
  DiagnosticCategory: () => DiagnosticCategory,
186464
185531
  Diagnostics: () => Diagnostics,
@@ -186507,7 +185574,6 @@ ${e.message}`;
186507
185574
  JsxFlags: () => JsxFlags,
186508
185575
  JsxReferenceKind: () => JsxReferenceKind,
186509
185576
  LanguageServiceMode: () => LanguageServiceMode,
186510
- LanguageServiceShimHostAdapter: () => LanguageServiceShimHostAdapter,
186511
185577
  LanguageVariant: () => LanguageVariant,
186512
185578
  LexicalEnvironmentFlags: () => LexicalEnvironmentFlags,
186513
185579
  ListFormat: () => ListFormat,
@@ -186581,7 +185647,6 @@ ${e.message}`;
186581
185647
  TypeMapKind: () => TypeMapKind,
186582
185648
  TypePredicateKind: () => TypePredicateKind,
186583
185649
  TypeReferenceSerializationKind: () => TypeReferenceSerializationKind,
186584
- TypeScriptServicesFactory: () => TypeScriptServicesFactory,
186585
185650
  UnionReduction: () => UnionReduction,
186586
185651
  UpToDateStatusType: () => UpToDateStatusType,
186587
185652
  VarianceFlags: () => VarianceFlags,
@@ -188425,7 +187490,6 @@ ${e.message}`;
188425
187490
  readJson: () => readJson,
188426
187491
  readJsonConfigFile: () => readJsonConfigFile,
188427
187492
  readJsonOrUndefined: () => readJsonOrUndefined,
188428
- realizeDiagnostics: () => realizeDiagnostics,
188429
187493
  reduceEachLeadingCommentRange: () => reduceEachLeadingCommentRange,
188430
187494
  reduceEachTrailingCommentRange: () => reduceEachTrailingCommentRange,
188431
187495
  reduceLeft: () => reduceLeft,