@artel/artc 0.6.25245 → 0.6.25247
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 +12 -2
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +223 -212
- package/build/{chunk-FVBS6MPY.js → chunk-3MYTPUJZ.js} +1 -1
- package/build/{chunk-T7WG4Z7I.js → chunk-3PVSYUJV.js} +3584 -2718
- package/build/{chunk-TVZEHLXD.js → chunk-TTNFYVNF.js} +2 -2
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +0 -1
- package/build/types/analysis/Analyzer.d.ts +30 -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 +7 -8
- package/build/types/analysis/semantic-context/SemanticContext.d.ts +2 -1
- package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +2 -0
- package/build/types/analysis/semantic-context/SemanticContextBuilder.d.ts +3 -0
- package/build/types/analysis/semantic-context/SemanticContextValidatingNameConflicts.d.ts +6 -7
- package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +3 -1
- package/build/types/analysis/semantic-context/SubprogramSemanticContext.d.ts +1 -1
- package/build/types/analysis/semantic-context/TranslationTextTemplateSemanticContext.d.ts +13 -0
- 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 +129 -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/entities/VariableEntity.d.ts +35 -3
- 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/build/types/tree/NodeKind.d.ts +20 -21
- package/build/types/tree/green/Nodes.d.ts +12 -26
- package/build/types/tree/red/Nodes.d.ts +15 -29
- 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-3PVSYUJV.js";
|
182
182
|
|
183
183
|
// source/services/CustomCommand.ts
|
184
184
|
import * as ls from "vscode-languageserver";
|
@@ -2037,16 +2037,16 @@ var SyntaxToCode = class _SyntaxToCode {
|
|
2037
2037
|
[91 /* StatementBlock */]: this.prototype.writeStatementBlock,
|
2038
2038
|
[92 /* FunctionBlock */]: this.prototype.writeFunctionBlock,
|
2039
2039
|
[135 /* QualifiedName */]: this.prototype.writeQualifiedName,
|
2040
|
-
[
|
2041
|
-
[
|
2042
|
-
[
|
2043
|
-
[
|
2044
|
-
[
|
2045
|
-
[
|
2046
|
-
[
|
2047
|
-
[
|
2048
|
-
[
|
2049
|
-
[
|
2040
|
+
[145 /* VariantDeclaration */]: this.prototype.writeVariantDeclaration,
|
2041
|
+
[146 /* TypeParameterDeclaration */]: this.prototype.writeTypeParameterDeclaration,
|
2042
|
+
[147 /* ParameterDeclaration */]: this.prototype.writeParameterDeclaration,
|
2043
|
+
[148 /* Argument */]: this.prototype.writeArgument,
|
2044
|
+
[150 /* Tag */]: this.prototype.writeTag,
|
2045
|
+
[152 /* Modifier */]: this.prototype.writeModifier,
|
2046
|
+
[153 /* ParameterClause */]: this.prototype.writeParameterClause,
|
2047
|
+
[154 /* ParameterList */]: this.prototype.writeParameterList,
|
2048
|
+
[155 /* TypeArgumentClause */]: this.prototype.writeTypeArgumentClause,
|
2049
|
+
[157 /* TypeParameterClause */]: this.prototype.writeTypeParameterClause,
|
2050
2050
|
[17 /* AnonymousFunctionTypeDeclaration */]: this.prototype.writeAnonymousFunctionTypeDeclaration,
|
2051
2051
|
[18 /* AnonymousStructuredTypeDeclaration */]: this.prototype.writeAnonymousStructuredTypeDeclaration,
|
2052
2052
|
[19 /* AnonymousVariantTypeDeclaration */]: this.prototype.writeAnonymousVariantTypeDeclaration,
|
@@ -2142,17 +2142,16 @@ var SyntaxToCode = class _SyntaxToCode {
|
|
2142
2142
|
[137 /* FieldOrVariantTranslation */]: this.prototype.writeFieldOrVariantTranslation,
|
2143
2143
|
[138 /* TypeMemberTranslationList */]: this.prototype.writeNodeDefault,
|
2144
2144
|
[139 /* TypeTranslation */]: this.prototype.writeTypeTranslation,
|
2145
|
-
[140 /*
|
2146
|
-
[
|
2147
|
-
[
|
2148
|
-
[
|
2149
|
-
[
|
2150
|
-
[159 /*
|
2151
|
-
[
|
2152
|
-
[142 /*
|
2153
|
-
[143 /*
|
2154
|
-
[144 /*
|
2155
|
-
[145 /* TranslationTextTemplateParameterDeclaration */]: this.prototype.writeNodeDefault
|
2145
|
+
[140 /* TextTranslation */]: this.prototype.writeNodeDefault,
|
2146
|
+
[149 /* TagList */]: this.prototype.writeNodeDefault,
|
2147
|
+
[151 /* ModifierList */]: this.prototype.writeNodeDefault,
|
2148
|
+
[156 /* TypeArgumentList */]: this.prototype.writeNodeDefault,
|
2149
|
+
[158 /* TypeParameterList */]: this.prototype.writeNodeDefault,
|
2150
|
+
[159 /* TypeAnnotation */]: this.prototype.writeNodeDefault,
|
2151
|
+
[141 /* TranslationTextTemplate */]: this.prototype.writeNodeDefault,
|
2152
|
+
[142 /* TranslationTextTemplateSpanList */]: this.prototype.writeNodeDefault,
|
2153
|
+
[143 /* TranslationTextTemplateSpan */]: this.prototype.writeNodeDefault,
|
2154
|
+
[144 /* TranslationTextTemplateParameterDeclaration */]: this.prototype.writeNodeDefault
|
2156
2155
|
};
|
2157
2156
|
return writeFunctions;
|
2158
2157
|
}
|
@@ -2718,7 +2717,7 @@ var CodeActionsService = class {
|
|
2718
2717
|
}
|
2719
2718
|
const result = new Array();
|
2720
2719
|
const diagnosticCodeSet = new Set(diagnosticCodes);
|
2721
|
-
if (diagnosticCodeSet.has(
|
2720
|
+
if (diagnosticCodeSet.has(277 /* TheFollowingDeclarationsAreNotTranslated0 */) || diagnosticCodeSet.has(278 /* TheFollowingDeclarationAreNotTranslated0And1More */)) {
|
2722
2721
|
const data = { onlyTypeMembers: false };
|
2723
2722
|
result.push(CodeAction.unresolved(
|
2724
2723
|
"\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.",
|
@@ -2823,7 +2822,7 @@ var SignatureForNode = class _SignatureForNode {
|
|
2823
2822
|
return _SignatureForNode.getSignaturesForAutotypeCallExpression(analyzer, node);
|
2824
2823
|
case 70 /* IndexedAccessExpression */:
|
2825
2824
|
return _SignatureForNode.getSignaturesForIndexedAccessExpression(analyzer, node);
|
2826
|
-
case
|
2825
|
+
case 150 /* Tag */:
|
2827
2826
|
return _SignatureForNode.getSignaturesForTag(analyzer, node);
|
2828
2827
|
default:
|
2829
2828
|
Debug.never(node);
|
@@ -3244,7 +3243,7 @@ var CompletionService = class {
|
|
3244
3243
|
}
|
3245
3244
|
return { kind: "none" };
|
3246
3245
|
}
|
3247
|
-
if (tokenOrKeyword.isToken(27 /* Dot */) && tokenOrKeyword.parent.kind === 135 /* QualifiedName */ && tokenOrKeyword.parent.parent.kind ===
|
3246
|
+
if (tokenOrKeyword.isToken(27 /* Dot */) && tokenOrKeyword.parent.kind === 135 /* QualifiedName */ && tokenOrKeyword.parent.parent.kind === 150 /* Tag */) {
|
3248
3247
|
const tag = tokenOrKeyword.parent.parent;
|
3249
3248
|
const resolutionResult = this._analyzer.resolveTag(tag);
|
3250
3249
|
const segmentIndex = Math.floor(
|
@@ -3429,7 +3428,7 @@ var CompletionService = class {
|
|
3429
3428
|
role.argumentList.parent
|
3430
3429
|
);
|
3431
3430
|
break;
|
3432
|
-
case
|
3431
|
+
case 150 /* Tag */:
|
3433
3432
|
signatures = SignatureForNode.getSignaturesForTag(this._analyzer, role.argumentList.parent);
|
3434
3433
|
valueArguments = ValueArgumentFactory.createValueArgumentsOfTag(role.argumentList.parent);
|
3435
3434
|
break;
|
@@ -3650,7 +3649,7 @@ var CompletionService = class {
|
|
3650
3649
|
return false;
|
3651
3650
|
}
|
3652
3651
|
const tokenOrKeyword = positionDescription.tokenOrKeyword;
|
3653
|
-
return tokenOrKeyword.isToken(45 /* OpenParenthesis */) && tokenOrKeyword.parent.kind ===
|
3652
|
+
return tokenOrKeyword.isToken(45 /* OpenParenthesis */) && tokenOrKeyword.parent.kind === 152 /* Modifier */;
|
3654
3653
|
}
|
3655
3654
|
isElseOrElseIfKeywordContext(positionDescription) {
|
3656
3655
|
if (positionDescription.kind !== "after-token-or-keyword") {
|
@@ -4522,6 +4521,7 @@ var VariableEntityCompletionItemInfo = class {
|
|
4522
4521
|
case "field":
|
4523
4522
|
return this.entity.isVariant() ? 12 /* Variant */ : 2 /* Field */;
|
4524
4523
|
case "parameter":
|
4524
|
+
case "text-template-parameter":
|
4525
4525
|
return 10 /* ParameterVariable */;
|
4526
4526
|
case "local":
|
4527
4527
|
return 9 /* LocalVariable */;
|
@@ -4723,7 +4723,8 @@ var AliasesSourceVariableCompletionItemInfo = class {
|
|
4723
4723
|
case "field":
|
4724
4724
|
return 2 /* Field */;
|
4725
4725
|
case "parameter":
|
4726
|
-
|
4726
|
+
case "text-template-parameter":
|
4727
|
+
return 10 /* ParameterVariable */;
|
4727
4728
|
case "local":
|
4728
4729
|
return 9 /* LocalVariable */;
|
4729
4730
|
default:
|
@@ -5038,7 +5039,7 @@ var SyntaxContextFactory = class {
|
|
5038
5039
|
if (positionDescription.kind === "after-token-or-keyword") {
|
5039
5040
|
isUnqualifiedTypeContext = this.isUnqualifiedTypeContext(positionDescription.tokenOrKeyword);
|
5040
5041
|
}
|
5041
|
-
const isUnqualifiedTagNameCompletionContext = positionDescription.kind === "after-token-or-keyword" && positionDescription.tokenOrKeyword.isToken(36 /* HashSign */) && positionDescription.tokenOrKeyword.parent.kind ===
|
5042
|
+
const isUnqualifiedTagNameCompletionContext = positionDescription.kind === "after-token-or-keyword" && positionDescription.tokenOrKeyword.isToken(36 /* HashSign */) && positionDescription.tokenOrKeyword.parent.kind === 150 /* Tag */;
|
5042
5043
|
let isTopLevelTranslationListContext;
|
5043
5044
|
if (positionDescription.kind === "after-token-or-keyword") {
|
5044
5045
|
isTopLevelTranslationListContext = this.isTopLevelTranslationListContext(positionDescription.tokenOrKeyword);
|
@@ -5080,15 +5081,15 @@ var SyntaxContextFactory = class {
|
|
5080
5081
|
const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.initializer);
|
5081
5082
|
return { isExpressionContext: { expressionRole }, isStatementContext: false };
|
5082
5083
|
}
|
5083
|
-
if (tokenOrKeyword.parent.kind ===
|
5084
|
+
if (tokenOrKeyword.parent.kind === 147 /* ParameterDeclaration */) {
|
5084
5085
|
const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.defaultValue);
|
5085
5086
|
return { isExpressionContext: { expressionRole }, isStatementContext: false };
|
5086
5087
|
}
|
5087
|
-
if (tokenOrKeyword.parent.kind ===
|
5088
|
+
if (tokenOrKeyword.parent.kind === 148 /* Argument */) {
|
5088
5089
|
const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.value);
|
5089
5090
|
return { isExpressionContext: { expressionRole }, isStatementContext: false };
|
5090
5091
|
}
|
5091
|
-
if (tokenOrKeyword.parent.kind ===
|
5092
|
+
if (tokenOrKeyword.parent.kind === 145 /* VariantDeclaration */) {
|
5092
5093
|
const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.value);
|
5093
5094
|
return { isExpressionContext: { expressionRole }, isStatementContext: false };
|
5094
5095
|
}
|
@@ -5158,7 +5159,7 @@ var SyntaxContextFactory = class {
|
|
5158
5159
|
const expressionRole = new ExpressionRole_argument(tokenOrKeyword.parent.argumentList, 0);
|
5159
5160
|
return { isExpressionContext: { expressionRole }, isStatementContext: false };
|
5160
5161
|
}
|
5161
|
-
if (tokenOrKeyword.parent.kind ===
|
5162
|
+
if (tokenOrKeyword.parent.kind === 150 /* Tag */) {
|
5162
5163
|
const argumentList = tokenOrKeyword.parent.argumentList;
|
5163
5164
|
if (argumentList !== void 0) {
|
5164
5165
|
const expressionRole = new ExpressionRole_argument(argumentList, 0);
|
@@ -5291,13 +5292,13 @@ var SyntaxContextFactory = class {
|
|
5291
5292
|
) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 35 /* PackageVariableSetterDeclaration */)) {
|
5292
5293
|
return true;
|
5293
5294
|
}
|
5294
|
-
if (tokenOrKeyword.isKeyword() && tokenOrKeyword.parent.kind ===
|
5295
|
+
if (tokenOrKeyword.isKeyword() && tokenOrKeyword.parent.kind === 152 /* Modifier */ && tokenOrKeyword.value === tokenOrKeyword.parent.value && tokenOrKeyword.parent.openParenthesisToken === void 0 && NodeTypeUtils.isPackageMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
|
5295
5296
|
return true;
|
5296
5297
|
}
|
5297
|
-
if (tokenOrKeyword.isToken(22 /* CloseParenthesis */) && tokenOrKeyword.parent.kind ===
|
5298
|
+
if (tokenOrKeyword.isToken(22 /* CloseParenthesis */) && tokenOrKeyword.parent.kind === 152 /* Modifier */ && NodeTypeUtils.isPackageMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
|
5298
5299
|
return true;
|
5299
5300
|
}
|
5300
|
-
const tag = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(tokenOrKeyword,
|
5301
|
+
const tag = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(tokenOrKeyword, 150 /* Tag */);
|
5301
5302
|
if (tag !== void 0 && NodeTypeUtils.isPackageMemberDeclaration(tag.parent.parent)) {
|
5302
5303
|
return true;
|
5303
5304
|
}
|
@@ -5325,16 +5326,16 @@ var SyntaxContextFactory = class {
|
|
5325
5326
|
) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(
|
5326
5327
|
tokenOrKeyword,
|
5327
5328
|
49 /* DereferencedVariableSetterDeclaration */
|
5328
|
-
) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 50 /* MethodDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 51 /* OperatorDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 43 /* ConstructorDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 44 /* DestructorDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword,
|
5329
|
+
) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 50 /* MethodDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 51 /* OperatorDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 43 /* ConstructorDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 44 /* DestructorDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 145 /* VariantDeclaration */)) {
|
5329
5330
|
return true;
|
5330
5331
|
}
|
5331
|
-
if (tokenOrKeyword.isKeyword() && tokenOrKeyword.parent.kind ===
|
5332
|
+
if (tokenOrKeyword.isKeyword() && tokenOrKeyword.parent.kind === 152 /* Modifier */ && tokenOrKeyword.value === tokenOrKeyword.parent.value && tokenOrKeyword.parent.openParenthesisToken === void 0 && NodeTypeUtils.isTypeMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
|
5332
5333
|
return true;
|
5333
5334
|
}
|
5334
|
-
if (tokenOrKeyword.isToken(22 /* CloseParenthesis */) && tokenOrKeyword.parent.kind ===
|
5335
|
+
if (tokenOrKeyword.isToken(22 /* CloseParenthesis */) && tokenOrKeyword.parent.kind === 152 /* Modifier */ && NodeTypeUtils.isTypeMemberDeclaration(tokenOrKeyword.parent.parent.parent)) {
|
5335
5336
|
return true;
|
5336
5337
|
}
|
5337
|
-
const tag = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(tokenOrKeyword,
|
5338
|
+
const tag = SyntaxContextUtils.ifTokenIsValidEndOfNodeThenNode(tokenOrKeyword, 150 /* Tag */);
|
5338
5339
|
if (tag !== void 0 && NodeTypeUtils.isTypeMemberDeclaration(tag.parent.parent)) {
|
5339
5340
|
return true;
|
5340
5341
|
}
|
@@ -5372,7 +5373,7 @@ var SyntaxContextFactory = class {
|
|
5372
5373
|
return result;
|
5373
5374
|
}
|
5374
5375
|
static isUnqualifiedTypeContext(tokenOrKeyword) {
|
5375
|
-
if (tokenOrKeyword.isToken(24 /* Colon */) && tokenOrKeyword.parent.kind ===
|
5376
|
+
if (tokenOrKeyword.isToken(24 /* Colon */) && tokenOrKeyword.parent.kind === 159 /* TypeAnnotation */) {
|
5376
5377
|
return { allowsAnonymousTypes: true };
|
5377
5378
|
}
|
5378
5379
|
if ((tokenOrKeyword.isKeyword(4 /* Object */) || tokenOrKeyword.isKeyword(5 /* PlainObject */) || tokenOrKeyword.isKeyword(3 /* Aspect */)) && tokenOrKeyword.parent.kind === 32 /* StructuredTypeDeclarationBody */) {
|
@@ -5381,16 +5382,16 @@ var SyntaxContextFactory = class {
|
|
5381
5382
|
if (tokenOrKeyword.isKeyword(16 /* Type */) && (NodeTypeUtils.isPackageTypeDeclaration(tokenOrKeyword.parent) || tokenOrKeyword.parent.kind === 38 /* TypeExtensionDeclaration */)) {
|
5382
5383
|
return { allowsAnonymousTypes: false };
|
5383
5384
|
}
|
5384
|
-
if (tokenOrKeyword.isToken(37 /* LessThan */) && tokenOrKeyword.parent.kind ===
|
5385
|
+
if (tokenOrKeyword.isToken(37 /* LessThan */) && tokenOrKeyword.parent.kind === 155 /* TypeArgumentClause */) {
|
5385
5386
|
return { allowsAnonymousTypes: true };
|
5386
5387
|
}
|
5387
|
-
if (tokenOrKeyword.isToken(25 /* Comma */) && (tokenOrKeyword.parent.kind === 28 /* BaseTypeList */ || tokenOrKeyword.parent.kind ===
|
5388
|
-
return { allowsAnonymousTypes: tokenOrKeyword.parent.kind ===
|
5388
|
+
if (tokenOrKeyword.isToken(25 /* Comma */) && (tokenOrKeyword.parent.kind === 28 /* BaseTypeList */ || tokenOrKeyword.parent.kind === 156 /* TypeArgumentList */)) {
|
5389
|
+
return { allowsAnonymousTypes: tokenOrKeyword.parent.kind === 156 /* TypeArgumentList */ };
|
5389
5390
|
}
|
5390
|
-
if (tokenOrKeyword.isToken(36 /* HashSign */) && tokenOrKeyword.parent.kind ===
|
5391
|
+
if (tokenOrKeyword.isToken(36 /* HashSign */) && tokenOrKeyword.parent.kind === 150 /* Tag */) {
|
5391
5392
|
return { allowsAnonymousTypes: false };
|
5392
5393
|
}
|
5393
|
-
if ((tokenOrKeyword.isToken(24 /* Colon */) || tokenOrKeyword.isToken(58 /* Equals */)) && tokenOrKeyword.parent.kind ===
|
5394
|
+
if ((tokenOrKeyword.isToken(24 /* Colon */) || tokenOrKeyword.isToken(58 /* Equals */)) && tokenOrKeyword.parent.kind === 146 /* TypeParameterDeclaration */) {
|
5394
5395
|
return { allowsAnonymousTypes: false };
|
5395
5396
|
}
|
5396
5397
|
if (tokenOrKeyword.isToken(58 /* Equals */) && tokenOrKeyword.parent.kind === 20 /* PackageAliasTypeDeclaration */) {
|
@@ -5633,7 +5634,7 @@ var NodeSemanticInfoService = class {
|
|
5633
5634
|
break;
|
5634
5635
|
case 124 /* TranslationParameterList */:
|
5635
5636
|
break;
|
5636
|
-
case
|
5637
|
+
case 148 /* Argument */: {
|
5637
5638
|
const respectiveParameter = analyzer.getRespectiveParameter(parent);
|
5638
5639
|
if (respectiveParameter !== void 0) {
|
5639
5640
|
const target = new MatchResultValueParameterReferenceTarget(respectiveParameter, 0 /* Get */);
|
@@ -5809,7 +5810,7 @@ var NodeSemanticInfoService = class {
|
|
5809
5810
|
}
|
5810
5811
|
break;
|
5811
5812
|
}
|
5812
|
-
case
|
5813
|
+
case 147 /* ParameterDeclaration */:
|
5813
5814
|
result = new DefinitionNodeSemanticInfo(analyzer.entity.ofParameterDeclaration(parent));
|
5814
5815
|
break;
|
5815
5816
|
case 8 /* PackageImport */:
|
@@ -5830,10 +5831,10 @@ var NodeSemanticInfoService = class {
|
|
5830
5831
|
case 52 /* FieldDeclaration */:
|
5831
5832
|
result = new DefinitionNodeSemanticInfo(analyzer.entity.ofFieldDeclaration(parent));
|
5832
5833
|
break;
|
5833
|
-
case
|
5834
|
+
case 146 /* TypeParameterDeclaration */:
|
5834
5835
|
result = new DefinitionNodeSemanticInfo(analyzer.entity.ofTypeParameterDeclaration(parent));
|
5835
5836
|
break;
|
5836
|
-
case
|
5837
|
+
case 145 /* VariantDeclaration */:
|
5837
5838
|
result = new DefinitionNodeSemanticInfo(analyzer.entity.ofVariantDeclaration(parent));
|
5838
5839
|
break;
|
5839
5840
|
case 34 /* PackageVariableGetterDeclaration */:
|
@@ -5952,7 +5953,7 @@ var NodeSemanticInfoService = class {
|
|
5952
5953
|
switch (node.parent.kind) {
|
5953
5954
|
case 10 /* NamedTypeSpecifier */:
|
5954
5955
|
return this.ofNamedTypeSpecifierNameQualifier(analyzer, node.parent, qualifier, options6);
|
5955
|
-
case
|
5956
|
+
case 150 /* Tag */:
|
5956
5957
|
return this.ofTagNameQualifier(analyzer, node.parent, qualifier, options6);
|
5957
5958
|
case 40 /* ExtendedTypeClause */:
|
5958
5959
|
case 134 /* PackageImportTranslation */:
|
@@ -6292,7 +6293,7 @@ var NodeSemanticInfoService = class {
|
|
6292
6293
|
return result;
|
6293
6294
|
}
|
6294
6295
|
static ofObjectExpression(analyzer, node, options6) {
|
6295
|
-
const meaning = analyzer.
|
6296
|
+
const meaning = analyzer.resolveObjectExpression(node).meaning;
|
6296
6297
|
let result;
|
6297
6298
|
switch (meaning.kind) {
|
6298
6299
|
case "own-constructor-access": {
|
@@ -6322,7 +6323,7 @@ var NodeSemanticInfoService = class {
|
|
6322
6323
|
return result;
|
6323
6324
|
}
|
6324
6325
|
static ofBaseExpression(analyzer, node, options6) {
|
6325
|
-
const meaning = analyzer.
|
6326
|
+
const meaning = analyzer.resolveBaseExpression(node).meaning;
|
6326
6327
|
let result;
|
6327
6328
|
switch (meaning.kind) {
|
6328
6329
|
case "base-constructor-access": {
|
@@ -6436,6 +6437,11 @@ var NodeSemanticInfoService = class {
|
|
6436
6437
|
specialVariableInfo.targetTypeParameter,
|
6437
6438
|
currentTarget.accessKind
|
6438
6439
|
);
|
6440
|
+
} else if (specialVariableInfo?.kind === "text-template-function-type-parameter") {
|
6441
|
+
betterTarget = new EntityReferenceTarget(
|
6442
|
+
specialVariableInfo.textTemplateParameter,
|
6443
|
+
currentTarget.accessKind
|
6444
|
+
);
|
6439
6445
|
}
|
6440
6446
|
}
|
6441
6447
|
}
|
@@ -6631,7 +6637,7 @@ function getEntitySourceLocations(analyzer, entity) {
|
|
6631
6637
|
case 36 /* PackageVariantTypeDeclaration */:
|
6632
6638
|
case 56 /* NestedFunctionDeclaration */:
|
6633
6639
|
case 50 /* MethodDeclaration */:
|
6634
|
-
case
|
6640
|
+
case 146 /* TypeParameterDeclaration */:
|
6635
6641
|
case 51 /* OperatorDeclaration */:
|
6636
6642
|
range = node.name.rangeWithoutTrivia;
|
6637
6643
|
break;
|
@@ -6849,8 +6855,10 @@ var DefinitionService = class {
|
|
6849
6855
|
return [this.getSourceLocationOfSubprogramNode(analyzer, info.setterDeclaration)];
|
6850
6856
|
case "implicit-function-block-parameter":
|
6851
6857
|
return [this.getSourceLocationOfSubprogramNode(analyzer, info.functionBlockLiteral)];
|
6858
|
+
case "text-template-function-type-parameter":
|
6859
|
+
return getEntitySourceLocations(analyzer, info.textTemplateParameter);
|
6852
6860
|
case "backing":
|
6853
|
-
return
|
6861
|
+
return getEntitySourceLocations(analyzer, info.computedVariable);
|
6854
6862
|
default:
|
6855
6863
|
Debug.never(info);
|
6856
6864
|
}
|
@@ -7536,15 +7544,15 @@ var EvaluatableExpressionService = class {
|
|
7536
7544
|
return { nameIdentifier: node.name };
|
7537
7545
|
case 57 /* LocalVariableDeclaration */:
|
7538
7546
|
return { nameIdentifier: node.name };
|
7539
|
-
case
|
7547
|
+
case 147 /* ParameterDeclaration */:
|
7540
7548
|
return { nameIdentifier: node.name };
|
7541
7549
|
case 50 /* MethodDeclaration */:
|
7542
7550
|
return { nameIdentifier: node.name };
|
7543
7551
|
case 52 /* FieldDeclaration */:
|
7544
7552
|
return { nameIdentifier: node.name };
|
7545
|
-
case
|
7553
|
+
case 146 /* TypeParameterDeclaration */:
|
7546
7554
|
return { nameIdentifier: node.name };
|
7547
|
-
case
|
7555
|
+
case 145 /* VariantDeclaration */:
|
7548
7556
|
return { nameIdentifier: node.name };
|
7549
7557
|
case 99 /* ErrorVariableDeclaration */:
|
7550
7558
|
return { nameIdentifier: node.name };
|
@@ -7947,7 +7955,7 @@ var SourceFileItemsService = class {
|
|
7947
7955
|
);
|
7948
7956
|
break;
|
7949
7957
|
}
|
7950
|
-
case
|
7958
|
+
case 145 /* VariantDeclaration */: {
|
7951
7959
|
result.push(
|
7952
7960
|
this.createItem(
|
7953
7961
|
9 /* Variant */,
|
@@ -7959,7 +7967,7 @@ var SourceFileItemsService = class {
|
|
7959
7967
|
);
|
7960
7968
|
break;
|
7961
7969
|
}
|
7962
|
-
case
|
7970
|
+
case 146 /* TypeParameterDeclaration */: {
|
7963
7971
|
result.push(
|
7964
7972
|
this.createItem(
|
7965
7973
|
18 /* TypeParameter */,
|
@@ -8228,7 +8236,7 @@ var SelectionRangeService = class {
|
|
8228
8236
|
}
|
8229
8237
|
}
|
8230
8238
|
switch (node.kind) {
|
8231
|
-
case
|
8239
|
+
case 159 /* TypeAnnotation */:
|
8232
8240
|
case 32 /* StructuredTypeDeclarationBody */:
|
8233
8241
|
case 37 /* VariantTypeDeclarationBody */:
|
8234
8242
|
case 21 /* AliasTypeDeclarationBody */:
|
@@ -8296,6 +8304,7 @@ var SemanticTokensService = class {
|
|
8296
8304
|
case "implicit-function-block-parameter":
|
8297
8305
|
semanticTokenKind = 0 /* FunctionBlockLiteralParameter */;
|
8298
8306
|
break;
|
8307
|
+
case "text-template-function-type-parameter":
|
8299
8308
|
case "backing":
|
8300
8309
|
semanticTokenKind = void 0;
|
8301
8310
|
break;
|
@@ -8372,7 +8381,7 @@ var SemanticTokensService = class {
|
|
8372
8381
|
));
|
8373
8382
|
}
|
8374
8383
|
}
|
8375
|
-
if (node.kind ===
|
8384
|
+
if (node.kind === 145 /* VariantDeclaration */) {
|
8376
8385
|
result.push(
|
8377
8386
|
new SemanticToken(
|
8378
8387
|
node.name.rangeWithoutTrivia,
|
@@ -8552,7 +8561,7 @@ var TypeParameterSignatureHelpProvider = class {
|
|
8552
8561
|
}
|
8553
8562
|
let node = token.parent;
|
8554
8563
|
while (node !== void 0) {
|
8555
|
-
if (node.kind ===
|
8564
|
+
if (node.kind === 155 /* TypeArgumentClause */ && this._offset >= node.lessThanToken.rangeWithoutTrivia.end && (node.greaterThanToken.rangeWithoutTrivia.isEmpty || this._offset <= node.greaterThanToken.rangeWithoutTrivia.start)) {
|
8556
8565
|
const argumentIndex = this.getArgumentIndex(node.typeArgumentList, this._offset);
|
8557
8566
|
const argumentCount = this.countArguments(node.typeArgumentList);
|
8558
8567
|
return new NodeWithTypeArgumentsInfo(node.parent, argumentIndex, argumentCount);
|
@@ -8599,7 +8608,7 @@ var TypeParameterSignatureHelpProvider = class {
|
|
8599
8608
|
return this.getSignaturesForNamedTypeSpecifier(node);
|
8600
8609
|
case 87 /* GenericSpecializationExpression */:
|
8601
8610
|
return this.getSignaturesForGenericSpecializationExpression(node);
|
8602
|
-
case
|
8611
|
+
case 150 /* Tag */:
|
8603
8612
|
return this.getSignaturesForTag(node);
|
8604
8613
|
default:
|
8605
8614
|
Debug.never(node);
|
@@ -8924,7 +8933,7 @@ var ValueParametersSignatureHelpProvider = class {
|
|
8924
8933
|
}
|
8925
8934
|
break;
|
8926
8935
|
}
|
8927
|
-
case
|
8936
|
+
case 150 /* Tag */: {
|
8928
8937
|
if (node.openParenthesisToken !== void 0 && this._offset >= node.openParenthesisToken.rangeWithoutTrivia.end && node.argumentList !== void 0 && (node.closeParenthesisToken === void 0 || node.closeParenthesisToken.rangeWithoutTrivia.isEmpty || this._offset <= node.closeParenthesisToken.rangeWithoutTrivia.start)) {
|
8929
8938
|
const argumentIndex = this.getArgumentIndexInList(node.argumentList.elements, this._offset);
|
8930
8939
|
const valueArguments = ValueArgumentFactory.createValueArgumentsOfTag(node);
|
@@ -9041,16 +9050,16 @@ var SignatureInfo = class {
|
|
9041
9050
|
};
|
9042
9051
|
|
9043
9052
|
// source/services/source-generation/SourceGenerationService.ts
|
9044
|
-
import {
|
9053
|
+
import { reactive as reactive6, runAtomically as runAtomically2, Transaction as Transaction4, ObservableMap as ObservableMap6, ObservableObject as ObservableObject7 } from "reactronic";
|
9045
9054
|
|
9046
9055
|
// source/services/workspace/ClientTrackedSourceFiles.ts
|
9047
|
-
import {
|
9048
|
-
var ClientTrackedSourceFiles = class extends
|
9056
|
+
import { ObservableMap, ObservableObject, observable, atomic, disposeObservableObject } from "reactronic";
|
9057
|
+
var ClientTrackedSourceFiles = class extends ObservableObject {
|
9049
9058
|
constructor() {
|
9050
9059
|
super(...arguments);
|
9051
|
-
this.items = new
|
9060
|
+
this.items = new ObservableMap();
|
9052
9061
|
}
|
9053
|
-
// @
|
9062
|
+
// @cached
|
9054
9063
|
get unsaved() {
|
9055
9064
|
return Query.from(this.items.entries()).filter((e) => !e[1].isSaved).toMap((e) => e[0], (e) => e[1]);
|
9056
9065
|
}
|
@@ -9096,8 +9105,8 @@ var ClientTrackedSourceFiles = class extends TriggeringObject {
|
|
9096
9105
|
return Query.from(this.items.entries()).toMap((e) => e[0], (e) => e[1].createSnapshot());
|
9097
9106
|
}
|
9098
9107
|
dispose() {
|
9099
|
-
|
9100
|
-
|
9108
|
+
disposeObservableObject(this.items);
|
9109
|
+
disposeObservableObject(this);
|
9101
9110
|
}
|
9102
9111
|
};
|
9103
9112
|
__decorateClass([
|
@@ -9112,7 +9121,7 @@ __decorateClass([
|
|
9112
9121
|
__decorateClass([
|
9113
9122
|
atomic
|
9114
9123
|
], ClientTrackedSourceFiles.prototype, "close", 1);
|
9115
|
-
var ClientTrackedSourceFile = class extends
|
9124
|
+
var ClientTrackedSourceFile = class extends ObservableObject {
|
9116
9125
|
constructor(uri, text, version, isSaved) {
|
9117
9126
|
super();
|
9118
9127
|
this.uri = uri;
|
@@ -9124,11 +9133,11 @@ var ClientTrackedSourceFile = class extends TriggeringObject {
|
|
9124
9133
|
return new ClientTrackedSourceFileSnapshot(this.uri, this.text, this.version, this.isSaved);
|
9125
9134
|
}
|
9126
9135
|
dispose() {
|
9127
|
-
|
9136
|
+
disposeObservableObject(this);
|
9128
9137
|
}
|
9129
9138
|
};
|
9130
9139
|
__decorateClass([
|
9131
|
-
|
9140
|
+
observable(false)
|
9132
9141
|
], ClientTrackedSourceFile.prototype, "uri", 2);
|
9133
9142
|
var ClientTrackedSourceFileSnapshot = class {
|
9134
9143
|
constructor(uri, text, version, isSaved) {
|
@@ -9142,15 +9151,16 @@ var ClientTrackedSourceFileSnapshot = class {
|
|
9142
9151
|
// source/services/workspace/CompilationController.ts
|
9143
9152
|
import {
|
9144
9153
|
Indicator,
|
9145
|
-
|
9146
|
-
ReactiveSystem as ReactiveSystem2,
|
9154
|
+
ObservableObject as ObservableObject2,
|
9147
9155
|
Reentrance,
|
9148
9156
|
Transaction,
|
9149
9157
|
atomic as atomic2,
|
9150
9158
|
runNonReactively,
|
9151
9159
|
options,
|
9152
|
-
|
9153
|
-
|
9160
|
+
reactive,
|
9161
|
+
observable as observable2,
|
9162
|
+
manageReactiveOperation,
|
9163
|
+
disposeObservableObject as disposeObservableObject2
|
9154
9164
|
} from "reactronic";
|
9155
9165
|
var highPriorityDiagnosticsCollectionIndicator = Indicator.create(
|
9156
9166
|
"HighPriorityDiagnosticsCollectionIndicator",
|
@@ -9159,7 +9169,7 @@ var highPriorityDiagnosticsCollectionIndicator = Indicator.create(
|
|
9159
9169
|
100
|
9160
9170
|
);
|
9161
9171
|
var backgroundDiagnosticsCollectionThrottleTimeMs = 3e3;
|
9162
|
-
var CompilationController = class extends
|
9172
|
+
var CompilationController = class extends ObservableObject2 {
|
9163
9173
|
constructor(config) {
|
9164
9174
|
super();
|
9165
9175
|
this.isConfigurationsProcessingEnabled = false;
|
@@ -9178,11 +9188,11 @@ var CompilationController = class extends TriggeringObject2 {
|
|
9178
9188
|
this._rootDirectory = config.rootDirectory;
|
9179
9189
|
this.config = config;
|
9180
9190
|
this.mainCompilationReloadIndicator = Indicator.create("ReloadMainCompilation", -1, -1, 1e3);
|
9181
|
-
|
9191
|
+
manageReactiveOperation(this.reloadMainCompilation).configure({
|
9182
9192
|
indicator: this.mainCompilationReloadIndicator
|
9183
9193
|
});
|
9184
9194
|
this.configurationControllersUpdateIndictor = Indicator.create("UpdateConfigurationControllers", -1, -1, 1e3);
|
9185
|
-
|
9195
|
+
manageReactiveOperation(this.updateConfigurationControllers).configure({
|
9186
9196
|
indicator: this.configurationControllersUpdateIndictor
|
9187
9197
|
});
|
9188
9198
|
this._mainAnalyzerChangedIndicator = Indicator.create(
|
@@ -9191,7 +9201,7 @@ var CompilationController = class extends TriggeringObject2 {
|
|
9191
9201
|
backgroundDiagnosticsCollectionThrottleTimeMs,
|
9192
9202
|
1e3
|
9193
9203
|
);
|
9194
|
-
|
9204
|
+
manageReactiveOperation(this.onMainAnalyzerChanged).configure({ indicator: this._mainAnalyzerChangedIndicator });
|
9195
9205
|
}
|
9196
9206
|
get uri() {
|
9197
9207
|
return this._rootDirectory.uri;
|
@@ -9253,7 +9263,7 @@ var CompilationController = class extends TriggeringObject2 {
|
|
9253
9263
|
}
|
9254
9264
|
dispose() {
|
9255
9265
|
Query.from(this._configurationControllerByPackageUri.values()).map((c) => c.dispose());
|
9256
|
-
|
9266
|
+
disposeObservableObject2(this);
|
9257
9267
|
}
|
9258
9268
|
reloadMainCompilation() {
|
9259
9269
|
return __async(this, null, function* () {
|
@@ -9641,72 +9651,72 @@ var CompilationController = class extends TriggeringObject2 {
|
|
9641
9651
|
}
|
9642
9652
|
};
|
9643
9653
|
__decorateClass([
|
9644
|
-
|
9654
|
+
observable2(false)
|
9645
9655
|
], CompilationController.prototype, "mainCompilationReloadIndicator", 2);
|
9646
9656
|
__decorateClass([
|
9647
|
-
|
9657
|
+
observable2(false)
|
9648
9658
|
], CompilationController.prototype, "configurationControllersUpdateIndictor", 2);
|
9649
9659
|
__decorateClass([
|
9650
|
-
|
9660
|
+
observable2(false)
|
9651
9661
|
], CompilationController.prototype, "_mainAnalyzerChangedIndicator", 2);
|
9652
9662
|
__decorateClass([
|
9653
|
-
|
9663
|
+
observable2(false)
|
9654
9664
|
], CompilationController.prototype, "_fileSystemTree", 2);
|
9655
9665
|
__decorateClass([
|
9656
|
-
|
9666
|
+
observable2(false)
|
9657
9667
|
], CompilationController.prototype, "config", 2);
|
9658
9668
|
__decorateClass([
|
9659
|
-
|
9669
|
+
observable2(false)
|
9660
9670
|
], CompilationController.prototype, "_rootDirectory", 2);
|
9661
9671
|
__decorateClass([
|
9662
|
-
|
9672
|
+
observable2(false)
|
9663
9673
|
], CompilationController.prototype, "_previousCompilationLoadResult", 2);
|
9664
9674
|
__decorateClass([
|
9665
|
-
|
9675
|
+
observable2(false)
|
9666
9676
|
], CompilationController.prototype, "_sourceFilesForWhichDiagnosticsWereReported", 2);
|
9667
9677
|
__decorateClass([
|
9668
|
-
|
9678
|
+
observable2(false)
|
9669
9679
|
], CompilationController.prototype, "_checkedConfigurationVersionByPackageUri", 2);
|
9670
9680
|
__decorateClass([
|
9671
|
-
|
9681
|
+
observable2(false)
|
9672
9682
|
], CompilationController.prototype, "_tsInteropInputs", 2);
|
9673
9683
|
__decorateClass([
|
9674
|
-
|
9684
|
+
observable2(false)
|
9675
9685
|
], CompilationController.prototype, "_tsInteropInputsKey", 2);
|
9676
9686
|
__decorateClass([
|
9677
|
-
|
9687
|
+
observable2(false)
|
9678
9688
|
], CompilationController.prototype, "_tsProgramLoaderInputs", 2);
|
9679
9689
|
__decorateClass([
|
9680
|
-
|
9690
|
+
observable2(false)
|
9681
9691
|
], CompilationController.prototype, "_configurationsOfPackagesOutsideProject", 2);
|
9682
9692
|
__decorateClass([
|
9683
9693
|
atomic2
|
9684
9694
|
], CompilationController.prototype, "notifyReportedSourceFileDiagnostics", 1);
|
9685
9695
|
__decorateClass([
|
9686
|
-
|
9696
|
+
reactive,
|
9687
9697
|
options({ reentrance: Reentrance.cancelPrevious, order: 24 })
|
9688
9698
|
], CompilationController.prototype, "reloadMainCompilation", 1);
|
9689
9699
|
__decorateClass([
|
9690
|
-
|
9700
|
+
reactive,
|
9691
9701
|
options({ order: 25 })
|
9692
9702
|
], CompilationController.prototype, "updateState", 1);
|
9693
9703
|
__decorateClass([
|
9694
|
-
|
9704
|
+
reactive,
|
9695
9705
|
options({ order: 20 })
|
9696
9706
|
], CompilationController.prototype, "updateConfigurationControllers", 1);
|
9697
9707
|
__decorateClass([
|
9698
|
-
|
9708
|
+
reactive,
|
9699
9709
|
options({ order: 21 })
|
9700
9710
|
], CompilationController.prototype, "onConfigurationsUpdated", 1);
|
9701
9711
|
__decorateClass([
|
9702
|
-
|
9712
|
+
reactive
|
9703
9713
|
], CompilationController.prototype, "onMainAnalyzerChanged", 1);
|
9704
9714
|
__decorateClass([
|
9705
|
-
|
9715
|
+
reactive,
|
9706
9716
|
options({ reentrance: Reentrance.cancelAndWaitPrevious })
|
9707
9717
|
], CompilationController.prototype, "collectDiagnosticsInBackground", 1);
|
9708
9718
|
__decorateClass([
|
9709
|
-
|
9719
|
+
reactive,
|
9710
9720
|
options({ reentrance: Reentrance.waitAndRestart })
|
9711
9721
|
], CompilationController.prototype, "onRawPackageConfigurationsUpdated", 1);
|
9712
9722
|
var TsProgramLoaderInputs = class {
|
@@ -9780,7 +9790,7 @@ var DiagnosticsCollectionSummary = class {
|
|
9780
9790
|
this.hasErrors = hasErrors;
|
9781
9791
|
}
|
9782
9792
|
};
|
9783
|
-
var ConfigurationController = class extends
|
9793
|
+
var ConfigurationController = class extends ObservableObject2 {
|
9784
9794
|
constructor(rootDirectory, packageUri, mainCompilationController) {
|
9785
9795
|
super();
|
9786
9796
|
// private _compilationState: ReadonlyCompilationState | undefined = undefined
|
@@ -9798,7 +9808,7 @@ var ConfigurationController = class extends TriggeringObject2 {
|
|
9798
9808
|
this.packageUri = packageUri;
|
9799
9809
|
this._mainCompilationController = mainCompilationController;
|
9800
9810
|
this.processingIndicator = Indicator.create("ProcessConfiguration", -1, -1, 1e3);
|
9801
|
-
|
9811
|
+
manageReactiveOperation(this.processConfiguration).configure({ indicator: this.processingIndicator });
|
9802
9812
|
}
|
9803
9813
|
get convertedConfiguration() {
|
9804
9814
|
return this._convertedConfiguration;
|
@@ -9826,7 +9836,7 @@ var ConfigurationController = class extends TriggeringObject2 {
|
|
9826
9836
|
return this._convertedConfigurationVersion >= 0;
|
9827
9837
|
}
|
9828
9838
|
dispose() {
|
9829
|
-
|
9839
|
+
disposeObservableObject2(this);
|
9830
9840
|
}
|
9831
9841
|
updateJsonConfigurationFile() {
|
9832
9842
|
this.rootDirectory.version;
|
@@ -9861,13 +9871,13 @@ var ConfigurationController = class extends TriggeringObject2 {
|
|
9861
9871
|
this._convertedConfigurationVersion++;
|
9862
9872
|
});
|
9863
9873
|
}
|
9864
|
-
// @
|
9874
|
+
// @reactive
|
9865
9875
|
// @options({ reentrance: Reentrance.cancelPrevious, order: 21 })
|
9866
9876
|
// private async reloadCompilation(): Promise<void> {
|
9867
9877
|
// if (!this._mainCompilationController.isConfigurationsProcessingEnabled) {
|
9868
9878
|
// return
|
9869
9879
|
// }
|
9870
|
-
// // Вызов
|
9880
|
+
// // Вызов disposeObservableObject устанавливает undefined в качестве значения всех полей.
|
9871
9881
|
// if (this.rootDirectory.isDisposed || this.rootDirectory.isDisposed === undefined) {
|
9872
9882
|
// return
|
9873
9883
|
// }
|
@@ -9908,7 +9918,7 @@ var ConfigurationController = class extends TriggeringObject2 {
|
|
9908
9918
|
// }
|
9909
9919
|
// }
|
9910
9920
|
// }
|
9911
|
-
// @
|
9921
|
+
// @reactive
|
9912
9922
|
// @options({ reentrance: Reentrance.cancelPrevious, order: 22 })
|
9913
9923
|
// private async analyze(): Promise<void> {
|
9914
9924
|
// if (!this._mainCompilationController.isConfigurationsProcessingEnabled) {
|
@@ -9942,11 +9952,11 @@ var ConfigurationController = class extends TriggeringObject2 {
|
|
9942
9952
|
// }
|
9943
9953
|
// }
|
9944
9954
|
// }
|
9945
|
-
// @
|
9955
|
+
// @reactive
|
9946
9956
|
// private diagnosticsChanged(): void {
|
9947
9957
|
// this._configurationDiagnostics // подписка
|
9948
9958
|
// }
|
9949
|
-
// @
|
9959
|
+
// @reactive
|
9950
9960
|
// @options({ reentrance: Reentrance.cancelAndWaitPrevious })
|
9951
9961
|
// private async reportDiagnostics(): Promise<void> {
|
9952
9962
|
// if (!this._mainCompilationController.isConfigurationsProcessingEnabled) {
|
@@ -9972,7 +9982,7 @@ var ConfigurationController = class extends TriggeringObject2 {
|
|
9972
9982
|
// }
|
9973
9983
|
// }
|
9974
9984
|
// }
|
9975
|
-
// @
|
9985
|
+
// @reactive
|
9976
9986
|
// @options({ reentrance: Reentrance.cancelPrevious, order: 23 })
|
9977
9987
|
// private async interpretConfiguration(): Promise<void> {
|
9978
9988
|
// if (!this._mainCompilationController.isConfigurationsProcessingEnabled) {
|
@@ -10014,23 +10024,23 @@ var ConfigurationController = class extends TriggeringObject2 {
|
|
10014
10024
|
// }
|
10015
10025
|
};
|
10016
10026
|
__decorateClass([
|
10017
|
-
|
10027
|
+
observable2(false)
|
10018
10028
|
], ConfigurationController.prototype, "packageUri", 2);
|
10019
10029
|
__decorateClass([
|
10020
|
-
|
10030
|
+
observable2(false)
|
10021
10031
|
], ConfigurationController.prototype, "processingIndicator", 2);
|
10022
10032
|
__decorateClass([
|
10023
|
-
|
10033
|
+
observable2(false)
|
10024
10034
|
], ConfigurationController.prototype, "rootDirectory", 2);
|
10025
10035
|
__decorateClass([
|
10026
|
-
|
10036
|
+
observable2(false)
|
10027
10037
|
], ConfigurationController.prototype, "_mainCompilationController", 2);
|
10028
10038
|
__decorateClass([
|
10029
|
-
|
10039
|
+
reactive,
|
10030
10040
|
options({ reentrance: Reentrance.cancelPrevious, order: 21 })
|
10031
10041
|
], ConfigurationController.prototype, "updateJsonConfigurationFile", 1);
|
10032
10042
|
__decorateClass([
|
10033
|
-
|
10043
|
+
reactive,
|
10034
10044
|
options({ reentrance: Reentrance.cancelPrevious, order: 22 })
|
10035
10045
|
], ConfigurationController.prototype, "processConfiguration", 1);
|
10036
10046
|
var ConfigurationDirectory = class {
|
@@ -10095,28 +10105,29 @@ import {
|
|
10095
10105
|
atomic as atomic3,
|
10096
10106
|
Indicator as Indicator2,
|
10097
10107
|
runNonReactively as runNonReactively2,
|
10098
|
-
|
10099
|
-
|
10100
|
-
|
10108
|
+
ObservableArray,
|
10109
|
+
ObservableMap as ObservableMap2,
|
10110
|
+
ObservableObject as ObservableObject3,
|
10101
10111
|
options as options2,
|
10102
|
-
|
10103
|
-
|
10104
|
-
|
10105
|
-
|
10112
|
+
observable as observable3,
|
10113
|
+
reactive as reactive2,
|
10114
|
+
manageReactiveOperation as manageReactiveOperation2,
|
10115
|
+
disposeObservableObject as disposeObservableObject3,
|
10116
|
+
Transaction as Transaction2
|
10106
10117
|
} from "reactronic";
|
10107
|
-
var FileSystemTreeProviderBasedOnWatchedFileSystem = class extends
|
10118
|
+
var FileSystemTreeProviderBasedOnWatchedFileSystem = class extends ObservableObject3 {
|
10108
10119
|
// Используется в качестве множества.
|
10109
10120
|
constructor(fileSystem, notificationsPublisher, namesOfDirectoriesToIgnore, additionalUrisOfDirectoriesToLoad) {
|
10110
10121
|
super();
|
10111
10122
|
this.fileSystemTree = new FileSystemTree(true);
|
10112
|
-
this.loadedWorkspaceFolderByUri = new
|
10123
|
+
this.loadedWorkspaceFolderByUri = new ObservableMap2();
|
10113
10124
|
this._workspaceFolderUris = void 0;
|
10114
10125
|
this._trackedSourceFiles = void 0;
|
10115
10126
|
this._isInitialized = false;
|
10116
10127
|
this._lastCheckedWorkspaceFolderUris = new Array();
|
10117
10128
|
this._taskQueue = new TaskQueue();
|
10118
10129
|
this._lastCheckedTrackedSourceFileInfoVersionByUri = /* @__PURE__ */ new Map();
|
10119
|
-
this._loadedDirectoryUris = new
|
10130
|
+
this._loadedDirectoryUris = new ObservableMap2();
|
10120
10131
|
this._fileSystem = fileSystem;
|
10121
10132
|
this._notificationsPublisher = notificationsPublisher;
|
10122
10133
|
this._listener = this.onFileSystemUpdated.bind(this);
|
@@ -10137,10 +10148,10 @@ var FileSystemTreeProviderBasedOnWatchedFileSystem = class extends TriggeringObj
|
|
10137
10148
|
dispose() {
|
10138
10149
|
this._notificationsPublisher.removeListener(this._listener);
|
10139
10150
|
this.fileSystemTree.dispose();
|
10140
|
-
|
10151
|
+
disposeObservableObject3(this.loadedWorkspaceFolderByUri);
|
10141
10152
|
this._taskQueue.dispose();
|
10142
|
-
|
10143
|
-
|
10153
|
+
disposeObservableObject3(this._workspaceFolderUris);
|
10154
|
+
disposeObservableObject3(this);
|
10144
10155
|
}
|
10145
10156
|
onTrackedSourceFilesUpdated() {
|
10146
10157
|
if (this._trackedSourceFiles === void 0) {
|
@@ -10484,7 +10495,7 @@ var FileSystemTreeProviderBasedOnWatchedFileSystem = class extends TriggeringObj
|
|
10484
10495
|
this.fileSystemTree.deleteFileOrDirectory(uri);
|
10485
10496
|
}
|
10486
10497
|
}
|
10487
|
-
// @
|
10498
|
+
// @reactive
|
10488
10499
|
// @options({ order: 0 })
|
10489
10500
|
// protected unloadWorkspaceFoldersThatNoLongerContainArtelProject(): void {
|
10490
10501
|
// if (this.isMissingConfigurationDirectoryAllowed) {
|
@@ -10609,50 +10620,50 @@ var FileSystemTreeProviderBasedOnWatchedFileSystem = class extends TriggeringObj
|
|
10609
10620
|
// }
|
10610
10621
|
};
|
10611
10622
|
__decorateClass([
|
10612
|
-
|
10623
|
+
observable3(false)
|
10613
10624
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "fileSystemTree", 2);
|
10614
10625
|
__decorateClass([
|
10615
|
-
|
10626
|
+
observable3(false)
|
10616
10627
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "loadedWorkspaceFolderByUri", 2);
|
10617
10628
|
__decorateClass([
|
10618
|
-
|
10629
|
+
observable3(false)
|
10619
10630
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "_fileSystem", 2);
|
10620
10631
|
__decorateClass([
|
10621
|
-
|
10632
|
+
observable3(false)
|
10622
10633
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "_notificationsPublisher", 2);
|
10623
10634
|
__decorateClass([
|
10624
|
-
|
10635
|
+
observable3(false)
|
10625
10636
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "_listener", 2);
|
10626
10637
|
__decorateClass([
|
10627
|
-
|
10638
|
+
observable3(false)
|
10628
10639
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "_lastCheckedWorkspaceFolderUris", 2);
|
10629
10640
|
__decorateClass([
|
10630
|
-
|
10641
|
+
observable3(false)
|
10631
10642
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "_taskQueue", 2);
|
10632
10643
|
__decorateClass([
|
10633
|
-
|
10644
|
+
observable3(false)
|
10634
10645
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "_namesOfDirectoriesToIgnore", 2);
|
10635
10646
|
__decorateClass([
|
10636
|
-
|
10647
|
+
observable3(false)
|
10637
10648
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "_additionalUrisOfDirectoriesToLoad", 2);
|
10638
10649
|
__decorateClass([
|
10639
|
-
|
10650
|
+
observable3(false)
|
10640
10651
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "_lastCheckedTrackedSourceFileInfoVersionByUri", 2);
|
10641
10652
|
__decorateClass([
|
10642
|
-
|
10653
|
+
observable3(false)
|
10643
10654
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "_loadedDirectoryUris", 2);
|
10644
10655
|
__decorateClass([
|
10645
|
-
|
10656
|
+
reactive2
|
10646
10657
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "onTrackedSourceFilesUpdated", 1);
|
10647
10658
|
__decorateClass([
|
10648
|
-
|
10659
|
+
reactive2
|
10649
10660
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "onWorkspaceFolderUrisUpdated", 1);
|
10650
10661
|
__decorateClass([
|
10651
|
-
|
10662
|
+
reactive2,
|
10652
10663
|
options2({ order: 0 })
|
10653
10664
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "updateLoadedWorkspaceFolders", 1);
|
10654
10665
|
__decorateClass([
|
10655
|
-
|
10666
|
+
reactive2
|
10656
10667
|
], FileSystemTreeProviderBasedOnWatchedFileSystem.prototype, "loadAdditionalDirectories", 1);
|
10657
10668
|
__decorateClass([
|
10658
10669
|
atomic3
|
@@ -10743,22 +10754,22 @@ var FileSystemTreeUpdate_deleteDirectory = class {
|
|
10743
10754
|
return this.uri;
|
10744
10755
|
}
|
10745
10756
|
};
|
10746
|
-
var TaskQueue = class extends
|
10757
|
+
var TaskQueue = class extends ObservableObject3 {
|
10747
10758
|
constructor() {
|
10748
10759
|
super();
|
10749
|
-
this._tasks = new
|
10760
|
+
this._tasks = new ObservableArray();
|
10750
10761
|
this._currentTask = void 0;
|
10751
10762
|
this._processTasksIndicator = Indicator2.create("ProcessTasks", -1, -1, 1e3);
|
10752
|
-
|
10763
|
+
manageReactiveOperation2(this.processTasks).configure({ indicator: this._processTasksIndicator });
|
10753
10764
|
this._executeTaskIndicator = Indicator2.create("ExecuteTask", -1, -1, 1e3);
|
10754
|
-
|
10765
|
+
manageReactiveOperation2(this.executeTask).configure({ indicator: this._executeTaskIndicator });
|
10755
10766
|
}
|
10756
10767
|
addTask(task) {
|
10757
10768
|
this._tasks.push(task);
|
10758
10769
|
}
|
10759
10770
|
dispose() {
|
10760
|
-
|
10761
|
-
|
10771
|
+
disposeObservableObject3(this._tasks);
|
10772
|
+
disposeObservableObject3(this);
|
10762
10773
|
}
|
10763
10774
|
waitAllTasksProcessed(cancellationToken) {
|
10764
10775
|
return __async(this, null, function* () {
|
@@ -10802,25 +10813,25 @@ var TaskQueue = class extends TriggeringObject3 {
|
|
10802
10813
|
}
|
10803
10814
|
};
|
10804
10815
|
__decorateClass([
|
10805
|
-
|
10816
|
+
observable3(false)
|
10806
10817
|
], TaskQueue.prototype, "_tasks", 2);
|
10807
10818
|
__decorateClass([
|
10808
10819
|
atomic3
|
10809
10820
|
], TaskQueue.prototype, "addTask", 1);
|
10810
10821
|
__decorateClass([
|
10811
|
-
|
10822
|
+
reactive2
|
10812
10823
|
], TaskQueue.prototype, "processTasks", 1);
|
10813
10824
|
__decorateClass([
|
10814
|
-
|
10825
|
+
reactive2
|
10815
10826
|
], TaskQueue.prototype, "executeTask", 1);
|
10816
10827
|
|
10817
10828
|
// source/services/workspace/ManuallyUpdatedFileSystemTreeProvider.ts
|
10818
|
-
import {
|
10819
|
-
var ManuallyUpdatedFileSystemTreeProvider = class extends
|
10829
|
+
import { ObservableMap as ObservableMap3, ObservableObject as ObservableObject4, options as options3, reactive as reactive3, observable as observable4, disposeObservableObject as disposeObservableObject4 } from "reactronic";
|
10830
|
+
var ManuallyUpdatedFileSystemTreeProvider = class extends ObservableObject4 {
|
10820
10831
|
constructor() {
|
10821
10832
|
super(...arguments);
|
10822
10833
|
this.fileSystemTree = new FileSystemTree(true, true);
|
10823
|
-
this.loadedWorkspaceFolderByUri = new
|
10834
|
+
this.loadedWorkspaceFolderByUri = new ObservableMap3();
|
10824
10835
|
this._workspaceFolderUris = void 0;
|
10825
10836
|
this._trackedSourceFiles = void 0;
|
10826
10837
|
this._lastCheckedTrackedSourceFileInfoByUri = /* @__PURE__ */ new Map();
|
@@ -10835,9 +10846,9 @@ var ManuallyUpdatedFileSystemTreeProvider = class extends TriggeringObject4 {
|
|
10835
10846
|
}
|
10836
10847
|
dispose() {
|
10837
10848
|
this.fileSystemTree.dispose();
|
10838
|
-
|
10839
|
-
|
10840
|
-
|
10849
|
+
disposeObservableObject4(this.loadedWorkspaceFolderByUri);
|
10850
|
+
disposeObservableObject4(this._workspaceFolderUris);
|
10851
|
+
disposeObservableObject4(this);
|
10841
10852
|
}
|
10842
10853
|
createOrUpdateSourceFile(uri, text) {
|
10843
10854
|
this._manuallyCreatedSourceFileTextByUri.set(uri.toString(), text);
|
@@ -10919,59 +10930,59 @@ var ManuallyUpdatedFileSystemTreeProvider = class extends TriggeringObject4 {
|
|
10919
10930
|
}
|
10920
10931
|
};
|
10921
10932
|
__decorateClass([
|
10922
|
-
|
10933
|
+
observable4(false)
|
10923
10934
|
], ManuallyUpdatedFileSystemTreeProvider.prototype, "fileSystemTree", 2);
|
10924
10935
|
__decorateClass([
|
10925
|
-
|
10936
|
+
observable4(false)
|
10926
10937
|
], ManuallyUpdatedFileSystemTreeProvider.prototype, "loadedWorkspaceFolderByUri", 2);
|
10927
10938
|
__decorateClass([
|
10928
|
-
|
10939
|
+
observable4(false)
|
10929
10940
|
], ManuallyUpdatedFileSystemTreeProvider.prototype, "_lastCheckedTrackedSourceFileInfoByUri", 2);
|
10930
10941
|
__decorateClass([
|
10931
|
-
|
10942
|
+
observable4(false)
|
10932
10943
|
], ManuallyUpdatedFileSystemTreeProvider.prototype, "_manuallyCreatedSourceFileTextByUri", 2);
|
10933
10944
|
__decorateClass([
|
10934
|
-
|
10945
|
+
reactive3
|
10935
10946
|
], ManuallyUpdatedFileSystemTreeProvider.prototype, "onTrackedSourceFilesUpdated", 1);
|
10936
10947
|
__decorateClass([
|
10937
|
-
|
10948
|
+
reactive3,
|
10938
10949
|
options3({ order: 0 })
|
10939
10950
|
], ManuallyUpdatedFileSystemTreeProvider.prototype, "updateLoadedWorkspaceFolderByUri", 1);
|
10940
10951
|
|
10941
10952
|
// source/services/workspace/Workspace.ts
|
10942
10953
|
import {
|
10943
|
-
|
10944
|
-
|
10945
|
-
|
10946
|
-
ReactiveSystem as ReactiveSystem6,
|
10954
|
+
ObservableArray as ObservableArray4,
|
10955
|
+
ObservableMap as ObservableMap5,
|
10956
|
+
ObservableObject as ObservableObject6,
|
10947
10957
|
Reentrance as Reentrance2,
|
10948
10958
|
Transaction as Transaction3,
|
10949
10959
|
atomic as atomic5,
|
10950
10960
|
runAtomically,
|
10951
|
-
cache,
|
10952
10961
|
runNonReactively as runNonReactively3,
|
10953
10962
|
options as options5,
|
10954
|
-
|
10955
|
-
|
10963
|
+
observable as observable6,
|
10964
|
+
reactive as reactive5,
|
10965
|
+
cached,
|
10966
|
+
disposeObservableObject as disposeObservableObject6
|
10956
10967
|
} from "reactronic";
|
10957
10968
|
|
10958
10969
|
// source/services/workspace/WorkspaceFiles.ts
|
10959
10970
|
import {
|
10960
|
-
|
10961
|
-
|
10962
|
-
|
10971
|
+
ObservableArray as ObservableArray3,
|
10972
|
+
ObservableMap as ObservableMap4,
|
10973
|
+
ObservableObject as ObservableObject5,
|
10963
10974
|
options as options4,
|
10964
|
-
|
10965
|
-
|
10966
|
-
|
10975
|
+
observable as observable5,
|
10976
|
+
reactive as reactive4,
|
10977
|
+
disposeObservableObject as disposeObservableObject5,
|
10967
10978
|
atomic as atomic4
|
10968
10979
|
} from "reactronic";
|
10969
|
-
var WorkspaceFiles = class extends
|
10980
|
+
var WorkspaceFiles = class extends ObservableObject5 {
|
10970
10981
|
constructor(fileSystemTreeProvider) {
|
10971
10982
|
super();
|
10972
10983
|
this.trackedSourceFiles = new ClientTrackedSourceFiles();
|
10973
|
-
this.workspaceFolderUris = new
|
10974
|
-
this.workspaceFolderWithArtelProjectByUri = new
|
10984
|
+
this.workspaceFolderUris = new ObservableArray3();
|
10985
|
+
this.workspaceFolderWithArtelProjectByUri = new ObservableMap4();
|
10975
10986
|
this._fileSystemTreeProvider = fileSystemTreeProvider;
|
10976
10987
|
this._fileSystemTreeProvider.initialize(this.workspaceFolderUris, this.trackedSourceFiles);
|
10977
10988
|
}
|
@@ -11029,11 +11040,11 @@ var WorkspaceFiles = class extends TriggeringObject5 {
|
|
11029
11040
|
});
|
11030
11041
|
}
|
11031
11042
|
dispose() {
|
11032
|
-
|
11033
|
-
|
11043
|
+
disposeObservableObject5(this.workspaceFolderUris);
|
11044
|
+
disposeObservableObject5(this.workspaceFolderWithArtelProjectByUri);
|
11034
11045
|
this._fileSystemTreeProvider.dispose();
|
11035
11046
|
this.trackedSourceFiles.dispose();
|
11036
|
-
|
11047
|
+
disposeObservableObject5(this);
|
11037
11048
|
}
|
11038
11049
|
updateWorkspaceFolderWithArtelProjectByUri() {
|
11039
11050
|
this.isMissingConfigurationDirectoryAllowed;
|
@@ -11070,13 +11081,13 @@ var WorkspaceFiles = class extends TriggeringObject5 {
|
|
11070
11081
|
}
|
11071
11082
|
};
|
11072
11083
|
__decorateClass([
|
11073
|
-
|
11084
|
+
observable5(false)
|
11074
11085
|
], WorkspaceFiles.prototype, "workspaceFolderUris", 2);
|
11075
11086
|
__decorateClass([
|
11076
|
-
|
11087
|
+
observable5(false)
|
11077
11088
|
], WorkspaceFiles.prototype, "workspaceFolderWithArtelProjectByUri", 2);
|
11078
11089
|
__decorateClass([
|
11079
|
-
|
11090
|
+
observable5(false)
|
11080
11091
|
], WorkspaceFiles.prototype, "_fileSystemTreeProvider", 2);
|
11081
11092
|
__decorateClass([
|
11082
11093
|
atomic4
|
@@ -11091,18 +11102,18 @@ __decorateClass([
|
|
11091
11102
|
atomic4
|
11092
11103
|
], WorkspaceFiles.prototype, "updateTrackedSourceFile", 1);
|
11093
11104
|
__decorateClass([
|
11094
|
-
|
11105
|
+
reactive4,
|
11095
11106
|
options4({ order: 1 })
|
11096
11107
|
], WorkspaceFiles.prototype, "updateWorkspaceFolderWithArtelProjectByUri", 1);
|
11097
11108
|
|
11098
11109
|
// source/services/workspace/Workspace.ts
|
11099
|
-
var _Workspace = class _Workspace extends
|
11110
|
+
var _Workspace = class _Workspace extends ObservableObject6 {
|
11100
11111
|
constructor(config) {
|
11101
11112
|
super();
|
11102
11113
|
this.isReadyToAcceptWorkspaceDiagnostics = false;
|
11103
|
-
this._compilationControllers = new
|
11104
|
-
//
|
11105
|
-
this._controllersWithOpenedFiles = new
|
11114
|
+
this._compilationControllers = new ObservableArray4();
|
11115
|
+
// ObservableMap используется в качестве Set'а.
|
11116
|
+
this._controllersWithOpenedFiles = new ObservableMap5();
|
11106
11117
|
this._atLeastOneFileOfCompilationHasBeenOpened = false;
|
11107
11118
|
this._standardPackageContents = new Cached();
|
11108
11119
|
this._tsInteropInputsCache = new TsInteropInputsCache();
|
@@ -11223,10 +11234,10 @@ var _Workspace = class _Workspace extends TriggeringObject6 {
|
|
11223
11234
|
for (const controller of this._compilationControllers.values()) {
|
11224
11235
|
controller.dispose();
|
11225
11236
|
}
|
11226
|
-
|
11227
|
-
|
11237
|
+
disposeObservableObject6(this._compilationControllers);
|
11238
|
+
disposeObservableObject6(this._controllersWithOpenedFiles);
|
11228
11239
|
this._files.dispose();
|
11229
|
-
|
11240
|
+
disposeObservableObject6(this);
|
11230
11241
|
}
|
11231
11242
|
updateCompilationControllers() {
|
11232
11243
|
const controllersToDelete = new Map(this.compilationControllerByUri);
|
@@ -11372,39 +11383,39 @@ var _Workspace = class _Workspace extends TriggeringObject6 {
|
|
11372
11383
|
}
|
11373
11384
|
};
|
11374
11385
|
__decorateClass([
|
11375
|
-
|
11386
|
+
observable6(false)
|
11376
11387
|
], _Workspace.prototype, "_config", 2);
|
11377
11388
|
__decorateClass([
|
11378
|
-
|
11389
|
+
observable6(false)
|
11379
11390
|
], _Workspace.prototype, "_atLeastOneFileOfCompilationHasBeenOpened", 2);
|
11380
11391
|
__decorateClass([
|
11381
|
-
|
11392
|
+
observable6(false)
|
11382
11393
|
], _Workspace.prototype, "_files", 2);
|
11383
11394
|
__decorateClass([
|
11384
|
-
|
11395
|
+
observable6(false)
|
11385
11396
|
], _Workspace.prototype, "_standardPackageContents", 2);
|
11386
11397
|
__decorateClass([
|
11387
|
-
|
11398
|
+
observable6(false)
|
11388
11399
|
], _Workspace.prototype, "_tsInteropInputsCache", 2);
|
11389
11400
|
__decorateClass([
|
11390
|
-
|
11401
|
+
cached
|
11391
11402
|
], _Workspace.prototype, "compilationControllerByUri", 1);
|
11392
11403
|
__decorateClass([
|
11393
11404
|
atomic5
|
11394
11405
|
], _Workspace.prototype, "notifyClosedTextDocument", 1);
|
11395
11406
|
__decorateClass([
|
11396
|
-
|
11407
|
+
reactive5,
|
11397
11408
|
options5({ order: 10 })
|
11398
11409
|
], _Workspace.prototype, "updateCompilationControllers", 1);
|
11399
11410
|
__decorateClass([
|
11400
|
-
|
11411
|
+
reactive5,
|
11401
11412
|
options5({ reentrance: Reentrance2.cancelPrevious })
|
11402
11413
|
], _Workspace.prototype, "processControllersWithUnprocessedConfigs", 1);
|
11403
11414
|
__decorateClass([
|
11404
|
-
|
11415
|
+
reactive5
|
11405
11416
|
], _Workspace.prototype, "updateIsDiagnosticsCollectionInBackgroundEnabled", 1);
|
11406
11417
|
__decorateClass([
|
11407
|
-
|
11418
|
+
reactive5,
|
11408
11419
|
options5({ reentrance: Reentrance2.cancelPrevious })
|
11409
11420
|
], _Workspace.prototype, "updateControllersWithOpenedFiles", 1);
|
11410
11421
|
var Workspace = _Workspace;
|
@@ -11907,13 +11918,13 @@ var EntityToSyntax = class {
|
|
11907
11918
|
};
|
11908
11919
|
|
11909
11920
|
// source/services/source-generation/SourceGenerationService.ts
|
11910
|
-
var SourceGenerationService = class extends
|
11921
|
+
var SourceGenerationService = class extends ObservableObject7 {
|
11911
11922
|
constructor(_trackedSourceFiles, _tsLibrariesProvider, _standardPackageContentsProviders) {
|
11912
11923
|
super();
|
11913
11924
|
this._trackedSourceFiles = _trackedSourceFiles;
|
11914
11925
|
this._tsLibrariesProvider = _tsLibrariesProvider;
|
11915
11926
|
this._standardPackageContentsProviders = _standardPackageContentsProviders;
|
11916
|
-
this._generatedPackageStates = new
|
11927
|
+
this._generatedPackageStates = new ObservableMap6();
|
11917
11928
|
}
|
11918
11929
|
get compilationControllers() {
|
11919
11930
|
return Array.from(this._generatedPackageStates.values()).map((s) => s.compilationController);
|
@@ -12121,7 +12132,7 @@ var SourceGenerationService = class extends TriggeringObject7 {
|
|
12121
12132
|
}
|
12122
12133
|
};
|
12123
12134
|
__decorateClass([
|
12124
|
-
|
12135
|
+
reactive6
|
12125
12136
|
], SourceGenerationService.prototype, "onOpenedSourceFilesChanged", 1);
|
12126
12137
|
var deleteGeneratedPackageTimeoutMs = 1e4;
|
12127
12138
|
var GeneratedPackageState = class {
|