@likec4/language-server 1.18.0 → 1.19.1
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/dist/LikeC4FileSystem.d.ts +13 -0
- package/dist/LikeC4FileSystem.js +27 -0
- package/dist/Rpc.d.ts +9 -0
- package/dist/Rpc.js +132 -0
- package/dist/ast.d.ts +200 -0
- package/dist/ast.js +276 -0
- package/dist/browser.d.ts +7 -20
- package/dist/browser.js +13 -0
- package/dist/documentation/documentation-provider.d.ts +8 -0
- package/dist/documentation/documentation-provider.js +46 -0
- package/dist/documentation/index.d.ts +1 -0
- package/dist/documentation/index.js +1 -0
- package/dist/formatting/LikeC4Formatter.d.ts +27 -0
- package/dist/formatting/LikeC4Formatter.js +261 -0
- package/dist/formatting/utils.d.ts +6 -0
- package/dist/formatting/utils.js +15 -0
- package/dist/generated/ast.d.ts +1242 -0
- package/dist/generated/ast.js +1945 -0
- package/dist/generated/grammar.d.ts +6 -0
- package/dist/generated/grammar.js +3 -0
- package/dist/generated/module.d.ts +9 -0
- package/dist/generated/module.js +23 -0
- package/dist/generated-lib/icons.d.ts +1 -0
- package/dist/{likec4lib.mjs → generated-lib/icons.js} +1 -6
- package/dist/index.d.ts +9 -31
- package/dist/index.js +14 -0
- package/dist/like-c4.langium +845 -0
- package/dist/likec4lib.d.ts +4 -6
- package/dist/likec4lib.js +4 -0
- package/dist/logger.d.ts +7 -0
- package/dist/logger.js +73 -0
- package/dist/lsp/CodeLensProvider.d.ts +9 -0
- package/dist/lsp/CodeLensProvider.js +40 -0
- package/dist/lsp/CompletionProvider.d.ts +6 -0
- package/dist/lsp/CompletionProvider.js +135 -0
- package/dist/lsp/DocumentHighlightProvider.d.ts +9 -0
- package/dist/lsp/DocumentHighlightProvider.js +10 -0
- package/dist/lsp/DocumentLinkProvider.d.ts +11 -0
- package/dist/lsp/DocumentLinkProvider.js +49 -0
- package/dist/lsp/DocumentSymbolProvider.d.ts +32 -0
- package/dist/lsp/DocumentSymbolProvider.js +274 -0
- package/dist/lsp/HoverProvider.d.ts +10 -0
- package/dist/lsp/HoverProvider.js +69 -0
- package/dist/lsp/RenameProvider.d.ts +5 -0
- package/dist/lsp/RenameProvider.js +6 -0
- package/dist/lsp/SemanticTokenProvider.d.ts +7 -0
- package/dist/lsp/SemanticTokenProvider.js +297 -0
- package/dist/lsp/index.d.ts +7 -0
- package/dist/lsp/index.js +7 -0
- package/dist/model/deployments-index.d.ts +60 -0
- package/dist/model/deployments-index.js +181 -0
- package/dist/model/fqn-computation.d.ts +3 -0
- package/dist/model/fqn-computation.js +72 -0
- package/dist/model/fqn-index.d.ts +25 -0
- package/dist/model/fqn-index.js +96 -0
- package/dist/model/index.d.ts +6 -0
- package/dist/model/index.js +6 -0
- package/dist/model/model-builder.d.ts +32 -0
- package/dist/model/model-builder.js +598 -0
- package/dist/model/model-locator.d.ts +23 -0
- package/dist/model/model-locator.js +126 -0
- package/dist/model/model-parser-where.d.ts +3 -0
- package/dist/model/model-parser-where.js +70 -0
- package/dist/model/model-parser.d.ts +292 -0
- package/dist/model/model-parser.js +72 -0
- package/dist/model/parser/Base.d.ts +28 -0
- package/dist/model/parser/Base.js +87 -0
- package/dist/model/parser/DeploymentModelParser.d.ts +33 -0
- package/dist/model/parser/DeploymentModelParser.js +162 -0
- package/dist/model/parser/DeploymentViewParser.d.ts +38 -0
- package/dist/model/parser/DeploymentViewParser.js +98 -0
- package/dist/model/parser/FqnRefParser.d.ts +29 -0
- package/dist/model/parser/FqnRefParser.js +108 -0
- package/dist/model/parser/GlobalsParser.d.ts +66 -0
- package/dist/model/parser/GlobalsParser.js +80 -0
- package/dist/model/parser/ModelParser.d.ts +27 -0
- package/dist/model/parser/ModelParser.js +122 -0
- package/dist/model/parser/PredicatesParser.d.ts +34 -0
- package/dist/model/parser/PredicatesParser.js +272 -0
- package/dist/model/parser/SpecificationParser.d.ts +27 -0
- package/dist/model/parser/SpecificationParser.js +120 -0
- package/dist/model/parser/ViewsParser.d.ts +64 -0
- package/dist/model/parser/ViewsParser.js +377 -0
- package/dist/model-change/ModelChanges.d.ts +15 -0
- package/dist/model-change/ModelChanges.js +89 -0
- package/dist/model-change/changeElementStyle.d.ts +16 -0
- package/dist/model-change/changeElementStyle.js +136 -0
- package/dist/model-change/changeViewLayout.d.ts +12 -0
- package/dist/model-change/changeViewLayout.js +32 -0
- package/dist/model-change/saveManualLayout.d.ts +11 -0
- package/dist/model-change/saveManualLayout.js +27 -0
- package/dist/module.d.ts +70 -0
- package/dist/module.js +162 -0
- package/dist/protocol.d.ts +38 -23
- package/dist/protocol.js +15 -0
- package/dist/references/index.d.ts +3 -0
- package/dist/references/index.js +3 -0
- package/dist/references/name-provider.d.ts +9 -0
- package/dist/references/name-provider.js +33 -0
- package/dist/references/scope-computation.d.ts +20 -0
- package/dist/references/scope-computation.js +281 -0
- package/dist/references/scope-provider.d.ts +16 -0
- package/dist/references/scope-provider.js +165 -0
- package/dist/shared/NodeKindProvider.d.ts +15 -0
- package/dist/shared/NodeKindProvider.js +108 -0
- package/dist/shared/WorkspaceManager.d.ts +18 -0
- package/dist/shared/WorkspaceManager.js +36 -0
- package/dist/shared/WorkspaceSymbolProvider.d.ts +3 -0
- package/dist/shared/WorkspaceSymbolProvider.js +3 -0
- package/dist/shared/index.d.ts +3 -0
- package/dist/shared/index.js +3 -0
- package/dist/test/index.d.ts +1 -0
- package/dist/test/index.js +1 -0
- package/dist/test/setup.d.ts +1 -0
- package/dist/test/setup.js +7 -0
- package/dist/test/testServices.d.ts +22 -0
- package/dist/test/testServices.js +119 -0
- package/dist/utils/elementRef.d.ts +11 -0
- package/dist/utils/elementRef.js +15 -0
- package/dist/utils/fqnRef.d.ts +8 -0
- package/dist/utils/fqnRef.js +46 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/printDocs.d.ts +2 -0
- package/dist/utils/printDocs.js +1 -0
- package/dist/utils/stringHash.d.ts +1 -0
- package/dist/utils/stringHash.js +5 -0
- package/dist/validation/_shared.d.ts +3 -0
- package/dist/validation/_shared.js +22 -0
- package/dist/validation/deployment-checks.d.ts +6 -0
- package/dist/validation/deployment-checks.js +114 -0
- package/dist/validation/dynamic-view-rule.d.ts +4 -0
- package/dist/validation/dynamic-view-rule.js +17 -0
- package/dist/validation/dynamic-view-step.d.ts +4 -0
- package/dist/validation/dynamic-view-step.js +29 -0
- package/dist/validation/element.d.ts +4 -0
- package/dist/validation/element.js +49 -0
- package/dist/validation/index.d.ts +15 -0
- package/dist/validation/index.js +152 -0
- package/dist/validation/property-checks.d.ts +6 -0
- package/dist/validation/property-checks.js +39 -0
- package/dist/validation/relation.d.ts +5 -0
- package/dist/validation/relation.js +56 -0
- package/dist/validation/specification.d.ts +11 -0
- package/dist/validation/specification.js +136 -0
- package/dist/validation/view-predicates/element-with.d.ts +4 -0
- package/dist/validation/view-predicates/element-with.js +31 -0
- package/dist/validation/view-predicates/expanded-element.d.ts +4 -0
- package/dist/validation/view-predicates/expanded-element.js +12 -0
- package/dist/validation/view-predicates/expression-v2.d.ts +5 -0
- package/dist/validation/view-predicates/expression-v2.js +83 -0
- package/dist/validation/view-predicates/incoming.d.ts +4 -0
- package/dist/validation/view-predicates/incoming.js +16 -0
- package/dist/validation/view-predicates/index.d.ts +6 -0
- package/dist/validation/view-predicates/index.js +6 -0
- package/dist/validation/view-predicates/outgoing.d.ts +4 -0
- package/dist/validation/view-predicates/outgoing.js +16 -0
- package/dist/validation/view-predicates/relation-with.d.ts +4 -0
- package/dist/validation/view-predicates/relation-with.js +13 -0
- package/dist/validation/view.d.ts +4 -0
- package/dist/validation/view.js +23 -0
- package/dist/view-utils/assignNavigateTo.d.ts +2 -0
- package/dist/view-utils/assignNavigateTo.js +25 -0
- package/dist/view-utils/index.d.ts +2 -0
- package/dist/view-utils/index.js +2 -0
- package/dist/view-utils/manual-layout.d.ts +7 -0
- package/dist/view-utils/manual-layout.js +99 -0
- package/dist/view-utils/resolve-relative-paths.d.ts +2 -0
- package/dist/view-utils/resolve-relative-paths.js +78 -0
- package/dist/views/configurable-layouter.d.ts +7 -0
- package/dist/views/configurable-layouter.js +55 -0
- package/dist/views/index.d.ts +1 -0
- package/dist/views/index.js +1 -0
- package/dist/views/likec4-views.d.ts +26 -0
- package/dist/views/likec4-views.js +113 -0
- package/package.json +40 -54
- package/src/LikeC4FileSystem.ts +22 -21
- package/src/Rpc.ts +13 -7
- package/src/ast.ts +44 -133
- package/src/browser.ts +11 -11
- package/src/documentation/documentation-provider.ts +52 -0
- package/src/documentation/index.ts +1 -0
- package/src/generated/ast.ts +177 -177
- package/src/generated/grammar.ts +1 -1
- package/src/index.ts +13 -9
- package/src/like-c4.langium +37 -34
- package/src/logger.ts +34 -55
- package/src/lsp/CompletionProvider.ts +4 -4
- package/src/lsp/DocumentSymbolProvider.ts +110 -28
- package/src/lsp/HoverProvider.ts +5 -3
- package/src/lsp/SemanticTokenProvider.ts +2 -2
- package/src/model/deployments-index.ts +18 -14
- package/src/model/fqn-computation.ts +8 -8
- package/src/model/model-builder.ts +62 -60
- package/src/model/model-parser.ts +62 -1574
- package/src/model/parser/Base.ts +107 -0
- package/src/model/parser/DeploymentModelParser.ts +192 -0
- package/src/model/parser/DeploymentViewParser.ts +116 -0
- package/src/model/parser/FqnRefParser.ts +118 -0
- package/src/model/parser/GlobalsParser.ts +96 -0
- package/src/model/parser/ModelParser.ts +141 -0
- package/src/model/parser/PredicatesParser.ts +291 -0
- package/src/model/parser/SpecificationParser.ts +133 -0
- package/src/model/parser/ViewsParser.ts +428 -0
- package/src/module.ts +71 -25
- package/src/protocol.ts +29 -4
- package/src/references/scope-computation.ts +35 -35
- package/src/references/scope-provider.ts +13 -7
- package/src/utils/{deploymentRef.ts → fqnRef.ts} +27 -2
- package/src/validation/_shared.ts +0 -1
- package/src/validation/deployment-checks.ts +49 -62
- package/src/validation/dynamic-view-rule.ts +5 -4
- package/src/validation/dynamic-view-step.ts +23 -26
- package/src/validation/index.ts +100 -9
- package/src/validation/property-checks.ts +11 -10
- package/src/validation/specification.ts +38 -38
- package/src/validation/view-predicates/element-with.ts +6 -5
- package/src/validation/view-predicates/expanded-element.ts +6 -5
- package/src/validation/view-predicates/expression-v2.ts +101 -0
- package/src/validation/view-predicates/incoming.ts +6 -5
- package/src/validation/view-predicates/index.ts +1 -1
- package/src/validation/view-predicates/outgoing.ts +6 -5
- package/src/validation/view-predicates/relation-with.ts +6 -5
- package/src/validation/view.ts +5 -5
- package/src/view-utils/assignNavigateTo.ts +1 -1
- package/src/view-utils/manual-layout.ts +25 -0
- package/src/views/configurable-layouter.ts +65 -0
- package/src/views/index.ts +1 -0
- package/src/views/likec4-views.ts +139 -0
- package/dist/browser.cjs +0 -25
- package/dist/browser.d.cts +0 -23
- package/dist/browser.d.mts +0 -23
- package/dist/browser.mjs +0 -20
- package/dist/index.cjs +0 -53
- package/dist/index.d.cts +0 -34
- package/dist/index.d.mts +0 -34
- package/dist/index.mjs +0 -46
- package/dist/likec4lib.cjs +0 -1546
- package/dist/likec4lib.d.cts +0 -6
- package/dist/likec4lib.d.mts +0 -6
- package/dist/protocol.cjs +0 -25
- package/dist/protocol.d.cts +0 -48
- package/dist/protocol.d.mts +0 -48
- package/dist/protocol.mjs +0 -17
- package/dist/shared/language-server.CO_nmHiL.cjs +0 -7689
- package/dist/shared/language-server.Da6ey08o.d.cts +0 -1619
- package/dist/shared/language-server.De7S3e5Z.d.ts +0 -1619
- package/dist/shared/language-server.Dj4iDjtB.d.mts +0 -1619
- package/dist/shared/language-server.oO_9JoAG.mjs +0 -7666
- package/src/validation/view-predicates/deployments.ts +0 -56
package/dist/likec4lib.d.cts
DELETED
package/dist/likec4lib.d.mts
DELETED
package/dist/protocol.cjs
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const vscodeJsonrpc = require('vscode-jsonrpc');
|
|
4
|
-
|
|
5
|
-
const onDidChangeModel = new vscodeJsonrpc.NotificationType("likec4/onDidChangeModel");
|
|
6
|
-
const fetchModel = new vscodeJsonrpc.RequestType0(
|
|
7
|
-
"likec4/fetchModel"
|
|
8
|
-
);
|
|
9
|
-
const fetchComputedModel = new vscodeJsonrpc.RequestType(
|
|
10
|
-
"likec4/fetchComputedModel"
|
|
11
|
-
);
|
|
12
|
-
const computeView = new vscodeJsonrpc.RequestType(
|
|
13
|
-
"likec4/computeView"
|
|
14
|
-
);
|
|
15
|
-
const buildDocuments = new vscodeJsonrpc.RequestType("likec4/build");
|
|
16
|
-
const locate = new vscodeJsonrpc.RequestType("likec4/locate");
|
|
17
|
-
const changeView = new vscodeJsonrpc.RequestType("likec4/change-view");
|
|
18
|
-
|
|
19
|
-
exports.buildDocuments = buildDocuments;
|
|
20
|
-
exports.changeView = changeView;
|
|
21
|
-
exports.computeView = computeView;
|
|
22
|
-
exports.fetchComputedModel = fetchComputedModel;
|
|
23
|
-
exports.fetchModel = fetchModel;
|
|
24
|
-
exports.locate = locate;
|
|
25
|
-
exports.onDidChangeModel = onDidChangeModel;
|
package/dist/protocol.d.cts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { ParsedLikeC4Model, ComputedLikeC4Model, ViewId, ComputedView, Fqn, RelationId, ViewChange } from '@likec4/core';
|
|
2
|
-
import { NotificationType, RequestType0, RequestType } from 'vscode-jsonrpc';
|
|
3
|
-
import { DocumentUri, Location } from 'vscode-languageserver-types';
|
|
4
|
-
|
|
5
|
-
declare const onDidChangeModel: NotificationType<string>;
|
|
6
|
-
type OnDidChangeModelNotification = typeof onDidChangeModel;
|
|
7
|
-
declare const fetchModel: RequestType0<{
|
|
8
|
-
model: ParsedLikeC4Model | null;
|
|
9
|
-
}, void>;
|
|
10
|
-
type FetchModelRequest = typeof fetchModel;
|
|
11
|
-
declare const fetchComputedModel: RequestType<{
|
|
12
|
-
cleanCaches?: boolean | undefined;
|
|
13
|
-
}, {
|
|
14
|
-
model: ComputedLikeC4Model | null;
|
|
15
|
-
}, void>;
|
|
16
|
-
type FetchComputedModelRequest = typeof fetchComputedModel;
|
|
17
|
-
declare const computeView: RequestType<{
|
|
18
|
-
viewId: ViewId;
|
|
19
|
-
}, {
|
|
20
|
-
view: ComputedView | null;
|
|
21
|
-
}, void>;
|
|
22
|
-
type ComputeViewRequest = typeof computeView;
|
|
23
|
-
interface BuildDocumentsParams {
|
|
24
|
-
docs: DocumentUri[];
|
|
25
|
-
}
|
|
26
|
-
declare const buildDocuments: RequestType<BuildDocumentsParams, void, void>;
|
|
27
|
-
type BuildDocumentsRequest = typeof buildDocuments;
|
|
28
|
-
type LocateParams = {
|
|
29
|
-
element: Fqn;
|
|
30
|
-
property?: string;
|
|
31
|
-
} | {
|
|
32
|
-
relation: RelationId;
|
|
33
|
-
} | {
|
|
34
|
-
deployment: Fqn;
|
|
35
|
-
property?: string;
|
|
36
|
-
} | {
|
|
37
|
-
view: ViewId;
|
|
38
|
-
};
|
|
39
|
-
declare const locate: RequestType<LocateParams, Location, void>;
|
|
40
|
-
type LocateRequest = typeof locate;
|
|
41
|
-
interface ChangeViewRequestParams {
|
|
42
|
-
viewId: ViewId;
|
|
43
|
-
change: ViewChange;
|
|
44
|
-
}
|
|
45
|
-
declare const changeView: RequestType<ChangeViewRequestParams, Location, void>;
|
|
46
|
-
type ChangeViewRequest = typeof changeView;
|
|
47
|
-
|
|
48
|
-
export { type BuildDocumentsParams, type BuildDocumentsRequest, type ChangeViewRequest, type ChangeViewRequestParams, type ComputeViewRequest, type FetchComputedModelRequest, type FetchModelRequest, type LocateParams, type LocateRequest, type OnDidChangeModelNotification, buildDocuments, changeView, computeView, fetchComputedModel, fetchModel, locate, onDidChangeModel };
|
package/dist/protocol.d.mts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { ParsedLikeC4Model, ComputedLikeC4Model, ViewId, ComputedView, Fqn, RelationId, ViewChange } from '@likec4/core';
|
|
2
|
-
import { NotificationType, RequestType0, RequestType } from 'vscode-jsonrpc';
|
|
3
|
-
import { DocumentUri, Location } from 'vscode-languageserver-types';
|
|
4
|
-
|
|
5
|
-
declare const onDidChangeModel: NotificationType<string>;
|
|
6
|
-
type OnDidChangeModelNotification = typeof onDidChangeModel;
|
|
7
|
-
declare const fetchModel: RequestType0<{
|
|
8
|
-
model: ParsedLikeC4Model | null;
|
|
9
|
-
}, void>;
|
|
10
|
-
type FetchModelRequest = typeof fetchModel;
|
|
11
|
-
declare const fetchComputedModel: RequestType<{
|
|
12
|
-
cleanCaches?: boolean | undefined;
|
|
13
|
-
}, {
|
|
14
|
-
model: ComputedLikeC4Model | null;
|
|
15
|
-
}, void>;
|
|
16
|
-
type FetchComputedModelRequest = typeof fetchComputedModel;
|
|
17
|
-
declare const computeView: RequestType<{
|
|
18
|
-
viewId: ViewId;
|
|
19
|
-
}, {
|
|
20
|
-
view: ComputedView | null;
|
|
21
|
-
}, void>;
|
|
22
|
-
type ComputeViewRequest = typeof computeView;
|
|
23
|
-
interface BuildDocumentsParams {
|
|
24
|
-
docs: DocumentUri[];
|
|
25
|
-
}
|
|
26
|
-
declare const buildDocuments: RequestType<BuildDocumentsParams, void, void>;
|
|
27
|
-
type BuildDocumentsRequest = typeof buildDocuments;
|
|
28
|
-
type LocateParams = {
|
|
29
|
-
element: Fqn;
|
|
30
|
-
property?: string;
|
|
31
|
-
} | {
|
|
32
|
-
relation: RelationId;
|
|
33
|
-
} | {
|
|
34
|
-
deployment: Fqn;
|
|
35
|
-
property?: string;
|
|
36
|
-
} | {
|
|
37
|
-
view: ViewId;
|
|
38
|
-
};
|
|
39
|
-
declare const locate: RequestType<LocateParams, Location, void>;
|
|
40
|
-
type LocateRequest = typeof locate;
|
|
41
|
-
interface ChangeViewRequestParams {
|
|
42
|
-
viewId: ViewId;
|
|
43
|
-
change: ViewChange;
|
|
44
|
-
}
|
|
45
|
-
declare const changeView: RequestType<ChangeViewRequestParams, Location, void>;
|
|
46
|
-
type ChangeViewRequest = typeof changeView;
|
|
47
|
-
|
|
48
|
-
export { type BuildDocumentsParams, type BuildDocumentsRequest, type ChangeViewRequest, type ChangeViewRequestParams, type ComputeViewRequest, type FetchComputedModelRequest, type FetchModelRequest, type LocateParams, type LocateRequest, type OnDidChangeModelNotification, buildDocuments, changeView, computeView, fetchComputedModel, fetchModel, locate, onDidChangeModel };
|
package/dist/protocol.mjs
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { NotificationType, RequestType0, RequestType } from 'vscode-jsonrpc';
|
|
2
|
-
|
|
3
|
-
const onDidChangeModel = new NotificationType("likec4/onDidChangeModel");
|
|
4
|
-
const fetchModel = new RequestType0(
|
|
5
|
-
"likec4/fetchModel"
|
|
6
|
-
);
|
|
7
|
-
const fetchComputedModel = new RequestType(
|
|
8
|
-
"likec4/fetchComputedModel"
|
|
9
|
-
);
|
|
10
|
-
const computeView = new RequestType(
|
|
11
|
-
"likec4/computeView"
|
|
12
|
-
);
|
|
13
|
-
const buildDocuments = new RequestType("likec4/build");
|
|
14
|
-
const locate = new RequestType("likec4/locate");
|
|
15
|
-
const changeView = new RequestType("likec4/change-view");
|
|
16
|
-
|
|
17
|
-
export { buildDocuments, changeView, computeView, fetchComputedModel, fetchModel, locate, onDidChangeModel };
|