@artel/artc 0.6.25191 → 0.6.25193
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/build/Cli.js +3 -3
- package/build/api/Api.js +2 -2
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +91 -90
- package/build/{chunk-O2JKESUU.js → chunk-3SICRIJF.js} +122 -113
- package/build/{chunk-BQHCAH6D.js → chunk-BGALJGSZ.js} +2 -2
- package/build/{chunk-QRBDQKYM.js → chunk-BSUNNGVO.js} +1 -1
- package/build/types/entities/EntityHiding.d.ts +1 -1
- package/build/types/tree/KeywordKind.d.ts +1 -1
- package/build/types/tree/green/Nodes.d.ts +1 -1
- package/build/types/tree/red/Nodes.d.ts +1 -1
- package/package.json +2 -2
package/build/Cli.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
2
|
import {
|
3
3
|
CommandLineCompiler
|
4
|
-
} from "./chunk-
|
5
|
-
import "./chunk-
|
4
|
+
} from "./chunk-BGALJGSZ.js";
|
5
|
+
import "./chunk-BSUNNGVO.js";
|
6
6
|
import {
|
7
7
|
__async
|
8
|
-
} from "./chunk-
|
8
|
+
} from "./chunk-3SICRIJF.js";
|
9
9
|
|
10
10
|
// source/Cli.ts
|
11
11
|
function main() {
|
package/build/api/Api.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import {
|
2
2
|
Compiler
|
3
|
-
} from "../chunk-
|
3
|
+
} from "../chunk-BSUNNGVO.js";
|
4
4
|
import {
|
5
5
|
AccessKind,
|
6
6
|
AccessedMethodValueParameter,
|
@@ -330,7 +330,7 @@ import {
|
|
330
330
|
visitChildrenRecursively,
|
331
331
|
withoutQuotes,
|
332
332
|
yieldExecution
|
333
|
-
} from "../chunk-
|
333
|
+
} from "../chunk-3SICRIJF.js";
|
334
334
|
export {
|
335
335
|
AccessKind,
|
336
336
|
AccessedMethodValueParameter,
|
package/build/api/ApiNodeJS.js
CHANGED
@@ -6,9 +6,9 @@ import {
|
|
6
6
|
PhysicalFileSystem,
|
7
7
|
PhysicalTypeScriptLibrariesProvider,
|
8
8
|
PrintingDiagnosticAcceptor
|
9
|
-
} from "../chunk-
|
10
|
-
import "../chunk-
|
11
|
-
import "../chunk-
|
9
|
+
} from "../chunk-BGALJGSZ.js";
|
10
|
+
import "../chunk-BSUNNGVO.js";
|
11
|
+
import "../chunk-3SICRIJF.js";
|
12
12
|
export {
|
13
13
|
CommandLineCompiler,
|
14
14
|
FileSystemUri,
|
package/build/api/ApiServices.js
CHANGED
@@ -182,7 +182,7 @@ import {
|
|
182
182
|
unwrapParenthesizedExpressions,
|
183
183
|
visitChildren,
|
184
184
|
yieldExecution
|
185
|
-
} from "../chunk-
|
185
|
+
} from "../chunk-3SICRIJF.js";
|
186
186
|
|
187
187
|
// source/services/CustomCommand.ts
|
188
188
|
import * as ls from "vscode-languageserver";
|
@@ -267,7 +267,7 @@ function cast(value) {
|
|
267
267
|
}
|
268
268
|
|
269
269
|
// source/services/LanguageServer.ts
|
270
|
-
import {
|
270
|
+
import { atomicRun as atomicRun3, atomic as atomic6 } from "reactronic";
|
271
271
|
import * as ls2 from "vscode-languageserver";
|
272
272
|
import { TextDocument } from "vscode-languageserver-textdocument";
|
273
273
|
import { URI as URI2, Utils } from "vscode-uri";
|
@@ -1482,7 +1482,7 @@ var CompletionService = class {
|
|
1482
1482
|
kinds.add(43 /* As */).add(13 /* Is */).add(19 /* And */).add(20 /* Or */).add(21 /* Xor */).add(26 /* When */);
|
1483
1483
|
}
|
1484
1484
|
if (this.isModifierLevelContext(positionDescription)) {
|
1485
|
-
kinds.add(53 /* InType */).add(50 /*
|
1485
|
+
kinds.add(53 /* InType */).add(50 /* InHierarchy */).add(51 /* InFile */).add(52 /* InPackage */);
|
1486
1486
|
}
|
1487
1487
|
if (this.isRepeatWhileKeywordContext(positionDescription)) {
|
1488
1488
|
kinds.add(24 /* RepeatWhile */);
|
@@ -6698,7 +6698,7 @@ var SignatureInfo = class {
|
|
6698
6698
|
};
|
6699
6699
|
|
6700
6700
|
// source/services/source-generation/SourceGenerationService.ts
|
6701
|
-
import { ObservableMap as ObservableMap6, ObservableObject as ObservableObject7, Transaction as Transaction4,
|
6701
|
+
import { ObservableMap as ObservableMap6, ObservableObject as ObservableObject7, Transaction as Transaction4, atomicRun as atomicRun2, reactive as reactive6 } from "reactronic";
|
6702
6702
|
|
6703
6703
|
// source/tree/green/SyntaxToCode.ts
|
6704
6704
|
var SyntaxToCode = class _SyntaxToCode {
|
@@ -7774,7 +7774,7 @@ var modifierSortOrder = {
|
|
7774
7774
|
};
|
7775
7775
|
|
7776
7776
|
// source/services/workspace/ClientTrackedSourceFiles.ts
|
7777
|
-
import { ObservableMap, ObservableObject, unobservable, ReactiveSystem,
|
7777
|
+
import { ObservableMap, ObservableObject, unobservable, ReactiveSystem, atomic } from "reactronic";
|
7778
7778
|
var ClientTrackedSourceFiles = class extends ObservableObject {
|
7779
7779
|
constructor() {
|
7780
7780
|
super(...arguments);
|
@@ -7831,16 +7831,16 @@ var ClientTrackedSourceFiles = class extends ObservableObject {
|
|
7831
7831
|
}
|
7832
7832
|
};
|
7833
7833
|
__decorateClass([
|
7834
|
-
|
7834
|
+
atomic
|
7835
7835
|
], ClientTrackedSourceFiles.prototype, "track", 1);
|
7836
7836
|
__decorateClass([
|
7837
|
-
|
7837
|
+
atomic
|
7838
7838
|
], ClientTrackedSourceFiles.prototype, "update", 1);
|
7839
7839
|
__decorateClass([
|
7840
|
-
|
7840
|
+
atomic
|
7841
7841
|
], ClientTrackedSourceFiles.prototype, "save", 1);
|
7842
7842
|
__decorateClass([
|
7843
|
-
|
7843
|
+
atomic
|
7844
7844
|
], ClientTrackedSourceFiles.prototype, "close", 1);
|
7845
7845
|
var ClientTrackedSourceFile = class extends ObservableObject {
|
7846
7846
|
constructor(uri, text, version, isSaved) {
|
@@ -7878,9 +7878,9 @@ import {
|
|
7878
7878
|
Transaction,
|
7879
7879
|
options,
|
7880
7880
|
unobservable as unobservable2,
|
7881
|
-
|
7882
|
-
|
7883
|
-
|
7881
|
+
atomic as atomic2,
|
7882
|
+
reactive,
|
7883
|
+
nonReactiveRun
|
7884
7884
|
} from "reactronic";
|
7885
7885
|
var highPriorityDiagnosticsCollectionIndicator = Indicator.create(
|
7886
7886
|
"HighPriorityDiagnosticsCollectionIndicator",
|
@@ -8009,7 +8009,7 @@ var CompilationController = class extends ObservableObject2 {
|
|
8009
8009
|
provideConfiguration: configurationProvider,
|
8010
8010
|
standardPackagesUri: this.config.standardPackagesUri
|
8011
8011
|
};
|
8012
|
-
const loadResult = yield
|
8012
|
+
const loadResult = yield nonReactiveRun(
|
8013
8013
|
() => __async(this, null, function* () {
|
8014
8014
|
return yield CompilationLoader.loadFromFileSystemTree(this._rootDirectory, this._fileSystemTree, loadConfig, void 0);
|
8015
8015
|
})
|
@@ -8048,7 +8048,7 @@ var CompilationController = class extends ObservableObject2 {
|
|
8048
8048
|
child.text;
|
8049
8049
|
break;
|
8050
8050
|
case "directory":
|
8051
|
-
if (
|
8051
|
+
if (nonReactiveRun(() => CompilationLoader.isConfigurationDirectory(child))) {
|
8052
8052
|
child.version;
|
8053
8053
|
} else {
|
8054
8054
|
subscribeToFileSystemRecursively(child);
|
@@ -8141,7 +8141,7 @@ var CompilationController = class extends ObservableObject2 {
|
|
8141
8141
|
}
|
8142
8142
|
updateConfigurationControllers() {
|
8143
8143
|
subscribeToFileSystemRecursively(this._rootDirectory);
|
8144
|
-
const configurationDirectories =
|
8144
|
+
const configurationDirectories = nonReactiveRun(() => this.findConfigurationDirectories());
|
8145
8145
|
const preservedControllerByPackageUri = /* @__PURE__ */ new Map();
|
8146
8146
|
const addedConfigurationDirectoryByPackageUri = /* @__PURE__ */ new Map();
|
8147
8147
|
const deletedConfigurationControllerByPackageUri = new Map(this._configurationControllerByPackageUri);
|
@@ -8180,7 +8180,7 @@ var CompilationController = class extends ObservableObject2 {
|
|
8180
8180
|
directory.version;
|
8181
8181
|
for (const child of directory.getChildren()) {
|
8182
8182
|
if (child.kind === "directory") {
|
8183
|
-
if (!
|
8183
|
+
if (!nonReactiveRun(() => CompilationLoader.isConfigurationDirectory(child))) {
|
8184
8184
|
subscribeToFileSystemRecursively(child);
|
8185
8185
|
}
|
8186
8186
|
}
|
@@ -8212,8 +8212,8 @@ var CompilationController = class extends ObservableObject2 {
|
|
8212
8212
|
if (currentTransaction.isCanceled) {
|
8213
8213
|
return;
|
8214
8214
|
}
|
8215
|
-
const trackedSourceFiles =
|
8216
|
-
const compilationState =
|
8215
|
+
const trackedSourceFiles = nonReactiveRun(() => this.config.trackedSourceFiles.createItemsSnapshot());
|
8216
|
+
const compilationState = nonReactiveRun(() => this._mainCompilationState);
|
8217
8217
|
if (compilationState === void 0) {
|
8218
8218
|
return;
|
8219
8219
|
}
|
@@ -8379,33 +8379,33 @@ __decorateClass([
|
|
8379
8379
|
unobservable2
|
8380
8380
|
], CompilationController.prototype, "_configurationsOfPackagesOutsideProject", 2);
|
8381
8381
|
__decorateClass([
|
8382
|
-
|
8382
|
+
atomic2
|
8383
8383
|
], CompilationController.prototype, "notifyReportedSourceFileDiagnostics", 1);
|
8384
8384
|
__decorateClass([
|
8385
|
-
|
8385
|
+
reactive,
|
8386
8386
|
options({ reentrance: Reentrance.cancelPrevious, order: 24 })
|
8387
8387
|
], CompilationController.prototype, "reloadMainCompilation", 1);
|
8388
8388
|
__decorateClass([
|
8389
|
-
|
8389
|
+
reactive,
|
8390
8390
|
options({ order: 25 })
|
8391
8391
|
], CompilationController.prototype, "updateState", 1);
|
8392
8392
|
__decorateClass([
|
8393
|
-
|
8393
|
+
reactive,
|
8394
8394
|
options({ order: 20 })
|
8395
8395
|
], CompilationController.prototype, "updateConfigurationControllers", 1);
|
8396
8396
|
__decorateClass([
|
8397
|
-
|
8397
|
+
reactive,
|
8398
8398
|
options({ order: 21 })
|
8399
8399
|
], CompilationController.prototype, "onConfigurationsUpdated", 1);
|
8400
8400
|
__decorateClass([
|
8401
|
-
|
8401
|
+
reactive
|
8402
8402
|
], CompilationController.prototype, "onMainAnalyzerChanged", 1);
|
8403
8403
|
__decorateClass([
|
8404
|
-
|
8404
|
+
reactive,
|
8405
8405
|
options({ reentrance: Reentrance.cancelAndWaitPrevious })
|
8406
8406
|
], CompilationController.prototype, "collectDiagnosticsInBackground", 1);
|
8407
8407
|
__decorateClass([
|
8408
|
-
|
8408
|
+
reactive,
|
8409
8409
|
options({ reentrance: Reentrance.waitAndRestart })
|
8410
8410
|
], CompilationController.prototype, "onRawPackageConfigurationsUpdated", 1);
|
8411
8411
|
var TsProgramLoaderInputs = class {
|
@@ -8467,11 +8467,11 @@ var ReadonlyCompilationState = class {
|
|
8467
8467
|
}
|
8468
8468
|
};
|
8469
8469
|
__decorateClass([
|
8470
|
-
|
8470
|
+
atomic2,
|
8471
8471
|
options({ reentrance: Reentrance.runSideBySide, indicator: highPriorityDiagnosticsCollectionIndicator })
|
8472
8472
|
], ReadonlyCompilationState.prototype, "collectSourceFileDiagnosticsWithHighPriority", 1);
|
8473
8473
|
__decorateClass([
|
8474
|
-
|
8474
|
+
atomic2,
|
8475
8475
|
options({ reentrance: Reentrance.runSideBySide })
|
8476
8476
|
], ReadonlyCompilationState.prototype, "collectSourceFileDiagnosticsWithLowPriority", 1);
|
8477
8477
|
var DiagnosticsCollectionSummary = class {
|
@@ -8560,7 +8560,7 @@ var ConfigurationController = class extends ObservableObject2 {
|
|
8560
8560
|
this._convertedConfigurationVersion++;
|
8561
8561
|
});
|
8562
8562
|
}
|
8563
|
-
// @
|
8563
|
+
// @reactive
|
8564
8564
|
// @options({ reentrance: Reentrance.cancelPrevious, order: 21 })
|
8565
8565
|
// private async reloadCompilation(): Promise<void> {
|
8566
8566
|
// if (!this._mainCompilationController.isConfigurationsProcessingEnabled) {
|
@@ -8573,7 +8573,7 @@ var ConfigurationController = class extends ObservableObject2 {
|
|
8573
8573
|
// subscribeToFileSystemRecursively(this.rootDirectory)
|
8574
8574
|
// const currentTransaction = Transaction.current
|
8575
8575
|
// const cancellationToken = new GenericCancellationToken(() => currentTransaction.isCanceled)
|
8576
|
-
// const compilation = await
|
8576
|
+
// const compilation = await nonReactiveRun(async () =>
|
8577
8577
|
// await PackageConfigurationInterpreter.loadConfigurationCompilation(this.rootDirectory, undefined,
|
8578
8578
|
// this._compilationState?.analyzer.compilation, cancellationToken),
|
8579
8579
|
// )
|
@@ -8591,7 +8591,7 @@ var ConfigurationController = class extends ObservableObject2 {
|
|
8591
8591
|
// child.text // подписка
|
8592
8592
|
// break
|
8593
8593
|
// case 'directory':
|
8594
|
-
// if (
|
8594
|
+
// if (nonReactiveRun(() => CompilationLoader.isPackageConfigurationDirectory(directory))) {
|
8595
8595
|
// // Для папки с конфигурацией подписываемся только на изменение её содержимого.
|
8596
8596
|
// // Если она не будет содержать ни одного файла - перестанет считаться конфигурационной папкой.
|
8597
8597
|
// // Вложенные файлы не являются частью главной компиляции, поэтому на них не нужно подписываться.
|
@@ -8607,7 +8607,7 @@ var ConfigurationController = class extends ObservableObject2 {
|
|
8607
8607
|
// }
|
8608
8608
|
// }
|
8609
8609
|
// }
|
8610
|
-
// @
|
8610
|
+
// @reactive
|
8611
8611
|
// @options({ reentrance: Reentrance.cancelPrevious, order: 22 })
|
8612
8612
|
// private async analyze(): Promise<void> {
|
8613
8613
|
// if (!this._mainCompilationController.isConfigurationsProcessingEnabled) {
|
@@ -8617,7 +8617,7 @@ var ConfigurationController = class extends ObservableObject2 {
|
|
8617
8617
|
// const compilationState = this._compilationState
|
8618
8618
|
// const currentTransaction = Transaction.current
|
8619
8619
|
// const cancellationToken = new GenericCancellationToken(() => currentTransaction.isCanceled)
|
8620
|
-
// const trackedSourceFileByUri =
|
8620
|
+
// const trackedSourceFileByUri = nonReactiveRun(() =>
|
8621
8621
|
// this._mainCompilationController.config.trackedSourceFiles.createItemsSnapshot(),
|
8622
8622
|
// )
|
8623
8623
|
// const diagnosticsOfSourceFilesPromises =
|
@@ -8641,11 +8641,11 @@ var ConfigurationController = class extends ObservableObject2 {
|
|
8641
8641
|
// }
|
8642
8642
|
// }
|
8643
8643
|
// }
|
8644
|
-
// @
|
8644
|
+
// @reactive
|
8645
8645
|
// private diagnosticsChanged(): void {
|
8646
8646
|
// this._configurationDiagnostics // подписка
|
8647
8647
|
// }
|
8648
|
-
// @
|
8648
|
+
// @reactive
|
8649
8649
|
// @options({ reentrance: Reentrance.cancelAndWaitPrevious })
|
8650
8650
|
// private async reportDiagnostics(): Promise<void> {
|
8651
8651
|
// if (!this._mainCompilationController.isConfigurationsProcessingEnabled) {
|
@@ -8657,7 +8657,7 @@ var ConfigurationController = class extends ObservableObject2 {
|
|
8657
8657
|
// if (this._diagnosticsChangedIndicator.isBusy) {
|
8658
8658
|
// return
|
8659
8659
|
// }
|
8660
|
-
// const diagnostics =
|
8660
|
+
// const diagnostics = nonReactiveRun(() => this._configurationDiagnostics)
|
8661
8661
|
// if (diagnostics === undefined) {
|
8662
8662
|
// return
|
8663
8663
|
// }
|
@@ -8671,7 +8671,7 @@ var ConfigurationController = class extends ObservableObject2 {
|
|
8671
8671
|
// }
|
8672
8672
|
// }
|
8673
8673
|
// }
|
8674
|
-
// @
|
8674
|
+
// @reactive
|
8675
8675
|
// @options({ reentrance: Reentrance.cancelPrevious, order: 23 })
|
8676
8676
|
// private async interpretConfiguration(): Promise<void> {
|
8677
8677
|
// if (!this._mainCompilationController.isConfigurationsProcessingEnabled) {
|
@@ -8694,7 +8694,7 @@ var ConfigurationController = class extends ObservableObject2 {
|
|
8694
8694
|
// }
|
8695
8695
|
// else {
|
8696
8696
|
// const analyzer = this._compilationState.analyzer
|
8697
|
-
// const result = await
|
8697
|
+
// const result = await nonReactiveRun(async () =>
|
8698
8698
|
// await PackageConfigurationInterpreter.compileAndExecuteConfiguration(analyzer, undefined),
|
8699
8699
|
// )
|
8700
8700
|
// if (!Transaction.current.isCanceled) {
|
@@ -8725,11 +8725,11 @@ __decorateClass([
|
|
8725
8725
|
unobservable2
|
8726
8726
|
], ConfigurationController.prototype, "_mainCompilationController", 2);
|
8727
8727
|
__decorateClass([
|
8728
|
-
|
8728
|
+
reactive,
|
8729
8729
|
options({ reentrance: Reentrance.cancelPrevious, order: 21 })
|
8730
8730
|
], ConfigurationController.prototype, "updateJsonConfigurationFile", 1);
|
8731
8731
|
__decorateClass([
|
8732
|
-
|
8732
|
+
reactive,
|
8733
8733
|
options({ reentrance: Reentrance.cancelPrevious, order: 22 })
|
8734
8734
|
], ConfigurationController.prototype, "processConfiguration", 1);
|
8735
8735
|
var ConfigurationDirectory = class {
|
@@ -8749,8 +8749,8 @@ import {
|
|
8749
8749
|
unobservable as unobservable3,
|
8750
8750
|
ReactiveSystem as ReactiveSystem3,
|
8751
8751
|
Transaction as Transaction2,
|
8752
|
-
|
8753
|
-
|
8752
|
+
atomic as atomic3,
|
8753
|
+
reactive as reactive2
|
8754
8754
|
} from "reactronic";
|
8755
8755
|
var FileSystemTreeProviderBasedOnWatchedFileSystem = class extends ObservableObject3 {
|
8756
8756
|
// Используется в качестве множества.
|
@@ -9118,7 +9118,7 @@ var FileSystemTreeProviderBasedOnWatchedFileSystem = class extends ObservableObj
|
|
9118
9118
|
this.fileSystemTree.deleteFileOrDirectory(uri);
|
9119
9119
|
}
|
9120
9120
|
}
|
9121
|
-
// @
|
9121
|
+
// @reactive
|
9122
9122
|
// @options({ order: 0 })
|
9123
9123
|
// protected unloadWorkspaceFoldersThatNoLongerContainArtelProject(): void {
|
9124
9124
|
// if (this.isMissingConfigurationDirectoryAllowed) {
|
@@ -9273,29 +9273,29 @@ __decorateClass([
|
|
9273
9273
|
unobservable3
|
9274
9274
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "_loadedDirectoryUris", 2);
|
9275
9275
|
__decorateClass([
|
9276
|
-
|
9276
|
+
reactive2
|
9277
9277
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "onTrackedSourceFilesUpdated", 1);
|
9278
9278
|
__decorateClass([
|
9279
|
-
|
9279
|
+
reactive2
|
9280
9280
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "onWorkspaceFolderUrisUpdated", 1);
|
9281
9281
|
__decorateClass([
|
9282
|
-
|
9282
|
+
reactive2,
|
9283
9283
|
options2({ order: 0 })
|
9284
9284
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "updateLoadedWorkspaceFolders", 1);
|
9285
9285
|
__decorateClass([
|
9286
|
-
|
9286
|
+
atomic3
|
9287
9287
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "addWorkspaceFoldersWorker", 1);
|
9288
9288
|
__decorateClass([
|
9289
|
-
|
9289
|
+
atomic3
|
9290
9290
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "removeWorkspaceFoldersWorker", 1);
|
9291
9291
|
__decorateClass([
|
9292
|
-
|
9292
|
+
atomic3
|
9293
9293
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "onFileSystemTreeUpdatedWorker", 1);
|
9294
9294
|
__decorateClass([
|
9295
|
-
|
9295
|
+
atomic3
|
9296
9296
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "stopTrackingSourceFile", 1);
|
9297
9297
|
__decorateClass([
|
9298
|
-
|
9298
|
+
atomic3
|
9299
9299
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "updateFileSystemTree", 1);
|
9300
9300
|
var SimpleFileSystemUpdateNotificationsPublisher = class {
|
9301
9301
|
constructor() {
|
@@ -9433,17 +9433,17 @@ __decorateClass([
|
|
9433
9433
|
unobservable3
|
9434
9434
|
], TaskQueue.prototype, "_tasks", 2);
|
9435
9435
|
__decorateClass([
|
9436
|
-
|
9436
|
+
atomic3
|
9437
9437
|
], TaskQueue.prototype, "addTask", 1);
|
9438
9438
|
__decorateClass([
|
9439
|
-
|
9439
|
+
reactive2
|
9440
9440
|
], TaskQueue.prototype, "processTasks", 1);
|
9441
9441
|
__decorateClass([
|
9442
|
-
|
9442
|
+
reactive2
|
9443
9443
|
], TaskQueue.prototype, "executeTask", 1);
|
9444
9444
|
|
9445
9445
|
// source/services/workspace/ManuallyUpdatedFileSystemTreeProvider.ts
|
9446
|
-
import { ObservableMap as ObservableMap3, ObservableObject as ObservableObject4, options as options3, unobservable as unobservable4,
|
9446
|
+
import { ObservableMap as ObservableMap3, ObservableObject as ObservableObject4, options as options3, unobservable as unobservable4, reactive as reactive3, ReactiveSystem as ReactiveSystem4 } from "reactronic";
|
9447
9447
|
var ManuallyUpdatedFileSystemTreeProvider = class extends ObservableObject4 {
|
9448
9448
|
constructor() {
|
9449
9449
|
super(...arguments);
|
@@ -9559,10 +9559,10 @@ __decorateClass([
|
|
9559
9559
|
unobservable4
|
9560
9560
|
], ManuallyUpdatedFileSystemTreeProvider.prototype, "_manuallyCreatedSourceFileTextByUri", 2);
|
9561
9561
|
__decorateClass([
|
9562
|
-
|
9562
|
+
reactive3
|
9563
9563
|
], ManuallyUpdatedFileSystemTreeProvider.prototype, "onTrackedSourceFilesUpdated", 1);
|
9564
9564
|
__decorateClass([
|
9565
|
-
|
9565
|
+
reactive3,
|
9566
9566
|
options3({ order: 0 })
|
9567
9567
|
], ManuallyUpdatedFileSystemTreeProvider.prototype, "updateLoadedWorkspaceFolderByUri", 1);
|
9568
9568
|
|
@@ -9576,10 +9576,11 @@ import {
|
|
9576
9576
|
ReactiveSystem as ReactiveSystem6,
|
9577
9577
|
Reentrance as Reentrance2,
|
9578
9578
|
Transaction as Transaction3,
|
9579
|
-
|
9580
|
-
|
9581
|
-
|
9582
|
-
|
9579
|
+
atomic as atomic5,
|
9580
|
+
reactive as reactive5,
|
9581
|
+
cached,
|
9582
|
+
atomicRun,
|
9583
|
+
nonReactiveRun as nonReactiveRun2
|
9583
9584
|
} from "reactronic";
|
9584
9585
|
|
9585
9586
|
// source/services/workspace/WorkspaceFiles.ts
|
@@ -9589,9 +9590,9 @@ import {
|
|
9589
9590
|
ObservableObject as ObservableObject5,
|
9590
9591
|
options as options4,
|
9591
9592
|
unobservable as unobservable5,
|
9592
|
-
|
9593
|
+
reactive as reactive4,
|
9593
9594
|
ReactiveSystem as ReactiveSystem5,
|
9594
|
-
|
9595
|
+
atomic as atomic4
|
9595
9596
|
} from "reactronic";
|
9596
9597
|
var WorkspaceFiles = class extends ObservableObject5 {
|
9597
9598
|
constructor(fileSystemTreeProvider) {
|
@@ -9706,19 +9707,19 @@ __decorateClass([
|
|
9706
9707
|
unobservable5
|
9707
9708
|
], WorkspaceFiles.prototype, "_fileSystemTreeProvider", 2);
|
9708
9709
|
__decorateClass([
|
9709
|
-
|
9710
|
+
atomic4
|
9710
9711
|
], WorkspaceFiles.prototype, "addWorkspaceFolders", 1);
|
9711
9712
|
__decorateClass([
|
9712
|
-
|
9713
|
+
atomic4
|
9713
9714
|
], WorkspaceFiles.prototype, "removeWorkspaceFolders", 1);
|
9714
9715
|
__decorateClass([
|
9715
|
-
|
9716
|
+
atomic4
|
9716
9717
|
], WorkspaceFiles.prototype, "trackSourceFile", 1);
|
9717
9718
|
__decorateClass([
|
9718
|
-
|
9719
|
+
atomic4
|
9719
9720
|
], WorkspaceFiles.prototype, "updateTrackedSourceFile", 1);
|
9720
9721
|
__decorateClass([
|
9721
|
-
|
9722
|
+
reactive4,
|
9722
9723
|
options4({ order: 1 })
|
9723
9724
|
], WorkspaceFiles.prototype, "updateWorkspaceFolderWithArtelProjectByUri", 1);
|
9724
9725
|
|
@@ -9754,7 +9755,7 @@ var _Workspace = class _Workspace extends ObservableObject6 {
|
|
9754
9755
|
}
|
9755
9756
|
static create(config) {
|
9756
9757
|
return __async(this, null, function* () {
|
9757
|
-
return yield
|
9758
|
+
return yield atomicRun(() => __async(this, null, function* () {
|
9758
9759
|
let startTime = performance.now();
|
9759
9760
|
const configurationPackagesTsInteropInputs = PackageConfigurationInterpreter.createTsInteropInputsForInterpretation(config.tsLibrariesProvider);
|
9760
9761
|
Logger.info(`\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u0431\u0438\u0431\u043B\u0438\u043E\u0442\u0435\u043A TS \u0437\u0430\u043D\u044F\u043B\u0430 ${Math.round(performance.now() - startTime)} \u043C\u0441.`);
|
@@ -9878,7 +9879,7 @@ var _Workspace = class _Workspace extends ObservableObject6 {
|
|
9878
9879
|
}
|
9879
9880
|
const controllerToLoad = this.getControllerToLoad();
|
9880
9881
|
if (controllerToLoad !== void 0) {
|
9881
|
-
if (!
|
9882
|
+
if (!nonReactiveRun2(() => controllerToLoad.isConfigurationsProcessingEnabled)) {
|
9882
9883
|
yield new Promise((r) => setTimeout(r, 50));
|
9883
9884
|
if (Transaction3.current.isCanceled) {
|
9884
9885
|
return;
|
@@ -9991,24 +9992,24 @@ __decorateClass([
|
|
9991
9992
|
unobservable6
|
9992
9993
|
], _Workspace.prototype, "_files", 2);
|
9993
9994
|
__decorateClass([
|
9994
|
-
|
9995
|
+
cached
|
9995
9996
|
], _Workspace.prototype, "compilationControllerByUri", 1);
|
9996
9997
|
__decorateClass([
|
9997
|
-
|
9998
|
+
atomic5
|
9998
9999
|
], _Workspace.prototype, "notifyClosedTextDocument", 1);
|
9999
10000
|
__decorateClass([
|
10000
|
-
|
10001
|
+
reactive5,
|
10001
10002
|
options5({ order: 10 })
|
10002
10003
|
], _Workspace.prototype, "updateCompilationControllers", 1);
|
10003
10004
|
__decorateClass([
|
10004
|
-
|
10005
|
+
reactive5,
|
10005
10006
|
options5({ reentrance: Reentrance2.cancelPrevious })
|
10006
10007
|
], _Workspace.prototype, "processControllersWithUnprocessedConfigs", 1);
|
10007
10008
|
__decorateClass([
|
10008
|
-
|
10009
|
+
reactive5
|
10009
10010
|
], _Workspace.prototype, "updateIsDiagnosticsCollectionInBackgroundEnabled", 1);
|
10010
10011
|
__decorateClass([
|
10011
|
-
|
10012
|
+
reactive5,
|
10012
10013
|
options5({ reentrance: Reentrance2.cancelPrevious })
|
10013
10014
|
], _Workspace.prototype, "updateControllersWithOpenedFiles", 1);
|
10014
10015
|
var Workspace = _Workspace;
|
@@ -11058,8 +11059,8 @@ var EntityToSyntax = class {
|
|
11058
11059
|
case "type":
|
11059
11060
|
levelKeyword = 53 /* InType */;
|
11060
11061
|
break;
|
11061
|
-
case "type-
|
11062
|
-
levelKeyword = 50 /*
|
11062
|
+
case "type-hierarchy":
|
11063
|
+
levelKeyword = 50 /* InHierarchy */;
|
11063
11064
|
break;
|
11064
11065
|
case "file":
|
11065
11066
|
levelKeyword = 51 /* InFile */;
|
@@ -11176,7 +11177,7 @@ var SourceGenerationService = class extends ObservableObject7 {
|
|
11176
11177
|
}
|
11177
11178
|
const containingPackage = getPackageContainingEntity(entity);
|
11178
11179
|
const compilationController = this.getOrGeneratePackageSource(analyzer, containingPackage, localizationContext).compilationController;
|
11179
|
-
|
11180
|
+
atomicRun2(() => compilationController.isConfigurationsProcessingEnabled = true);
|
11180
11181
|
yield compilationController.waitFullyLoaded();
|
11181
11182
|
const compilationState = compilationController.mainCompilationState;
|
11182
11183
|
if (compilationState?.analyzer.compilation.mainPackage === void 0) {
|
@@ -11243,7 +11244,7 @@ var SourceGenerationService = class extends ObservableObject7 {
|
|
11243
11244
|
const code = new SyntaxToCode(node, { keywordsLocale: packageLocale }).convert();
|
11244
11245
|
const generatedPackageUri = new Uri(GeneratedSourceFileScheme, [key]);
|
11245
11246
|
const generatedFileUri = generatedPackageUri.append(`${packageEntity.getName().toString()}.art`);
|
11246
|
-
const fileSystemTree =
|
11247
|
+
const fileSystemTree = atomicRun2(() => new FileSystemTree());
|
11247
11248
|
const packageDirectory = fileSystemTree.addDirectory(generatedPackageUri);
|
11248
11249
|
fileSystemTree.addFile(generatedFileUri, code);
|
11249
11250
|
const systemPackageLocale = localizationContext?.getTranslationLocale(analyzer.systemPackage) ?? analyzer.systemPackage.getLocale();
|
@@ -11261,10 +11262,10 @@ var SourceGenerationService = class extends ObservableObject7 {
|
|
11261
11262
|
mainPackageConfigurationIfMissing: packageConfiguration,
|
11262
11263
|
getTreatRootAsPackageIfConfigIsMissing: () => true
|
11263
11264
|
};
|
11264
|
-
const controller =
|
11265
|
+
const controller = atomicRun2(() => new CompilationController(controllerConfig));
|
11265
11266
|
result = new GeneratedPackageState(controller, generatedFileUri);
|
11266
11267
|
this.setDeleteGeneratedPackageTimeout(key, result, deleteGeneratedPackageTimeoutMs);
|
11267
|
-
|
11268
|
+
atomicRun2(() => this._generatedPackageStates.set(key, result));
|
11268
11269
|
}
|
11269
11270
|
return result;
|
11270
11271
|
}
|
@@ -11359,7 +11360,7 @@ var SourceGenerationService = class extends ObservableObject7 {
|
|
11359
11360
|
}
|
11360
11361
|
};
|
11361
11362
|
__decorateClass([
|
11362
|
-
|
11363
|
+
reactive6
|
11363
11364
|
], SourceGenerationService.prototype, "onOpenedSourceFilesChanged", 1);
|
11364
11365
|
var deleteGeneratedPackageTimeoutMs = 1e4;
|
11365
11366
|
var GeneratedPackageState = class {
|
@@ -11763,13 +11764,13 @@ var LanguageServer = class {
|
|
11763
11764
|
this._fileSystemUpdateNotificationsPublisher = new SimpleFileSystemUpdateNotificationsPublisher();
|
11764
11765
|
const fileSystem = this._config.fileSystemSynchronizationMode.fileSystem;
|
11765
11766
|
const publisher = this._fileSystemUpdateNotificationsPublisher;
|
11766
|
-
fileSystemTreeProvider =
|
11767
|
+
fileSystemTreeProvider = atomicRun3(
|
11767
11768
|
() => new FileSystemTreeProviderBasedOnWatchedFileSystem(fileSystem, publisher)
|
11768
11769
|
);
|
11769
11770
|
break;
|
11770
11771
|
}
|
11771
11772
|
case "client-to-server-requests": {
|
11772
|
-
this._manuallyUpdatedFileSystemTreeProvider =
|
11773
|
+
this._manuallyUpdatedFileSystemTreeProvider = atomicRun3(() => new ManuallyUpdatedFileSystemTreeProvider());
|
11773
11774
|
fileSystemTreeProvider = this._manuallyUpdatedFileSystemTreeProvider;
|
11774
11775
|
break;
|
11775
11776
|
}
|
@@ -11784,9 +11785,9 @@ var LanguageServer = class {
|
|
11784
11785
|
initiallyOpenedFileUris: params.initializationOptions?.initiallyOpenedFileUris?.map((u) => this.convertVscodeUriToUri(URI2.parse(u))),
|
11785
11786
|
standardPackagesUri: params.initializationOptions?.standardPackagesUri !== void 0 ? this.convertVscodeUriToUri(URI2.parse(params.initializationOptions.standardPackagesUri)) : void 0
|
11786
11787
|
};
|
11787
|
-
this._workspace = yield
|
11788
|
+
this._workspace = yield atomicRun3(() => Workspace.create(config));
|
11788
11789
|
this._workspace.addWorkspaceFolders(workspaceFolderUris);
|
11789
|
-
this._sourceGenerationService =
|
11790
|
+
this._sourceGenerationService = atomicRun3(
|
11790
11791
|
() => new SourceGenerationService(
|
11791
11792
|
this._workspace.trackedSourceFiles,
|
11792
11793
|
this._config.tsLibrariesProvider,
|
@@ -11962,13 +11963,13 @@ var LanguageServer = class {
|
|
11962
11963
|
onWorkspaceDiagnostic(params, token) {
|
11963
11964
|
return __async(this, null, function* () {
|
11964
11965
|
this._workspaceDiagnosticsPartialResultToken = params.partialResultToken;
|
11965
|
-
|
11966
|
+
atomicRun3(() => this._workspace.isReadyToAcceptWorkspaceDiagnostics = true);
|
11966
11967
|
while (!token.isCancellationRequested) {
|
11967
11968
|
yield new Promise((r) => setTimeout(r, 1e3));
|
11968
11969
|
}
|
11969
11970
|
if (this._workspaceDiagnosticsPartialResultToken === params.partialResultToken) {
|
11970
11971
|
this._workspaceDiagnosticsPartialResultToken = void 0;
|
11971
|
-
|
11972
|
+
atomicRun3(() => this._workspace.isReadyToAcceptWorkspaceDiagnostics = false);
|
11972
11973
|
}
|
11973
11974
|
throw new CancelledError();
|
11974
11975
|
});
|
@@ -12786,7 +12787,7 @@ ${e}`);
|
|
12786
12787
|
}
|
12787
12788
|
};
|
12788
12789
|
__decorateClass([
|
12789
|
-
|
12790
|
+
atomic6
|
12790
12791
|
], LanguageServer.prototype, "onDidChangeWorkspaceFolders", 1);
|
12791
12792
|
var FileSystemSynchronizationMode;
|
12792
12793
|
((FileSystemSynchronizationMode2) => {
|