@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
@@ -27,6 +27,7 @@ export declare class DisplayService {
27
27
  getParameterDeclarationDisplayParts(parameter: ParameterDeclaration, options?: TypeDisplayOptions): ParameterDeclarationDisplayParts;
28
28
  displayFunctionDeclaration(func: FunctionDeclaration): string;
29
29
  getFunctionDeclarationDisplayParts(func: FunctionDeclaration): FunctionDeclarationDisplayParts;
30
+ displayAnonymousFunctionDeclaration(func: AnonymousFunctionDeclaration): string;
30
31
  displayOperatorDeclaration(operator: OperatorDeclaration): string;
31
32
  getOperatorDeclarationDisplayParts(operator: OperatorDeclaration): OperatorDeclarationDisplayParts;
32
33
  displayOperatorKind(kind: e.OperatorKind): string;
@@ -111,9 +112,9 @@ interface IVariableDeclaration {
111
112
  export type FunctionDeclaration = FunctionDeclaration_entity | FunctionDeclaration_typeMember | FunctionDeclaration_substitutedFunction | FunctionDeclaration_accessedFunction;
112
113
  export declare class FunctionDeclaration_entity implements IFunctionDeclaration {
113
114
  readonly kind = "entity";
114
- readonly func: e.FunctionEntity;
115
- constructor(func: e.FunctionEntity);
116
- getEntity(): e.FunctionEntity;
115
+ readonly func: e.NamedFunctionEntity;
116
+ constructor(func: e.NamedFunctionEntity);
117
+ getEntity(): e.NamedFunctionEntity;
117
118
  getTypeParameterValues(): readonly TypeParameterValue[];
118
119
  getParameters(): readonly ParameterDeclaration[];
119
120
  getReturnType(): types.Type;
@@ -124,7 +125,7 @@ export declare class FunctionDeclaration_typeMember implements IFunctionDeclarat
124
125
  readonly kind = "type-member";
125
126
  readonly func: types.Method;
126
127
  constructor(func: types.Method);
127
- getEntity(): e.FunctionEntity;
128
+ getEntity(): e.NamedFunctionEntity;
128
129
  getTypeParameterValues(): readonly TypeParameterValue[];
129
130
  getParameters(): readonly ParameterDeclaration[];
130
131
  getReturnType(): types.Type;
@@ -135,7 +136,7 @@ export declare class FunctionDeclaration_substitutedFunction implements IFunctio
135
136
  readonly func: SubstitutedFunction;
136
137
  readonly kind = "substituted-function";
137
138
  constructor(func: SubstitutedFunction);
138
- getEntity(): e.FunctionEntity;
139
+ getEntity(): e.NamedFunctionEntity;
139
140
  getTypeParameterValues(): readonly TypeParameterValue[];
140
141
  getParameters(): readonly ParameterDeclaration[];
141
142
  getReturnType(): types.Type;
@@ -146,7 +147,7 @@ export declare class FunctionDeclaration_accessedFunction implements IFunctionDe
146
147
  readonly func: AccessedFunction;
147
148
  readonly kind = "accessed-function";
148
149
  constructor(func: AccessedFunction);
149
- getEntity(): e.FunctionEntity;
150
+ getEntity(): e.NamedFunctionEntity;
150
151
  getTypeParameterValues(): readonly TypeParameterValue[];
151
152
  getParameters(): readonly ParameterDeclaration[];
152
153
  getReturnType(): types.Type;
@@ -154,13 +155,27 @@ export declare class FunctionDeclaration_accessedFunction implements IFunctionDe
154
155
  getContainer(analyzer: Analyzer | undefined): DeclarationContainer | undefined;
155
156
  }
156
157
  interface IFunctionDeclaration {
157
- getEntity(): e.FunctionEntity;
158
+ getEntity(): e.NamedFunctionEntity;
158
159
  getTypeParameterValues(): readonly TypeParameterValue[];
159
160
  getParameters(): readonly ParameterDeclaration[];
160
161
  getReturnType(): types.Type;
161
162
  isAsync(): boolean;
162
163
  getContainer(analyzer: Analyzer | undefined): DeclarationContainer | undefined;
163
164
  }
165
+ export type AnonymousFunctionDeclaration = AnonymousFunctionDeclaration_entity;
166
+ export declare class AnonymousFunctionDeclaration_entity implements IAnonymousFunctionDeclaration {
167
+ readonly kind = "entity";
168
+ readonly func: e.AnonymousFunctionEntity;
169
+ constructor(func: e.AnonymousFunctionEntity);
170
+ getParameters(): readonly ParameterDeclaration[];
171
+ getReturnType(): types.Type;
172
+ isAsync(): boolean;
173
+ }
174
+ interface IAnonymousFunctionDeclaration {
175
+ getParameters(): readonly ParameterDeclaration[];
176
+ getReturnType(): types.Type;
177
+ isAsync(): boolean;
178
+ }
164
179
  export type ConstructorDeclaration = ConstructorDeclaration_entity | ConstructorDeclaration_typeMember;
165
180
  export declare class ConstructorDeclaration_entity implements IConstructorDeclaration {
166
181
  readonly kind = "type-member";
@@ -1,9 +1,9 @@
1
1
  import { Analyzer } from '../analysis/index.js';
2
- import { Range, CancellationToken } from '../common/index.js';
2
+ import { Range, TaskController } from '../common/index.js';
3
3
  import { SourceFile } from '../project/index.js';
4
4
  export declare class DocumentHighlightsService {
5
5
  private readonly referencesService;
6
- getDocumentHighlights(analyzer: Analyzer, sourceFile: SourceFile, offset: number, cancellationToken: CancellationToken | undefined): Promise<Highlight[]>;
6
+ getDocumentHighlights(analyzer: Analyzer, sourceFile: SourceFile, offset: number, taskController: TaskController | undefined): Promise<Highlight[]>;
7
7
  private static referenceKindToHighlightKind;
8
8
  }
9
9
  export declare class Highlight {
@@ -97,7 +97,7 @@ export declare class LanguageServer {
97
97
  private convertUriToVscodeUri;
98
98
  private convertVscodeUriToUri;
99
99
  private createCancellationToken;
100
- private withCancellation;
100
+ private withTaskController;
101
101
  }
102
102
  export interface LanguageServerConfig {
103
103
  readonly connection: ls.Connection;
@@ -48,7 +48,7 @@ export type NodeSemanticInfoServiceOptions = {
48
48
  readonly preferredTargetOfExplicitConstructorCall: 'type-declaration' | 'constructor-declaration';
49
49
  readonly includeBetterReferenceTargets: boolean;
50
50
  };
51
- export type NodeSemanticInfo = DefinitionNodeSemanticInfo | ReferenceNodeSemanticInfo | DefaultSwitchMatchNodeSemanticInfo | RegularOrBlockFunctionLiteralNodeSemanticInfo;
51
+ export type NodeSemanticInfo = DefinitionNodeSemanticInfo | ReferenceNodeSemanticInfo | DefaultSwitchMatchNodeSemanticInfo;
52
52
  export declare class DefinitionNodeSemanticInfo {
53
53
  readonly entity: Entity;
54
54
  readonly kind = "definition";
@@ -147,9 +147,4 @@ export declare class DefaultSwitchMatchNodeSemanticInfo {
147
147
  readonly kind = "default-switch-match";
148
148
  constructor(type: types.Type);
149
149
  }
150
- export declare class RegularOrBlockFunctionLiteralNodeSemanticInfo {
151
- readonly type: types.Type;
152
- readonly kind = "regular-or-block-function-literal";
153
- constructor(type: types.Type);
154
- }
155
150
  export {};
@@ -1,9 +1,9 @@
1
1
  import { Analyzer } from '../analysis/index.js';
2
- import { CancellationToken, Range } from '../common/index.js';
2
+ import { Range, TaskController } from '../common/index.js';
3
3
  import { SourceFile } from '../project/index.js';
4
4
  export declare class ReferencesService {
5
- getReferencesInCompilation(analyzer: Analyzer, sourceFile: SourceFile, offset: number, options: ReferencesSearchOptions, cancellationToken: CancellationToken | undefined): Promise<Reference[]>;
6
- getReferencesInFiles(analyzer: Analyzer, sourceFile: SourceFile, offset: number, sourceFiles: Iterable<SourceFile>, options: ReferencesSearchOptions, cancellationToken: CancellationToken | undefined): Promise<Reference[]>;
5
+ getReferencesInCompilation(analyzer: Analyzer, sourceFile: SourceFile, offset: number, options: ReferencesSearchOptions, taskController: TaskController | undefined): Promise<Reference[]>;
6
+ getReferencesInFiles(analyzer: Analyzer, sourceFile: SourceFile, offset: number, sourceFiles: Iterable<SourceFile>, options: ReferencesSearchOptions, taskController: TaskController | undefined): Promise<Reference[]>;
7
7
  private getReferencedDefinitionInfosAtOffset;
8
8
  private getDefinitionsFromNodeSemanticInfo;
9
9
  private getReferenceRestrictions;
@@ -1,10 +1,10 @@
1
1
  import { Analyzer } from '../analysis/index.js';
2
- import { CancellationToken, Range } from '../common/index.js';
2
+ import { Range, TaskController } from '../common/index.js';
3
3
  import { SourceFile } from '../project/index.js';
4
4
  export declare class RenameService {
5
5
  private readonly referencesService;
6
6
  prepareRename(analyzer: Analyzer, sourceFile: SourceFile, offset: number): Range | undefined;
7
- rename(analyzer: Analyzer, sourceFile: SourceFile, offset: number, newText: string, cancellationToken: CancellationToken | undefined): Promise<Rename[]>;
7
+ rename(analyzer: Analyzer, sourceFile: SourceFile, offset: number, newText: string, taskController: TaskController | undefined): Promise<Rename[]>;
8
8
  private canRename;
9
9
  private entityCanBeRenamed;
10
10
  }
@@ -1,11 +1,11 @@
1
1
  import { Analyzer } from '../analysis/index.js';
2
- import { CancellationToken, Range } from '../common/index.js';
2
+ import { Range, TaskController } from '../common/index.js';
3
3
  import { SourceFile } from '../project/index.js';
4
4
  export declare class SemanticTokensService {
5
- getSemanticTokens(analyzer: Analyzer, sourceFile: SourceFile, cancellationToken: CancellationToken | undefined): Promise<SemanticToken[]>;
6
- getSemanticTokensInRange(analyzer: Analyzer, sourceFile: SourceFile, range: Range, cancellationToken: CancellationToken | undefined): Promise<SemanticToken[]>;
5
+ getSemanticTokens(analyzer: Analyzer, sourceFile: SourceFile, taskController: TaskController | undefined): Promise<SemanticToken[]>;
6
+ getSemanticTokensInRange(analyzer: Analyzer, sourceFile: SourceFile, range: Range, taskController: TaskController | undefined): Promise<SemanticToken[]>;
7
7
  private rangesOverlap;
8
- private getSemanticTokenKindForFunctionEntity;
8
+ private getSemanticTokenKindForNamedFunctionEntity;
9
9
  private isCapitalizedName;
10
10
  }
11
11
  export declare class SemanticToken {
@@ -1,6 +1,6 @@
1
1
  import { ObservableObject } from 'reactronic';
2
2
  import { Analyzer } from '../../analysis/Analyzer.js';
3
- import { CancellationToken } from '../../common/index.js';
3
+ import { TaskController } from '../../common/index.js';
4
4
  import { Entity } from '../../entities/index.js';
5
5
  import { PackageContent } from '../../project/PackageContent.js';
6
6
  import { TypeScriptLibrariesProvider } from '../../ts-interop/TsLibrariesProvider.js';
@@ -12,8 +12,8 @@ export declare class SourceGenerationService extends ObservableObject {
12
12
  private readonly standardPackageContentsProviders;
13
13
  private readonly generatedPackageStates;
14
14
  get compilationControllers(): readonly CompilationController[];
15
- constructor(trackedSourceFiles: ReadonlyClientTrackedSourceFiles, tsLibrariesProvider: TypeScriptLibrariesProvider, standardPackageContentsProviders: (cancellationToken: CancellationToken | undefined) => Promise<readonly PackageContent[] | undefined>);
16
- getDefinitionInGeneratedCode(analyzer: Analyzer, entity: Entity, cancellationToken: CancellationToken | undefined): Promise<SourceLocation[] | undefined>;
15
+ constructor(trackedSourceFiles: ReadonlyClientTrackedSourceFiles, tsLibrariesProvider: TypeScriptLibrariesProvider, standardPackageContentsProviders: (taskController: TaskController) => Promise<readonly PackageContent[] | undefined>);
16
+ getDefinitionInGeneratedCode(analyzer: Analyzer, entity: Entity, taskController: TaskController): Promise<SourceLocation[] | undefined>;
17
17
  entityDefinitionRequiresSourceGeneration(entity: Entity): boolean;
18
18
  protected onOpenedSourceFilesChanged(): void;
19
19
  private getOrGeneratePackageSource;
@@ -1,6 +1,6 @@
1
1
  import { Indicator, ObservableObject } from 'reactronic';
2
2
  import { Analyzer, TsInteropInputs } from '../../analysis/index.js';
3
- import { CancellationToken, Uri } from '../../common/index.js';
3
+ import { TaskController, Uri } from '../../common/index.js';
4
4
  import { Diagnostic } from '../../diagnostic/Diagnostic.js';
5
5
  import { ConvertedConfiguration, ProgramPackageConfiguration, SourceFile, fsTree } from '../../project/index.js';
6
6
  import { PackageContent } from '../../project/PackageContent.js';
@@ -32,6 +32,8 @@ export declare class CompilationController extends ObservableObject {
32
32
  get configurationControllerByPackageUri(): ReadonlyMap<string, ConfigurationController>;
33
33
  get state(): CompilationControllerState;
34
34
  constructor(config: CompilationControllerConfig);
35
+ waitFullyLoadedAndConfigsProcessed(taskController: TaskController): Promise<void>;
36
+ hasAllConfigsProcessed(): boolean;
35
37
  waitFullyLoaded(): Promise<void>;
36
38
  getStateOfCompilationContainingItemAtUri(uri: Uri): Promise<ReadonlyCompilationState | undefined>;
37
39
  notifyReportedSourceFileDiagnostics(uri: Uri, compilationVersion: number): void;
@@ -90,10 +92,10 @@ export declare class ReadonlyCompilationState {
90
92
  readonly version: number;
91
93
  private diagnosticsCollectionSummaryByUri;
92
94
  constructor(analyzer: Analyzer, version: number);
93
- collectSourceFileDiagnosticsWithHighPriority(sourceFile: SourceFile, cancellationToken: CancellationToken | undefined): Promise<readonly Diagnostic[]>;
94
- collectSourceFileDiagnosticsWithLowPriority(sourceFile: SourceFile, cancellationToken: CancellationToken | undefined): Promise<readonly Diagnostic[]>;
95
- getDiagnosticsCollectionSummary(sourceFile: SourceFile, cancellationToken: CancellationToken | undefined): Promise<DiagnosticsCollectionSummary>;
96
- private collectSourceFileDiagnostics;
95
+ collectSourceFileDiagnosticsWithHighPriority(sourceFile: SourceFile, taskController: TaskController): Promise<readonly Diagnostic[]>;
96
+ collectSourceFileDiagnosticsWithLowPriority(sourceFile: SourceFile, taskController: TaskController): Promise<readonly Diagnostic[]>;
97
+ getDiagnosticsCollectionSummary(sourceFile: SourceFile, taskController: TaskController): Promise<DiagnosticsCollectionSummary>;
98
+ private analyzeSourceFile;
97
99
  private createDiagnosticsCollectionSummary;
98
100
  }
99
101
  export declare class DiagnosticsCollectionSummary {
@@ -1,5 +1,5 @@
1
1
  import { ObservableArray, ObservableMap, ObservableObject } from 'reactronic';
2
- import { CancellationToken, Uri } from '../../common/index.js';
2
+ import { TaskController, Uri } from '../../common/index.js';
3
3
  import * as fsTree from '../../project/FileSystemTree.js';
4
4
  import { ReadonlyClientTrackedSourceFiles } from './ClientTrackedSourceFiles.js';
5
5
  import { FileSystemTreeProvider } from './WorkspaceFiles.js';
@@ -25,7 +25,7 @@ export declare class FileSystemTreeProviderBasedOnWatchedFileSystem extends Obse
25
25
  private readonly loadedDirectoryUris;
26
26
  constructor(fileSystem: WorkspaceFileSystem, notificationsPublisher: FileSystemUpdateNotificationsPublisher, namesOfDirectoriesToIgnore?: string[], additionalUrisOfDirectoriesToLoad?: readonly Uri[]);
27
27
  initialize(workspaceFolderUris: ObservableArray<Uri>, trackedSourceFiles: ReadonlyClientTrackedSourceFiles): void;
28
- waitLoaded(cancellationToken: CancellationToken | undefined): Promise<void>;
28
+ waitLoaded(taskController: TaskController | undefined): Promise<void>;
29
29
  dispose(): void;
30
30
  protected onTrackedSourceFilesUpdated(): void;
31
31
  protected onWorkspaceFolderUrisUpdated(): void;
@@ -1,9 +1,9 @@
1
1
  import { ObservableArray, ObservableMap, ObservableObject } from 'reactronic';
2
- import { CancellationToken } from '../../common/CancellationToken.js';
3
2
  import { Uri } from '../../common/Uri.js';
4
3
  import * as fsTree from '../../project/FileSystemTree.js';
5
4
  import { ReadonlyClientTrackedSourceFiles } from './ClientTrackedSourceFiles.js';
6
5
  import { FileSystemTreeProvider } from './WorkspaceFiles.js';
6
+ import { TaskController } from '../../common/TaskController.js';
7
7
  export declare class ManuallyUpdatedFileSystemTreeProvider extends ObservableObject implements FileSystemTreeProvider {
8
8
  readonly fileSystemTree: fsTree.FileSystemTree;
9
9
  readonly loadedWorkspaceFolderByUri: ObservableMap<string, fsTree.Directory>;
@@ -12,7 +12,7 @@ export declare class ManuallyUpdatedFileSystemTreeProvider extends ObservableObj
12
12
  private readonly lastCheckedTrackedSourceFileInfoByUri;
13
13
  private readonly manuallyCreatedSourceFileTextByUri;
14
14
  initialize(workspaceFolderUris: ObservableArray<Uri>, trackedSourceFiles: ReadonlyClientTrackedSourceFiles): void;
15
- waitLoaded(_cancellationToken: CancellationToken | undefined): Promise<void>;
15
+ waitLoaded(_taskController: TaskController | undefined): Promise<void>;
16
16
  dispose(): void;
17
17
  createOrUpdateSourceFile(uri: Uri, text: string): void;
18
18
  deleteSourceFile(uri: Uri): void;
@@ -1,6 +1,6 @@
1
1
  import { ObservableMap, ObservableObject } from 'reactronic';
2
2
  import { Analyzer } from '../../analysis/index.js';
3
- import { CancellationToken, Uri } from '../../common/index.js';
3
+ import { TaskController, Uri } from '../../common/index.js';
4
4
  import * as fsTree from '../../project/FileSystemTree.js';
5
5
  import { SourceFile, SourcePackage } from '../../project/index.js';
6
6
  import { PackageContent } from '../../project/PackageContent.js';
@@ -32,8 +32,8 @@ export declare class Workspace extends ObservableObject {
32
32
  notifyUpdatedTextDocument(uri: Uri, textOrEditor: string | ((text: string) => string), version: number): void;
33
33
  notifySavedTextDocument(uri: Uri): void;
34
34
  notifyClosedTextDocument(uri: Uri): void;
35
- waitLoadedAndGetWorkspaceElementInfo(uri: Uri, cancellationToken: CancellationToken): Promise<WorkspaceElementInfo | undefined>;
36
- getStandardPackageContents(cancellationToken: CancellationToken | undefined): Promise<readonly PackageContent[] | undefined>;
35
+ waitLoadedAndGetWorkspaceElementInfo(uri: Uri, taskController: TaskController): Promise<WorkspaceElementInfo | undefined>;
36
+ getStandardPackageContents(taskController: TaskController): Promise<readonly PackageContent[] | undefined>;
37
37
  dispose(): void;
38
38
  protected updateCompilationControllers(): void;
39
39
  protected processControllersWithUnprocessedConfigs(): Promise<void>;
@@ -42,8 +42,6 @@ export declare class Workspace extends ObservableObject {
42
42
  private deleteCompilationController;
43
43
  private createCompilationController;
44
44
  private getControllerToLoad;
45
- private isCompilationControllerStateWithProcessedConfigs;
46
- private waitForControllerToFullyLoad;
47
45
  }
48
46
  export interface WorkspaceElementInfo {
49
47
  compilationController: CompilationController;
@@ -1,5 +1,5 @@
1
1
  import { ObservableArray, ObservableMap, ObservableObject } from 'reactronic';
2
- import { CancellationToken, Uri } from '../../common/index.js';
2
+ import { Uri, TaskController } from '../../common/index.js';
3
3
  import * as fsTree from '../../project/FileSystemTree.js';
4
4
  import { ClientTrackedSourceFiles, ReadonlyClientTrackedSourceFiles } from './ClientTrackedSourceFiles.js';
5
5
  export declare class WorkspaceFiles extends ObservableObject {
@@ -19,7 +19,7 @@ export declare class WorkspaceFiles extends ObservableObject {
19
19
  updateTrackedSourceFile(uri: Uri, textOrEditor: string | ((text: string) => string), version: number): void;
20
20
  notifyTrackedSourceFileSaved(uri: Uri): void;
21
21
  stopTrackingSourceFile(uri: Uri): void;
22
- waitLoaded(cancellationToken: CancellationToken | undefined): Promise<void>;
22
+ waitLoaded(taskController: TaskController): Promise<void>;
23
23
  dispose(): void;
24
24
  protected updateWorkspaceFolderWithArtelProjectByUri(): void;
25
25
  }
@@ -30,6 +30,6 @@ export interface FileSystemTreeProvider {
30
30
  * Должен быть вызван до вызова всех остальных методов.
31
31
  */
32
32
  initialize(workspaceFolderUris: ObservableArray<Uri>, trackedSourceFiles: ReadonlyClientTrackedSourceFiles): void;
33
- waitLoaded(cancellationToken: CancellationToken | undefined): Promise<void>;
33
+ waitLoaded(taskController: TaskController | undefined): Promise<void>;
34
34
  dispose(): void;
35
35
  }
@@ -103,6 +103,7 @@ export declare class TsGlobalFunctionEntity implements PackageFunctionEntity {
103
103
  private readonly hiding;
104
104
  constructor(tsctx: TsInteropContext, symbol: ts.Symbol, isDefaultExport: boolean, declaration: ts.FunctionDeclaration, containingPackage: PackageEntity, forceHiddenInPackage: boolean);
105
105
  getName(): Name;
106
+ getNaming(): EntityNaming;
106
107
  getContainingPackage(): PackageEntity;
107
108
  getTypeParameters(): readonly TypeParameterEntity[];
108
109
  getParameters(): readonly ParameterEntity[];
@@ -457,6 +458,7 @@ export declare class TsMethodEntity implements MethodEntity {
457
458
  private readonly hiding;
458
459
  constructor(tsctx: TsInteropContext, symbol: ts.Symbol, declaration: ts.MethodDeclaration | ts.MethodSignature, containingType: TypeEntityWithMembers, forceStatic: boolean);
459
460
  getName(): Name;
461
+ getNaming(): EntityNaming;
460
462
  getTypeParameters(): readonly TypeParameterEntity[];
461
463
  getParameters(): readonly ParameterEntity[];
462
464
  getReturnType(): types.Type;
@@ -490,6 +492,7 @@ export declare class TsIteratorFunctionEntity implements MethodEntity {
490
492
  private readonly returnType;
491
493
  constructor(tsctx: TsInteropContext, symbol: ts.Symbol, containingType: TypeEntityWithMembers);
492
494
  getName(): Name;
495
+ getNaming(): EntityNaming;
493
496
  getTypeParameters(): readonly TypeParameterEntity[];
494
497
  getParameters(): readonly ParameterEntity[];
495
498
  getReturnType(): types.Type;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artel/artc",
3
- "version": "0.6.25276",
3
+ "version": "0.6.25278",
4
4
  "description": "Артель Компилятор | Artel Compiler",
5
5
  "author": "Nezaboodka Team <contact@nezaboodka.com>",
6
6
  "license": "LGPL-3.0-or-later",
@@ -1,17 +0,0 @@
1
- import { CancellationToken } from './index.js';
2
- export declare class ThrottledCancellationToken {
3
- private readonly token;
4
- private readonly throttleTimeMs;
5
- private readonly checkThrottleTimeEveryN;
6
- private checkNumber;
7
- private lastTimeMs;
8
- constructor(token: CancellationToken, throttleTimeMs: number, checkThrottleTimeEveryN: number);
9
- isThrottleTimeOver(): boolean;
10
- throwIfCancellationRequestedAndReset(): void;
11
- throwIfCancellationRequestedAndResetAsync(): Promise<void>;
12
- withOptions(options: ThrottledCancellationTokenOptions): ThrottledCancellationToken;
13
- }
14
- export interface ThrottledCancellationTokenOptions {
15
- throttleTimeMs?: number;
16
- checkThrottleTimeEveryN?: number;
17
- }
@@ -1 +0,0 @@
1
- export declare function yieldExecution(timeMs?: number): Promise<void>;