@artel/artc 0.6.25245 → 0.6.25246
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 +8 -2
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +153 -151
- package/build/{chunk-TVZEHLXD.js → chunk-BGCXIMTW.js} +2 -2
- package/build/{chunk-FVBS6MPY.js → chunk-CNAUD5P6.js} +1 -1
- package/build/{chunk-T7WG4Z7I.js → chunk-RIWU6SF4.js} +3592 -2690
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +0 -1
- package/build/types/analysis/Analyzer.d.ts +28 -23
- package/build/types/analysis/BaseExpressionMeaning.d.ts +9 -4
- package/build/types/analysis/BaseMemberConflictsValidator.d.ts +3 -5
- package/build/types/analysis/CallExpressionMeaning.d.ts +1 -0
- package/build/types/analysis/DiagnosticArgumentFactory.d.ts +18 -0
- package/build/types/analysis/DiagnosticCollector.d.ts +2 -3
- package/build/types/analysis/DisplayableEntity.d.ts +46 -0
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +3 -3
- package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +3 -3
- package/build/types/analysis/InstanceFieldsInitializationValidator.d.ts +18 -0
- package/build/types/analysis/MemberAccessExpressionMeaning.d.ts +3 -3
- package/build/types/analysis/NamedTypeResolver.d.ts +2 -3
- package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +2 -3
- package/build/types/analysis/NodeTypeUtils.d.ts +1 -0
- package/build/types/analysis/ObjectExpressionMeaning.d.ts +9 -4
- package/build/types/analysis/OwnAndBaseConstructorCallsChecker.d.ts +23 -0
- package/build/types/analysis/PackageAndStaticVariablesInitializationValidator.d.ts +17 -0
- package/build/types/analysis/TagMeaning.d.ts +2 -3
- package/build/types/analysis/control-flow/NarrowableReference.d.ts +5 -6
- package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +2 -0
- package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +3 -1
- package/build/types/common/Displayable.d.ts +13 -0
- package/build/types/common/FormatString.d.ts +2 -1
- package/build/types/common/HelperPhrases.d.ts +2 -1
- package/build/types/common/TreeQuery.d.ts +4 -4
- package/build/types/common/WithDiagnostics.d.ts +3 -4
- package/build/types/common/index.d.ts +1 -0
- package/build/types/diagnostic/DiagnosticCode.d.ts +131 -125
- package/build/types/diagnostic/DiagnosticData.d.ts +7 -3
- package/build/types/emitter/Transformer.d.ts +4 -2
- package/build/types/emitter/ir/EmitOptions.d.ts +14 -0
- package/build/types/emitter/ir/Nodes.d.ts +41 -25
- package/build/types/emitter/ir/types.d.ts +1 -1
- package/build/types/entities/BaseEntityHidingMatcher.d.ts +1 -1
- package/build/types/entities/EntityHiding.d.ts +1 -1
- package/build/types/project/FileSystemTree.d.ts +2 -2
- package/build/types/services/source-generation/SourceGenerationService.d.ts +2 -2
- package/build/types/services/workspace/ClientTrackedSourceFiles.d.ts +5 -5
- package/build/types/services/workspace/CompilationController.d.ts +3 -3
- package/build/types/services/workspace/FileSystemTreeProviderBasedOnWatchedFileSystem.d.ts +4 -4
- package/build/types/services/workspace/ManuallyUpdatedFileSystemTreeProvider.d.ts +4 -4
- package/build/types/services/workspace/Workspace.d.ts +3 -3
- package/build/types/services/workspace/WorkspaceFiles.d.ts +7 -7
- package/package.json +2 -2
package/build/api/ApiServices.js
CHANGED
@@ -178,7 +178,7 @@ import {
|
|
178
178
|
unwrapParenthesizedExpressions,
|
179
179
|
visitChildren,
|
180
180
|
yieldExecution
|
181
|
-
} from "../chunk-
|
181
|
+
} from "../chunk-RIWU6SF4.js";
|
182
182
|
|
183
183
|
// source/services/CustomCommand.ts
|
184
184
|
import * as ls from "vscode-languageserver";
|
@@ -2718,7 +2718,7 @@ var CodeActionsService = class {
|
|
2718
2718
|
}
|
2719
2719
|
const result = new Array();
|
2720
2720
|
const diagnosticCodeSet = new Set(diagnosticCodes);
|
2721
|
-
if (diagnosticCodeSet.has(
|
2721
|
+
if (diagnosticCodeSet.has(277 /* TheFollowingDeclarationsAreNotTranslated0 */) || diagnosticCodeSet.has(278 /* TheFollowingDeclarationAreNotTranslated0And1More */)) {
|
2722
2722
|
const data = { onlyTypeMembers: false };
|
2723
2723
|
result.push(CodeAction.unresolved(
|
2724
2724
|
"\u0421\u0433\u0435\u043D\u0435\u0440\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043D\u0435\u0434\u043E\u0441\u0442\u0430\u044E\u0449\u0438\u0435 \u043F\u0435\u0440\u0435\u0432\u043E\u0434\u044B.",
|
@@ -6292,7 +6292,7 @@ var NodeSemanticInfoService = class {
|
|
6292
6292
|
return result;
|
6293
6293
|
}
|
6294
6294
|
static ofObjectExpression(analyzer, node, options6) {
|
6295
|
-
const meaning = analyzer.
|
6295
|
+
const meaning = analyzer.resolveObjectExpression(node).meaning;
|
6296
6296
|
let result;
|
6297
6297
|
switch (meaning.kind) {
|
6298
6298
|
case "own-constructor-access": {
|
@@ -6322,7 +6322,7 @@ var NodeSemanticInfoService = class {
|
|
6322
6322
|
return result;
|
6323
6323
|
}
|
6324
6324
|
static ofBaseExpression(analyzer, node, options6) {
|
6325
|
-
const meaning = analyzer.
|
6325
|
+
const meaning = analyzer.resolveBaseExpression(node).meaning;
|
6326
6326
|
let result;
|
6327
6327
|
switch (meaning.kind) {
|
6328
6328
|
case "base-constructor-access": {
|
@@ -6850,7 +6850,7 @@ var DefinitionService = class {
|
|
6850
6850
|
case "implicit-function-block-parameter":
|
6851
6851
|
return [this.getSourceLocationOfSubprogramNode(analyzer, info.functionBlockLiteral)];
|
6852
6852
|
case "backing":
|
6853
|
-
return
|
6853
|
+
return getEntitySourceLocations(analyzer, info.computedVariable);
|
6854
6854
|
default:
|
6855
6855
|
Debug.never(info);
|
6856
6856
|
}
|
@@ -9041,14 +9041,14 @@ var SignatureInfo = class {
|
|
9041
9041
|
};
|
9042
9042
|
|
9043
9043
|
// source/services/source-generation/SourceGenerationService.ts
|
9044
|
-
import {
|
9044
|
+
import { reactive as reactive6, runAtomically as runAtomically2, Transaction as Transaction4, ObservableMap as ObservableMap6, ObservableObject as ObservableObject7 } from "reactronic";
|
9045
9045
|
|
9046
9046
|
// source/services/workspace/ClientTrackedSourceFiles.ts
|
9047
|
-
import {
|
9048
|
-
var ClientTrackedSourceFiles = class extends
|
9047
|
+
import { ObservableMap, ObservableObject, observable, atomic, disposeObservableObject } from "reactronic";
|
9048
|
+
var ClientTrackedSourceFiles = class extends ObservableObject {
|
9049
9049
|
constructor() {
|
9050
9050
|
super(...arguments);
|
9051
|
-
this.items = new
|
9051
|
+
this.items = new ObservableMap();
|
9052
9052
|
}
|
9053
9053
|
// @cache
|
9054
9054
|
get unsaved() {
|
@@ -9096,8 +9096,8 @@ var ClientTrackedSourceFiles = class extends TriggeringObject {
|
|
9096
9096
|
return Query.from(this.items.entries()).toMap((e) => e[0], (e) => e[1].createSnapshot());
|
9097
9097
|
}
|
9098
9098
|
dispose() {
|
9099
|
-
|
9100
|
-
|
9099
|
+
disposeObservableObject(this.items);
|
9100
|
+
disposeObservableObject(this);
|
9101
9101
|
}
|
9102
9102
|
};
|
9103
9103
|
__decorateClass([
|
@@ -9112,7 +9112,7 @@ __decorateClass([
|
|
9112
9112
|
__decorateClass([
|
9113
9113
|
atomic
|
9114
9114
|
], ClientTrackedSourceFiles.prototype, "close", 1);
|
9115
|
-
var ClientTrackedSourceFile = class extends
|
9115
|
+
var ClientTrackedSourceFile = class extends ObservableObject {
|
9116
9116
|
constructor(uri, text, version, isSaved) {
|
9117
9117
|
super();
|
9118
9118
|
this.uri = uri;
|
@@ -9124,11 +9124,11 @@ var ClientTrackedSourceFile = class extends TriggeringObject {
|
|
9124
9124
|
return new ClientTrackedSourceFileSnapshot(this.uri, this.text, this.version, this.isSaved);
|
9125
9125
|
}
|
9126
9126
|
dispose() {
|
9127
|
-
|
9127
|
+
disposeObservableObject(this);
|
9128
9128
|
}
|
9129
9129
|
};
|
9130
9130
|
__decorateClass([
|
9131
|
-
|
9131
|
+
observable(false)
|
9132
9132
|
], ClientTrackedSourceFile.prototype, "uri", 2);
|
9133
9133
|
var ClientTrackedSourceFileSnapshot = class {
|
9134
9134
|
constructor(uri, text, version, isSaved) {
|
@@ -9142,15 +9142,16 @@ var ClientTrackedSourceFileSnapshot = class {
|
|
9142
9142
|
// source/services/workspace/CompilationController.ts
|
9143
9143
|
import {
|
9144
9144
|
Indicator,
|
9145
|
-
|
9146
|
-
ReactiveSystem as ReactiveSystem2,
|
9145
|
+
ObservableObject as ObservableObject2,
|
9147
9146
|
Reentrance,
|
9148
9147
|
Transaction,
|
9149
9148
|
atomic as atomic2,
|
9150
9149
|
runNonReactively,
|
9151
9150
|
options,
|
9152
|
-
|
9153
|
-
|
9151
|
+
reactive,
|
9152
|
+
observable as observable2,
|
9153
|
+
manageReactiveOperation,
|
9154
|
+
disposeObservableObject as disposeObservableObject2
|
9154
9155
|
} from "reactronic";
|
9155
9156
|
var highPriorityDiagnosticsCollectionIndicator = Indicator.create(
|
9156
9157
|
"HighPriorityDiagnosticsCollectionIndicator",
|
@@ -9159,7 +9160,7 @@ var highPriorityDiagnosticsCollectionIndicator = Indicator.create(
|
|
9159
9160
|
100
|
9160
9161
|
);
|
9161
9162
|
var backgroundDiagnosticsCollectionThrottleTimeMs = 3e3;
|
9162
|
-
var CompilationController = class extends
|
9163
|
+
var CompilationController = class extends ObservableObject2 {
|
9163
9164
|
constructor(config) {
|
9164
9165
|
super();
|
9165
9166
|
this.isConfigurationsProcessingEnabled = false;
|
@@ -9178,11 +9179,11 @@ var CompilationController = class extends TriggeringObject2 {
|
|
9178
9179
|
this._rootDirectory = config.rootDirectory;
|
9179
9180
|
this.config = config;
|
9180
9181
|
this.mainCompilationReloadIndicator = Indicator.create("ReloadMainCompilation", -1, -1, 1e3);
|
9181
|
-
|
9182
|
+
manageReactiveOperation(this.reloadMainCompilation).configure({
|
9182
9183
|
indicator: this.mainCompilationReloadIndicator
|
9183
9184
|
});
|
9184
9185
|
this.configurationControllersUpdateIndictor = Indicator.create("UpdateConfigurationControllers", -1, -1, 1e3);
|
9185
|
-
|
9186
|
+
manageReactiveOperation(this.updateConfigurationControllers).configure({
|
9186
9187
|
indicator: this.configurationControllersUpdateIndictor
|
9187
9188
|
});
|
9188
9189
|
this._mainAnalyzerChangedIndicator = Indicator.create(
|
@@ -9191,7 +9192,7 @@ var CompilationController = class extends TriggeringObject2 {
|
|
9191
9192
|
backgroundDiagnosticsCollectionThrottleTimeMs,
|
9192
9193
|
1e3
|
9193
9194
|
);
|
9194
|
-
|
9195
|
+
manageReactiveOperation(this.onMainAnalyzerChanged).configure({ indicator: this._mainAnalyzerChangedIndicator });
|
9195
9196
|
}
|
9196
9197
|
get uri() {
|
9197
9198
|
return this._rootDirectory.uri;
|
@@ -9253,7 +9254,7 @@ var CompilationController = class extends TriggeringObject2 {
|
|
9253
9254
|
}
|
9254
9255
|
dispose() {
|
9255
9256
|
Query.from(this._configurationControllerByPackageUri.values()).map((c) => c.dispose());
|
9256
|
-
|
9257
|
+
disposeObservableObject2(this);
|
9257
9258
|
}
|
9258
9259
|
reloadMainCompilation() {
|
9259
9260
|
return __async(this, null, function* () {
|
@@ -9641,72 +9642,72 @@ var CompilationController = class extends TriggeringObject2 {
|
|
9641
9642
|
}
|
9642
9643
|
};
|
9643
9644
|
__decorateClass([
|
9644
|
-
|
9645
|
+
observable2(false)
|
9645
9646
|
], CompilationController.prototype, "mainCompilationReloadIndicator", 2);
|
9646
9647
|
__decorateClass([
|
9647
|
-
|
9648
|
+
observable2(false)
|
9648
9649
|
], CompilationController.prototype, "configurationControllersUpdateIndictor", 2);
|
9649
9650
|
__decorateClass([
|
9650
|
-
|
9651
|
+
observable2(false)
|
9651
9652
|
], CompilationController.prototype, "_mainAnalyzerChangedIndicator", 2);
|
9652
9653
|
__decorateClass([
|
9653
|
-
|
9654
|
+
observable2(false)
|
9654
9655
|
], CompilationController.prototype, "_fileSystemTree", 2);
|
9655
9656
|
__decorateClass([
|
9656
|
-
|
9657
|
+
observable2(false)
|
9657
9658
|
], CompilationController.prototype, "config", 2);
|
9658
9659
|
__decorateClass([
|
9659
|
-
|
9660
|
+
observable2(false)
|
9660
9661
|
], CompilationController.prototype, "_rootDirectory", 2);
|
9661
9662
|
__decorateClass([
|
9662
|
-
|
9663
|
+
observable2(false)
|
9663
9664
|
], CompilationController.prototype, "_previousCompilationLoadResult", 2);
|
9664
9665
|
__decorateClass([
|
9665
|
-
|
9666
|
+
observable2(false)
|
9666
9667
|
], CompilationController.prototype, "_sourceFilesForWhichDiagnosticsWereReported", 2);
|
9667
9668
|
__decorateClass([
|
9668
|
-
|
9669
|
+
observable2(false)
|
9669
9670
|
], CompilationController.prototype, "_checkedConfigurationVersionByPackageUri", 2);
|
9670
9671
|
__decorateClass([
|
9671
|
-
|
9672
|
+
observable2(false)
|
9672
9673
|
], CompilationController.prototype, "_tsInteropInputs", 2);
|
9673
9674
|
__decorateClass([
|
9674
|
-
|
9675
|
+
observable2(false)
|
9675
9676
|
], CompilationController.prototype, "_tsInteropInputsKey", 2);
|
9676
9677
|
__decorateClass([
|
9677
|
-
|
9678
|
+
observable2(false)
|
9678
9679
|
], CompilationController.prototype, "_tsProgramLoaderInputs", 2);
|
9679
9680
|
__decorateClass([
|
9680
|
-
|
9681
|
+
observable2(false)
|
9681
9682
|
], CompilationController.prototype, "_configurationsOfPackagesOutsideProject", 2);
|
9682
9683
|
__decorateClass([
|
9683
9684
|
atomic2
|
9684
9685
|
], CompilationController.prototype, "notifyReportedSourceFileDiagnostics", 1);
|
9685
9686
|
__decorateClass([
|
9686
|
-
|
9687
|
+
reactive,
|
9687
9688
|
options({ reentrance: Reentrance.cancelPrevious, order: 24 })
|
9688
9689
|
], CompilationController.prototype, "reloadMainCompilation", 1);
|
9689
9690
|
__decorateClass([
|
9690
|
-
|
9691
|
+
reactive,
|
9691
9692
|
options({ order: 25 })
|
9692
9693
|
], CompilationController.prototype, "updateState", 1);
|
9693
9694
|
__decorateClass([
|
9694
|
-
|
9695
|
+
reactive,
|
9695
9696
|
options({ order: 20 })
|
9696
9697
|
], CompilationController.prototype, "updateConfigurationControllers", 1);
|
9697
9698
|
__decorateClass([
|
9698
|
-
|
9699
|
+
reactive,
|
9699
9700
|
options({ order: 21 })
|
9700
9701
|
], CompilationController.prototype, "onConfigurationsUpdated", 1);
|
9701
9702
|
__decorateClass([
|
9702
|
-
|
9703
|
+
reactive
|
9703
9704
|
], CompilationController.prototype, "onMainAnalyzerChanged", 1);
|
9704
9705
|
__decorateClass([
|
9705
|
-
|
9706
|
+
reactive,
|
9706
9707
|
options({ reentrance: Reentrance.cancelAndWaitPrevious })
|
9707
9708
|
], CompilationController.prototype, "collectDiagnosticsInBackground", 1);
|
9708
9709
|
__decorateClass([
|
9709
|
-
|
9710
|
+
reactive,
|
9710
9711
|
options({ reentrance: Reentrance.waitAndRestart })
|
9711
9712
|
], CompilationController.prototype, "onRawPackageConfigurationsUpdated", 1);
|
9712
9713
|
var TsProgramLoaderInputs = class {
|
@@ -9780,7 +9781,7 @@ var DiagnosticsCollectionSummary = class {
|
|
9780
9781
|
this.hasErrors = hasErrors;
|
9781
9782
|
}
|
9782
9783
|
};
|
9783
|
-
var ConfigurationController = class extends
|
9784
|
+
var ConfigurationController = class extends ObservableObject2 {
|
9784
9785
|
constructor(rootDirectory, packageUri, mainCompilationController) {
|
9785
9786
|
super();
|
9786
9787
|
// private _compilationState: ReadonlyCompilationState | undefined = undefined
|
@@ -9798,7 +9799,7 @@ var ConfigurationController = class extends TriggeringObject2 {
|
|
9798
9799
|
this.packageUri = packageUri;
|
9799
9800
|
this._mainCompilationController = mainCompilationController;
|
9800
9801
|
this.processingIndicator = Indicator.create("ProcessConfiguration", -1, -1, 1e3);
|
9801
|
-
|
9802
|
+
manageReactiveOperation(this.processConfiguration).configure({ indicator: this.processingIndicator });
|
9802
9803
|
}
|
9803
9804
|
get convertedConfiguration() {
|
9804
9805
|
return this._convertedConfiguration;
|
@@ -9826,7 +9827,7 @@ var ConfigurationController = class extends TriggeringObject2 {
|
|
9826
9827
|
return this._convertedConfigurationVersion >= 0;
|
9827
9828
|
}
|
9828
9829
|
dispose() {
|
9829
|
-
|
9830
|
+
disposeObservableObject2(this);
|
9830
9831
|
}
|
9831
9832
|
updateJsonConfigurationFile() {
|
9832
9833
|
this.rootDirectory.version;
|
@@ -9861,13 +9862,13 @@ var ConfigurationController = class extends TriggeringObject2 {
|
|
9861
9862
|
this._convertedConfigurationVersion++;
|
9862
9863
|
});
|
9863
9864
|
}
|
9864
|
-
// @
|
9865
|
+
// @reactive
|
9865
9866
|
// @options({ reentrance: Reentrance.cancelPrevious, order: 21 })
|
9866
9867
|
// private async reloadCompilation(): Promise<void> {
|
9867
9868
|
// if (!this._mainCompilationController.isConfigurationsProcessingEnabled) {
|
9868
9869
|
// return
|
9869
9870
|
// }
|
9870
|
-
// // Вызов
|
9871
|
+
// // Вызов disposeObservableObject устанавливает undefined в качестве значения всех полей.
|
9871
9872
|
// if (this.rootDirectory.isDisposed || this.rootDirectory.isDisposed === undefined) {
|
9872
9873
|
// return
|
9873
9874
|
// }
|
@@ -9908,7 +9909,7 @@ var ConfigurationController = class extends TriggeringObject2 {
|
|
9908
9909
|
// }
|
9909
9910
|
// }
|
9910
9911
|
// }
|
9911
|
-
// @
|
9912
|
+
// @reactive
|
9912
9913
|
// @options({ reentrance: Reentrance.cancelPrevious, order: 22 })
|
9913
9914
|
// private async analyze(): Promise<void> {
|
9914
9915
|
// if (!this._mainCompilationController.isConfigurationsProcessingEnabled) {
|
@@ -9942,11 +9943,11 @@ var ConfigurationController = class extends TriggeringObject2 {
|
|
9942
9943
|
// }
|
9943
9944
|
// }
|
9944
9945
|
// }
|
9945
|
-
// @
|
9946
|
+
// @reactive
|
9946
9947
|
// private diagnosticsChanged(): void {
|
9947
9948
|
// this._configurationDiagnostics // подписка
|
9948
9949
|
// }
|
9949
|
-
// @
|
9950
|
+
// @reactive
|
9950
9951
|
// @options({ reentrance: Reentrance.cancelAndWaitPrevious })
|
9951
9952
|
// private async reportDiagnostics(): Promise<void> {
|
9952
9953
|
// if (!this._mainCompilationController.isConfigurationsProcessingEnabled) {
|
@@ -9972,7 +9973,7 @@ var ConfigurationController = class extends TriggeringObject2 {
|
|
9972
9973
|
// }
|
9973
9974
|
// }
|
9974
9975
|
// }
|
9975
|
-
// @
|
9976
|
+
// @reactive
|
9976
9977
|
// @options({ reentrance: Reentrance.cancelPrevious, order: 23 })
|
9977
9978
|
// private async interpretConfiguration(): Promise<void> {
|
9978
9979
|
// if (!this._mainCompilationController.isConfigurationsProcessingEnabled) {
|
@@ -10014,23 +10015,23 @@ var ConfigurationController = class extends TriggeringObject2 {
|
|
10014
10015
|
// }
|
10015
10016
|
};
|
10016
10017
|
__decorateClass([
|
10017
|
-
|
10018
|
+
observable2(false)
|
10018
10019
|
], ConfigurationController.prototype, "packageUri", 2);
|
10019
10020
|
__decorateClass([
|
10020
|
-
|
10021
|
+
observable2(false)
|
10021
10022
|
], ConfigurationController.prototype, "processingIndicator", 2);
|
10022
10023
|
__decorateClass([
|
10023
|
-
|
10024
|
+
observable2(false)
|
10024
10025
|
], ConfigurationController.prototype, "rootDirectory", 2);
|
10025
10026
|
__decorateClass([
|
10026
|
-
|
10027
|
+
observable2(false)
|
10027
10028
|
], ConfigurationController.prototype, "_mainCompilationController", 2);
|
10028
10029
|
__decorateClass([
|
10029
|
-
|
10030
|
+
reactive,
|
10030
10031
|
options({ reentrance: Reentrance.cancelPrevious, order: 21 })
|
10031
10032
|
], ConfigurationController.prototype, "updateJsonConfigurationFile", 1);
|
10032
10033
|
__decorateClass([
|
10033
|
-
|
10034
|
+
reactive,
|
10034
10035
|
options({ reentrance: Reentrance.cancelPrevious, order: 22 })
|
10035
10036
|
], ConfigurationController.prototype, "processConfiguration", 1);
|
10036
10037
|
var ConfigurationDirectory = class {
|
@@ -10095,28 +10096,29 @@ import {
|
|
10095
10096
|
atomic as atomic3,
|
10096
10097
|
Indicator as Indicator2,
|
10097
10098
|
runNonReactively as runNonReactively2,
|
10098
|
-
|
10099
|
-
|
10100
|
-
|
10099
|
+
ObservableArray,
|
10100
|
+
ObservableMap as ObservableMap2,
|
10101
|
+
ObservableObject as ObservableObject3,
|
10101
10102
|
options as options2,
|
10102
|
-
|
10103
|
-
|
10104
|
-
|
10105
|
-
|
10103
|
+
observable as observable3,
|
10104
|
+
reactive as reactive2,
|
10105
|
+
manageReactiveOperation as manageReactiveOperation2,
|
10106
|
+
disposeObservableObject as disposeObservableObject3,
|
10107
|
+
Transaction as Transaction2
|
10106
10108
|
} from "reactronic";
|
10107
|
-
var FileSystemTreeProviderBasedOnWatchedFileSystem = class extends
|
10109
|
+
var FileSystemTreeProviderBasedOnWatchedFileSystem = class extends ObservableObject3 {
|
10108
10110
|
// Используется в качестве множества.
|
10109
10111
|
constructor(fileSystem, notificationsPublisher, namesOfDirectoriesToIgnore, additionalUrisOfDirectoriesToLoad) {
|
10110
10112
|
super();
|
10111
10113
|
this.fileSystemTree = new FileSystemTree(true);
|
10112
|
-
this.loadedWorkspaceFolderByUri = new
|
10114
|
+
this.loadedWorkspaceFolderByUri = new ObservableMap2();
|
10113
10115
|
this._workspaceFolderUris = void 0;
|
10114
10116
|
this._trackedSourceFiles = void 0;
|
10115
10117
|
this._isInitialized = false;
|
10116
10118
|
this._lastCheckedWorkspaceFolderUris = new Array();
|
10117
10119
|
this._taskQueue = new TaskQueue();
|
10118
10120
|
this._lastCheckedTrackedSourceFileInfoVersionByUri = /* @__PURE__ */ new Map();
|
10119
|
-
this._loadedDirectoryUris = new
|
10121
|
+
this._loadedDirectoryUris = new ObservableMap2();
|
10120
10122
|
this._fileSystem = fileSystem;
|
10121
10123
|
this._notificationsPublisher = notificationsPublisher;
|
10122
10124
|
this._listener = this.onFileSystemUpdated.bind(this);
|
@@ -10137,10 +10139,10 @@ var FileSystemTreeProviderBasedOnWatchedFileSystem = class extends TriggeringObj
|
|
10137
10139
|
dispose() {
|
10138
10140
|
this._notificationsPublisher.removeListener(this._listener);
|
10139
10141
|
this.fileSystemTree.dispose();
|
10140
|
-
|
10142
|
+
disposeObservableObject3(this.loadedWorkspaceFolderByUri);
|
10141
10143
|
this._taskQueue.dispose();
|
10142
|
-
|
10143
|
-
|
10144
|
+
disposeObservableObject3(this._workspaceFolderUris);
|
10145
|
+
disposeObservableObject3(this);
|
10144
10146
|
}
|
10145
10147
|
onTrackedSourceFilesUpdated() {
|
10146
10148
|
if (this._trackedSourceFiles === void 0) {
|
@@ -10484,7 +10486,7 @@ var FileSystemTreeProviderBasedOnWatchedFileSystem = class extends TriggeringObj
|
|
10484
10486
|
this.fileSystemTree.deleteFileOrDirectory(uri);
|
10485
10487
|
}
|
10486
10488
|
}
|
10487
|
-
// @
|
10489
|
+
// @reactive
|
10488
10490
|
// @options({ order: 0 })
|
10489
10491
|
// protected unloadWorkspaceFoldersThatNoLongerContainArtelProject(): void {
|
10490
10492
|
// if (this.isMissingConfigurationDirectoryAllowed) {
|
@@ -10609,50 +10611,50 @@ var FileSystemTreeProviderBasedOnWatchedFileSystem = class extends TriggeringObj
|
|
10609
10611
|
// }
|
10610
10612
|
};
|
10611
10613
|
__decorateClass([
|
10612
|
-
|
10614
|
+
observable3(false)
|
10613
10615
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "fileSystemTree", 2);
|
10614
10616
|
__decorateClass([
|
10615
|
-
|
10617
|
+
observable3(false)
|
10616
10618
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "loadedWorkspaceFolderByUri", 2);
|
10617
10619
|
__decorateClass([
|
10618
|
-
|
10620
|
+
observable3(false)
|
10619
10621
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "_fileSystem", 2);
|
10620
10622
|
__decorateClass([
|
10621
|
-
|
10623
|
+
observable3(false)
|
10622
10624
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "_notificationsPublisher", 2);
|
10623
10625
|
__decorateClass([
|
10624
|
-
|
10626
|
+
observable3(false)
|
10625
10627
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "_listener", 2);
|
10626
10628
|
__decorateClass([
|
10627
|
-
|
10629
|
+
observable3(false)
|
10628
10630
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "_lastCheckedWorkspaceFolderUris", 2);
|
10629
10631
|
__decorateClass([
|
10630
|
-
|
10632
|
+
observable3(false)
|
10631
10633
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "_taskQueue", 2);
|
10632
10634
|
__decorateClass([
|
10633
|
-
|
10635
|
+
observable3(false)
|
10634
10636
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "_namesOfDirectoriesToIgnore", 2);
|
10635
10637
|
__decorateClass([
|
10636
|
-
|
10638
|
+
observable3(false)
|
10637
10639
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "_additionalUrisOfDirectoriesToLoad", 2);
|
10638
10640
|
__decorateClass([
|
10639
|
-
|
10641
|
+
observable3(false)
|
10640
10642
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "_lastCheckedTrackedSourceFileInfoVersionByUri", 2);
|
10641
10643
|
__decorateClass([
|
10642
|
-
|
10644
|
+
observable3(false)
|
10643
10645
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "_loadedDirectoryUris", 2);
|
10644
10646
|
__decorateClass([
|
10645
|
-
|
10647
|
+
reactive2
|
10646
10648
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "onTrackedSourceFilesUpdated", 1);
|
10647
10649
|
__decorateClass([
|
10648
|
-
|
10650
|
+
reactive2
|
10649
10651
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "onWorkspaceFolderUrisUpdated", 1);
|
10650
10652
|
__decorateClass([
|
10651
|
-
|
10653
|
+
reactive2,
|
10652
10654
|
options2({ order: 0 })
|
10653
10655
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "updateLoadedWorkspaceFolders", 1);
|
10654
10656
|
__decorateClass([
|
10655
|
-
|
10657
|
+
reactive2
|
10656
10658
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "loadAdditionalDirectories", 1);
|
10657
10659
|
__decorateClass([
|
10658
10660
|
atomic3
|
@@ -10743,22 +10745,22 @@ var FileSystemTreeUpdate_deleteDirectory = class {
|
|
10743
10745
|
return this.uri;
|
10744
10746
|
}
|
10745
10747
|
};
|
10746
|
-
var TaskQueue = class extends
|
10748
|
+
var TaskQueue = class extends ObservableObject3 {
|
10747
10749
|
constructor() {
|
10748
10750
|
super();
|
10749
|
-
this._tasks = new
|
10751
|
+
this._tasks = new ObservableArray();
|
10750
10752
|
this._currentTask = void 0;
|
10751
10753
|
this._processTasksIndicator = Indicator2.create("ProcessTasks", -1, -1, 1e3);
|
10752
|
-
|
10754
|
+
manageReactiveOperation2(this.processTasks).configure({ indicator: this._processTasksIndicator });
|
10753
10755
|
this._executeTaskIndicator = Indicator2.create("ExecuteTask", -1, -1, 1e3);
|
10754
|
-
|
10756
|
+
manageReactiveOperation2(this.executeTask).configure({ indicator: this._executeTaskIndicator });
|
10755
10757
|
}
|
10756
10758
|
addTask(task) {
|
10757
10759
|
this._tasks.push(task);
|
10758
10760
|
}
|
10759
10761
|
dispose() {
|
10760
|
-
|
10761
|
-
|
10762
|
+
disposeObservableObject3(this._tasks);
|
10763
|
+
disposeObservableObject3(this);
|
10762
10764
|
}
|
10763
10765
|
waitAllTasksProcessed(cancellationToken) {
|
10764
10766
|
return __async(this, null, function* () {
|
@@ -10802,25 +10804,25 @@ var TaskQueue = class extends TriggeringObject3 {
|
|
10802
10804
|
}
|
10803
10805
|
};
|
10804
10806
|
__decorateClass([
|
10805
|
-
|
10807
|
+
observable3(false)
|
10806
10808
|
], TaskQueue.prototype, "_tasks", 2);
|
10807
10809
|
__decorateClass([
|
10808
10810
|
atomic3
|
10809
10811
|
], TaskQueue.prototype, "addTask", 1);
|
10810
10812
|
__decorateClass([
|
10811
|
-
|
10813
|
+
reactive2
|
10812
10814
|
], TaskQueue.prototype, "processTasks", 1);
|
10813
10815
|
__decorateClass([
|
10814
|
-
|
10816
|
+
reactive2
|
10815
10817
|
], TaskQueue.prototype, "executeTask", 1);
|
10816
10818
|
|
10817
10819
|
// source/services/workspace/ManuallyUpdatedFileSystemTreeProvider.ts
|
10818
|
-
import {
|
10819
|
-
var ManuallyUpdatedFileSystemTreeProvider = class extends
|
10820
|
+
import { ObservableMap as ObservableMap3, ObservableObject as ObservableObject4, options as options3, reactive as reactive3, observable as observable4, disposeObservableObject as disposeObservableObject4 } from "reactronic";
|
10821
|
+
var ManuallyUpdatedFileSystemTreeProvider = class extends ObservableObject4 {
|
10820
10822
|
constructor() {
|
10821
10823
|
super(...arguments);
|
10822
10824
|
this.fileSystemTree = new FileSystemTree(true, true);
|
10823
|
-
this.loadedWorkspaceFolderByUri = new
|
10825
|
+
this.loadedWorkspaceFolderByUri = new ObservableMap3();
|
10824
10826
|
this._workspaceFolderUris = void 0;
|
10825
10827
|
this._trackedSourceFiles = void 0;
|
10826
10828
|
this._lastCheckedTrackedSourceFileInfoByUri = /* @__PURE__ */ new Map();
|
@@ -10835,9 +10837,9 @@ var ManuallyUpdatedFileSystemTreeProvider = class extends TriggeringObject4 {
|
|
10835
10837
|
}
|
10836
10838
|
dispose() {
|
10837
10839
|
this.fileSystemTree.dispose();
|
10838
|
-
|
10839
|
-
|
10840
|
-
|
10840
|
+
disposeObservableObject4(this.loadedWorkspaceFolderByUri);
|
10841
|
+
disposeObservableObject4(this._workspaceFolderUris);
|
10842
|
+
disposeObservableObject4(this);
|
10841
10843
|
}
|
10842
10844
|
createOrUpdateSourceFile(uri, text) {
|
10843
10845
|
this._manuallyCreatedSourceFileTextByUri.set(uri.toString(), text);
|
@@ -10919,59 +10921,59 @@ var ManuallyUpdatedFileSystemTreeProvider = class extends TriggeringObject4 {
|
|
10919
10921
|
}
|
10920
10922
|
};
|
10921
10923
|
__decorateClass([
|
10922
|
-
|
10924
|
+
observable4(false)
|
10923
10925
|
], ManuallyUpdatedFileSystemTreeProvider.prototype, "fileSystemTree", 2);
|
10924
10926
|
__decorateClass([
|
10925
|
-
|
10927
|
+
observable4(false)
|
10926
10928
|
], ManuallyUpdatedFileSystemTreeProvider.prototype, "loadedWorkspaceFolderByUri", 2);
|
10927
10929
|
__decorateClass([
|
10928
|
-
|
10930
|
+
observable4(false)
|
10929
10931
|
], ManuallyUpdatedFileSystemTreeProvider.prototype, "_lastCheckedTrackedSourceFileInfoByUri", 2);
|
10930
10932
|
__decorateClass([
|
10931
|
-
|
10933
|
+
observable4(false)
|
10932
10934
|
], ManuallyUpdatedFileSystemTreeProvider.prototype, "_manuallyCreatedSourceFileTextByUri", 2);
|
10933
10935
|
__decorateClass([
|
10934
|
-
|
10936
|
+
reactive3
|
10935
10937
|
], ManuallyUpdatedFileSystemTreeProvider.prototype, "onTrackedSourceFilesUpdated", 1);
|
10936
10938
|
__decorateClass([
|
10937
|
-
|
10939
|
+
reactive3,
|
10938
10940
|
options3({ order: 0 })
|
10939
10941
|
], ManuallyUpdatedFileSystemTreeProvider.prototype, "updateLoadedWorkspaceFolderByUri", 1);
|
10940
10942
|
|
10941
10943
|
// source/services/workspace/Workspace.ts
|
10942
10944
|
import {
|
10943
|
-
|
10944
|
-
|
10945
|
-
|
10946
|
-
ReactiveSystem as ReactiveSystem6,
|
10945
|
+
ObservableArray as ObservableArray4,
|
10946
|
+
ObservableMap as ObservableMap5,
|
10947
|
+
ObservableObject as ObservableObject6,
|
10947
10948
|
Reentrance as Reentrance2,
|
10948
10949
|
Transaction as Transaction3,
|
10949
10950
|
atomic as atomic5,
|
10950
10951
|
runAtomically,
|
10951
|
-
cache,
|
10952
10952
|
runNonReactively as runNonReactively3,
|
10953
10953
|
options as options5,
|
10954
|
-
|
10955
|
-
|
10954
|
+
observable as observable6,
|
10955
|
+
reactive as reactive5,
|
10956
|
+
cached,
|
10957
|
+
disposeObservableObject as disposeObservableObject6
|
10956
10958
|
} from "reactronic";
|
10957
10959
|
|
10958
10960
|
// source/services/workspace/WorkspaceFiles.ts
|
10959
10961
|
import {
|
10960
|
-
|
10961
|
-
|
10962
|
-
|
10962
|
+
ObservableArray as ObservableArray3,
|
10963
|
+
ObservableMap as ObservableMap4,
|
10964
|
+
ObservableObject as ObservableObject5,
|
10963
10965
|
options as options4,
|
10964
|
-
|
10965
|
-
|
10966
|
-
|
10966
|
+
observable as observable5,
|
10967
|
+
reactive as reactive4,
|
10968
|
+
disposeObservableObject as disposeObservableObject5,
|
10967
10969
|
atomic as atomic4
|
10968
10970
|
} from "reactronic";
|
10969
|
-
var WorkspaceFiles = class extends
|
10971
|
+
var WorkspaceFiles = class extends ObservableObject5 {
|
10970
10972
|
constructor(fileSystemTreeProvider) {
|
10971
10973
|
super();
|
10972
10974
|
this.trackedSourceFiles = new ClientTrackedSourceFiles();
|
10973
|
-
this.workspaceFolderUris = new
|
10974
|
-
this.workspaceFolderWithArtelProjectByUri = new
|
10975
|
+
this.workspaceFolderUris = new ObservableArray3();
|
10976
|
+
this.workspaceFolderWithArtelProjectByUri = new ObservableMap4();
|
10975
10977
|
this._fileSystemTreeProvider = fileSystemTreeProvider;
|
10976
10978
|
this._fileSystemTreeProvider.initialize(this.workspaceFolderUris, this.trackedSourceFiles);
|
10977
10979
|
}
|
@@ -11029,11 +11031,11 @@ var WorkspaceFiles = class extends TriggeringObject5 {
|
|
11029
11031
|
});
|
11030
11032
|
}
|
11031
11033
|
dispose() {
|
11032
|
-
|
11033
|
-
|
11034
|
+
disposeObservableObject5(this.workspaceFolderUris);
|
11035
|
+
disposeObservableObject5(this.workspaceFolderWithArtelProjectByUri);
|
11034
11036
|
this._fileSystemTreeProvider.dispose();
|
11035
11037
|
this.trackedSourceFiles.dispose();
|
11036
|
-
|
11038
|
+
disposeObservableObject5(this);
|
11037
11039
|
}
|
11038
11040
|
updateWorkspaceFolderWithArtelProjectByUri() {
|
11039
11041
|
this.isMissingConfigurationDirectoryAllowed;
|
@@ -11070,13 +11072,13 @@ var WorkspaceFiles = class extends TriggeringObject5 {
|
|
11070
11072
|
}
|
11071
11073
|
};
|
11072
11074
|
__decorateClass([
|
11073
|
-
|
11075
|
+
observable5(false)
|
11074
11076
|
], WorkspaceFiles.prototype, "workspaceFolderUris", 2);
|
11075
11077
|
__decorateClass([
|
11076
|
-
|
11078
|
+
observable5(false)
|
11077
11079
|
], WorkspaceFiles.prototype, "workspaceFolderWithArtelProjectByUri", 2);
|
11078
11080
|
__decorateClass([
|
11079
|
-
|
11081
|
+
observable5(false)
|
11080
11082
|
], WorkspaceFiles.prototype, "_fileSystemTreeProvider", 2);
|
11081
11083
|
__decorateClass([
|
11082
11084
|
atomic4
|
@@ -11091,18 +11093,18 @@ __decorateClass([
|
|
11091
11093
|
atomic4
|
11092
11094
|
], WorkspaceFiles.prototype, "updateTrackedSourceFile", 1);
|
11093
11095
|
__decorateClass([
|
11094
|
-
|
11096
|
+
reactive4,
|
11095
11097
|
options4({ order: 1 })
|
11096
11098
|
], WorkspaceFiles.prototype, "updateWorkspaceFolderWithArtelProjectByUri", 1);
|
11097
11099
|
|
11098
11100
|
// source/services/workspace/Workspace.ts
|
11099
|
-
var _Workspace = class _Workspace extends
|
11101
|
+
var _Workspace = class _Workspace extends ObservableObject6 {
|
11100
11102
|
constructor(config) {
|
11101
11103
|
super();
|
11102
11104
|
this.isReadyToAcceptWorkspaceDiagnostics = false;
|
11103
|
-
this._compilationControllers = new
|
11104
|
-
//
|
11105
|
-
this._controllersWithOpenedFiles = new
|
11105
|
+
this._compilationControllers = new ObservableArray4();
|
11106
|
+
// ObservableMap используется в качестве Set'а.
|
11107
|
+
this._controllersWithOpenedFiles = new ObservableMap5();
|
11106
11108
|
this._atLeastOneFileOfCompilationHasBeenOpened = false;
|
11107
11109
|
this._standardPackageContents = new Cached();
|
11108
11110
|
this._tsInteropInputsCache = new TsInteropInputsCache();
|
@@ -11223,10 +11225,10 @@ var _Workspace = class _Workspace extends TriggeringObject6 {
|
|
11223
11225
|
for (const controller of this._compilationControllers.values()) {
|
11224
11226
|
controller.dispose();
|
11225
11227
|
}
|
11226
|
-
|
11227
|
-
|
11228
|
+
disposeObservableObject6(this._compilationControllers);
|
11229
|
+
disposeObservableObject6(this._controllersWithOpenedFiles);
|
11228
11230
|
this._files.dispose();
|
11229
|
-
|
11231
|
+
disposeObservableObject6(this);
|
11230
11232
|
}
|
11231
11233
|
updateCompilationControllers() {
|
11232
11234
|
const controllersToDelete = new Map(this.compilationControllerByUri);
|
@@ -11372,39 +11374,39 @@ var _Workspace = class _Workspace extends TriggeringObject6 {
|
|
11372
11374
|
}
|
11373
11375
|
};
|
11374
11376
|
__decorateClass([
|
11375
|
-
|
11377
|
+
observable6(false)
|
11376
11378
|
], _Workspace.prototype, "_config", 2);
|
11377
11379
|
__decorateClass([
|
11378
|
-
|
11380
|
+
observable6(false)
|
11379
11381
|
], _Workspace.prototype, "_atLeastOneFileOfCompilationHasBeenOpened", 2);
|
11380
11382
|
__decorateClass([
|
11381
|
-
|
11383
|
+
observable6(false)
|
11382
11384
|
], _Workspace.prototype, "_files", 2);
|
11383
11385
|
__decorateClass([
|
11384
|
-
|
11386
|
+
observable6(false)
|
11385
11387
|
], _Workspace.prototype, "_standardPackageContents", 2);
|
11386
11388
|
__decorateClass([
|
11387
|
-
|
11389
|
+
observable6(false)
|
11388
11390
|
], _Workspace.prototype, "_tsInteropInputsCache", 2);
|
11389
11391
|
__decorateClass([
|
11390
|
-
|
11392
|
+
cached
|
11391
11393
|
], _Workspace.prototype, "compilationControllerByUri", 1);
|
11392
11394
|
__decorateClass([
|
11393
11395
|
atomic5
|
11394
11396
|
], _Workspace.prototype, "notifyClosedTextDocument", 1);
|
11395
11397
|
__decorateClass([
|
11396
|
-
|
11398
|
+
reactive5,
|
11397
11399
|
options5({ order: 10 })
|
11398
11400
|
], _Workspace.prototype, "updateCompilationControllers", 1);
|
11399
11401
|
__decorateClass([
|
11400
|
-
|
11402
|
+
reactive5,
|
11401
11403
|
options5({ reentrance: Reentrance2.cancelPrevious })
|
11402
11404
|
], _Workspace.prototype, "processControllersWithUnprocessedConfigs", 1);
|
11403
11405
|
__decorateClass([
|
11404
|
-
|
11406
|
+
reactive5
|
11405
11407
|
], _Workspace.prototype, "updateIsDiagnosticsCollectionInBackgroundEnabled", 1);
|
11406
11408
|
__decorateClass([
|
11407
|
-
|
11409
|
+
reactive5,
|
11408
11410
|
options5({ reentrance: Reentrance2.cancelPrevious })
|
11409
11411
|
], _Workspace.prototype, "updateControllersWithOpenedFiles", 1);
|
11410
11412
|
var Workspace = _Workspace;
|
@@ -11907,13 +11909,13 @@ var EntityToSyntax = class {
|
|
11907
11909
|
};
|
11908
11910
|
|
11909
11911
|
// source/services/source-generation/SourceGenerationService.ts
|
11910
|
-
var SourceGenerationService = class extends
|
11912
|
+
var SourceGenerationService = class extends ObservableObject7 {
|
11911
11913
|
constructor(_trackedSourceFiles, _tsLibrariesProvider, _standardPackageContentsProviders) {
|
11912
11914
|
super();
|
11913
11915
|
this._trackedSourceFiles = _trackedSourceFiles;
|
11914
11916
|
this._tsLibrariesProvider = _tsLibrariesProvider;
|
11915
11917
|
this._standardPackageContentsProviders = _standardPackageContentsProviders;
|
11916
|
-
this._generatedPackageStates = new
|
11918
|
+
this._generatedPackageStates = new ObservableMap6();
|
11917
11919
|
}
|
11918
11920
|
get compilationControllers() {
|
11919
11921
|
return Array.from(this._generatedPackageStates.values()).map((s) => s.compilationController);
|
@@ -12121,7 +12123,7 @@ var SourceGenerationService = class extends TriggeringObject7 {
|
|
12121
12123
|
}
|
12122
12124
|
};
|
12123
12125
|
__decorateClass([
|
12124
|
-
|
12126
|
+
reactive6
|
12125
12127
|
], SourceGenerationService.prototype, "onOpenedSourceFilesChanged", 1);
|
12126
12128
|
var deleteGeneratedPackageTimeoutMs = 1e4;
|
12127
12129
|
var GeneratedPackageState = class {
|