@artel/artc 0.6.25276 → 0.6.25278

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.
Files changed (67) hide show
  1. package/build/Cli.js +3 -3
  2. package/build/api/Api.js +14 -10
  3. package/build/api/ApiNodeJS.js +3 -3
  4. package/build/api/ApiServices.js +286 -293
  5. package/build/{chunk-OS2SFHBZ.js → chunk-4C7CEJJF.js} +20 -24
  6. package/build/{chunk-LX6LUKPR.js → chunk-A2QTLTGI.js} +1935 -1176
  7. package/build/{chunk-MT6TPXET.js → chunk-L44WWCT7.js} +15 -15
  8. package/build/types/analysis/AccessedFunction.d.ts +3 -3
  9. package/build/types/analysis/AnalyzedTextTranslationPackage.d.ts +2 -2
  10. package/build/types/analysis/AnalyzedTranslationPackage.d.ts +11 -8
  11. package/build/types/analysis/Analyzer.d.ts +21 -19
  12. package/build/types/analysis/DeclarationsUsageCounter.d.ts +2 -2
  13. package/build/types/analysis/{DiagnosticCollector.d.ts → SourceFileAnalyzer.d.ts} +4 -5
  14. package/build/types/analysis/SourcePackageDependencyGraph.d.ts +2 -2
  15. package/build/types/analysis/SubstitutedFunction.d.ts +3 -3
  16. package/build/types/analysis/TranslatedEntityNameConflictsValidator.d.ts +28 -0
  17. package/build/types/analysis/Translation.d.ts +1 -2
  18. package/build/types/analysis/index.d.ts +1 -1
  19. package/build/types/analysis/semantic-context/Declarations.d.ts +3 -3
  20. package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +2 -2
  21. package/build/types/api/Api.d.ts +1 -1
  22. package/build/types/common/TaskController.d.ts +14 -0
  23. package/build/types/common/TreeTraversal.d.ts +10 -9
  24. package/build/types/common/index.d.ts +1 -2
  25. package/build/types/diagnostic/DiagnosticCode.d.ts +5 -1
  26. package/build/types/emitter/Emitter.d.ts +3 -3
  27. package/build/types/emitter/EmitterContext.d.ts +1 -1
  28. package/build/types/emitter/EntityMap.d.ts +1 -1
  29. package/build/types/entities/Entity.d.ts +3 -1
  30. package/build/types/entities/EntityNaming.d.ts +2 -0
  31. package/build/types/entities/interfaces/FunctionEntity.d.ts +19 -6
  32. package/build/types/entities/interfaces/TypeParameterEntity.d.ts +2 -2
  33. package/build/types/entities/intrinsic/IntrinsicFunctionEntity.d.ts +3 -1
  34. package/build/types/entities/source/SourceFunctionEntity.d.ts +86 -5
  35. package/build/types/entities/source/SourceVariableEntity.d.ts +3 -1
  36. package/build/types/entities/translated/TranslatedAliasTypeEntity.d.ts +0 -1
  37. package/build/types/entities/translated/TranslatedConstructorEntity.d.ts +1 -1
  38. package/build/types/entities/translated/TranslatedFunctionEntity.d.ts +29 -14
  39. package/build/types/entities/translated/TranslatedFunctionTypeEntity.d.ts +0 -1
  40. package/build/types/entities/translated/TranslatedIndexerEntity.d.ts +19 -9
  41. package/build/types/entities/translated/TranslatedOperatorEntity.d.ts +21 -10
  42. package/build/types/entities/translated/TranslatedPackageEntity.d.ts +0 -2
  43. package/build/types/entities/translated/TranslatedStructuredTypeEntity.d.ts +0 -1
  44. package/build/types/entities/translated/TranslatedVariantTypeEntity.d.ts +0 -1
  45. package/build/types/executor/Compiler.d.ts +6 -6
  46. package/build/types/executor/NodeCompiler.d.ts +6 -6
  47. package/build/types/project/CompilationLoader.d.ts +5 -5
  48. package/build/types/project/FileSystemTree.d.ts +1 -1
  49. package/build/types/project/PackageContentCreator.d.ts +2 -1
  50. package/build/types/services/DefinitionService.d.ts +2 -2
  51. package/build/types/services/DisplayService.d.ts +22 -7
  52. package/build/types/services/DocumentHighlightsService.d.ts +2 -2
  53. package/build/types/services/LanguageServer.d.ts +1 -1
  54. package/build/types/services/NodeSemanticInfo.d.ts +1 -6
  55. package/build/types/services/ReferencesService.d.ts +3 -3
  56. package/build/types/services/RenameService.d.ts +2 -2
  57. package/build/types/services/SemanticTokensService.d.ts +4 -4
  58. package/build/types/services/source-generation/SourceGenerationService.d.ts +3 -3
  59. package/build/types/services/workspace/CompilationController.d.ts +7 -5
  60. package/build/types/services/workspace/FileSystemTreeProviderBasedOnWatchedFileSystem.d.ts +2 -2
  61. package/build/types/services/workspace/ManuallyUpdatedFileSystemTreeProvider.d.ts +2 -2
  62. package/build/types/services/workspace/Workspace.d.ts +3 -5
  63. package/build/types/services/workspace/WorkspaceFiles.d.ts +3 -3
  64. package/build/types/ts-interop/Entities.d.ts +3 -0
  65. package/package.json +1 -1
  66. package/build/types/common/ThrottledCancellationToken.d.ts +0 -17
  67. package/build/types/common/YieldExecution.d.ts +0 -1
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Compiler
3
- } from "./chunk-MT6TPXET.js";
3
+ } from "./chunk-L44WWCT7.js";
4
4
  import {
5
5
  ArtelVersion,
6
6
  Cached,
@@ -10,11 +10,12 @@ import {
10
10
  DirectoryEntry,
11
11
  PerformanceMeasurement,
12
12
  Query,
13
+ TaskController,
13
14
  Uri,
14
15
  __async,
15
16
  performanceMeasurementStageNames,
16
17
  performanceMeasurementStages
17
- } from "./chunk-LX6LUKPR.js";
18
+ } from "./chunk-A2QTLTGI.js";
18
19
 
19
20
  // source/executor/FileSystemUri.ts
20
21
  import { platform } from "os";
@@ -225,7 +226,7 @@ var NodeCompiler = class {
225
226
  return new PhysicalTypeScriptLibrariesProvider(standardLibraryUri);
226
227
  });
227
228
  }
228
- static loadCompilation(projectPath, tsLibrariesProvider, diagnostics, options, cancellationToken) {
229
+ static loadCompilation(projectPath, tsLibrariesProvider, diagnostics, taskController, options) {
229
230
  return __async(this, null, function* () {
230
231
  const projectUri = FileSystemUri.pathToUri(projectPath);
231
232
  const loadCompilationOptions = {
@@ -239,22 +240,22 @@ var NodeCompiler = class {
239
240
  this.fileSystem,
240
241
  tsLibrariesProvider,
241
242
  diagnostics,
242
- loadCompilationOptions,
243
- cancellationToken
243
+ taskController,
244
+ loadCompilationOptions
244
245
  );
245
246
  });
246
247
  }
247
- static createAnalyzer(compilation, tsLibrariesProvider, diagnostics, cancellationToken) {
248
+ static createAnalyzer(compilation, tsLibrariesProvider, diagnostics, taskController) {
248
249
  return __async(this, null, function* () {
249
- return yield Compiler.createAnalyzer(compilation, tsLibrariesProvider, diagnostics, cancellationToken);
250
+ return yield Compiler.createAnalyzer(compilation, tsLibrariesProvider, diagnostics, taskController);
250
251
  });
251
252
  }
252
- static analyze(analyzer, diagnostics, cancellationToken) {
253
+ static analyze(analyzer, diagnostics, taskController) {
253
254
  return __async(this, null, function* () {
254
- return yield Compiler.analyze(analyzer, diagnostics, cancellationToken);
255
+ return yield Compiler.analyze(analyzer, diagnostics, taskController);
255
256
  });
256
257
  }
257
- static emit(analyzer, outputPath, diagnostics, emitOptions, cancellationToken) {
258
+ static emit(analyzer, outputPath, diagnostics, taskController, emitOptions) {
258
259
  return __async(this, null, function* () {
259
260
  const outputUri = FileSystemUri.pathToUri(outputPath);
260
261
  const launchUri = yield Compiler.emit(
@@ -262,8 +263,8 @@ var NodeCompiler = class {
262
263
  outputUri,
263
264
  this.fileSystem,
264
265
  diagnostics,
265
- emitOptions,
266
- cancellationToken
266
+ taskController,
267
+ emitOptions
267
268
  );
268
269
  if (launchUri === void 0) {
269
270
  return void 0;
@@ -286,8 +287,8 @@ var NodeCompiler = class {
286
287
  task.projectPath,
287
288
  typeScriptLibrariesProvider,
288
289
  task.diagnostics,
289
- task.loadCompilationOptions,
290
- task.cancellationToken
290
+ task.controller,
291
+ task.loadCompilationOptions
291
292
  );
292
293
  if (compilation === void 0) {
293
294
  return void 0;
@@ -296,22 +297,16 @@ var NodeCompiler = class {
296
297
  compilation,
297
298
  typeScriptLibrariesProvider,
298
299
  task.diagnostics,
299
- task.cancellationToken
300
+ task.controller
300
301
  );
301
302
  if (analyzer === void 0) {
302
303
  return void 0;
303
304
  }
304
- const analyzed = yield this.analyze(analyzer, task.diagnostics, task.cancellationToken);
305
+ const analyzed = yield this.analyze(analyzer, task.diagnostics, task.controller);
305
306
  if (!analyzed) {
306
307
  return void 0;
307
308
  }
308
- const launchPath = yield this.emit(
309
- analyzer,
310
- task.outputPath,
311
- task.diagnostics,
312
- task.emitOptions,
313
- task.cancellationToken
314
- );
309
+ const launchPath = yield this.emit(analyzer, task.outputPath, task.diagnostics, task.controller, task.emitOptions);
315
310
  return launchPath;
316
311
  });
317
312
  }
@@ -403,7 +398,8 @@ var CommandLineCompiler = class {
403
398
  mode: "linked" /* Linked */,
404
399
  includeSourcesContent: false
405
400
  }
406
- }
401
+ },
402
+ controller: new TaskController(-1)
407
403
  };
408
404
  const launchPath = yield NodeCompiler.compile(compilerTask);
409
405
  if (launchPath === void 0) {