@likec4/language-server 1.58.0 → 1.59.0
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/browser/index.d.mts +3 -3
- package/dist/browser/index.mjs +32 -1
- package/dist/browser/worker.mjs +40 -1
- package/dist/chunks/LikeC4FileSystem.mjs +537 -0
- package/dist/{_chunks → chunks}/icons.d.mts +1 -0
- package/dist/chunks/icons.mjs +5219 -0
- package/dist/{_chunks → chunks}/module.d.mts +192 -182
- package/dist/chunks/module.mjs +8196 -0
- package/dist/{_chunks → chunks}/protocol.d.mts +12 -11
- package/dist/chunks/rolldown-runtime.mjs +9 -0
- package/dist/chunks/utils.mjs +2317 -0
- package/dist/filesystem/index.d.mts +2 -2
- package/dist/filesystem/index.mjs +4 -1
- package/dist/icons.d.mts +1 -1
- package/dist/icons.mjs +3 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +110 -1
- package/dist/likec4lib.d.mts +2 -2
- package/dist/likec4lib.mjs +15 -1
- package/dist/module.d.mts +1 -1
- package/dist/module.mjs +4 -1
- package/dist/protocol.d.mts +1 -1
- package/dist/protocol.mjs +79 -1
- package/package.json +20 -20
- package/src/test/index.ts +1 -0
- package/src/test/testServices.ts +40 -1
- package/src/test/vitestFixture.ts +58 -0
- package/dist/_chunks/LikeC4FileSystem.mjs +0 -3
- package/dist/_chunks/common-exports.mjs +0 -1
- package/dist/_chunks/icons.mjs +0 -2
- package/dist/_chunks/module.mjs +0 -49
- package/dist/_chunks/utils.mjs +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { t as __name } from "./rolldown-runtime.mjs";
|
|
1
2
|
import { ColorLiteral, ComputedLikeC4ModelData, DeploymentFqn, DiagramView, Fqn, LayoutedLikeC4ModelData, LayoutedProjectsView, NonEmptyArray, ProjectId, RelationId, ViewChange, ViewId } from "@likec4/core";
|
|
2
|
-
import { DiagnosticSeverity, DocumentUri, Location, Position, Range, URI } from "vscode-languageserver-types";
|
|
3
3
|
import { LikeC4ProjectJsonConfig } from "@likec4/config";
|
|
4
|
+
import { DiagnosticSeverity, DocumentUri, Location, Position, Range, URI } from "vscode-languageserver-types";
|
|
4
5
|
import { NotificationType, NotificationType0, RequestType, RequestType0 } from "vscode-jsonrpc";
|
|
5
6
|
import { AILayoutHints } from "@likec4/layouts/ai";
|
|
6
|
-
|
|
7
7
|
//#region src/protocol.d.ts
|
|
8
8
|
declare namespace DidChangeModelNotification {
|
|
9
9
|
type Params = {
|
|
@@ -102,7 +102,8 @@ declare namespace LayoutView {
|
|
|
102
102
|
type Params = {
|
|
103
103
|
viewId: ViewId;
|
|
104
104
|
projectId?: string | undefined;
|
|
105
|
-
layoutType?: 'auto' | 'manual' | undefined;
|
|
105
|
+
layoutType?: 'auto' | 'manual' | undefined;
|
|
106
|
+
/** Optional AI-generated layout hints to enhance the layout */
|
|
106
107
|
hints?: AILayoutHints | undefined;
|
|
107
108
|
};
|
|
108
109
|
type Res = {
|
|
@@ -208,34 +209,34 @@ declare namespace Locate {
|
|
|
208
209
|
element: Fqn;
|
|
209
210
|
projectId?: string | undefined;
|
|
210
211
|
property?: string;
|
|
211
|
-
}
|
|
212
|
+
} |
|
|
212
213
|
/**
|
|
213
214
|
* Locate a relation by its id
|
|
214
215
|
*/
|
|
215
|
-
|
|
216
|
+
{
|
|
216
217
|
projectId?: string | undefined;
|
|
217
218
|
relation: RelationId;
|
|
218
|
-
}
|
|
219
|
+
} |
|
|
219
220
|
/**
|
|
220
221
|
* Locate a deployment by its fqn
|
|
221
222
|
*/
|
|
222
|
-
|
|
223
|
+
{
|
|
223
224
|
deployment: DeploymentFqn;
|
|
224
225
|
projectId?: string | undefined;
|
|
225
226
|
property?: string;
|
|
226
|
-
}
|
|
227
|
+
} |
|
|
227
228
|
/**
|
|
228
229
|
* Locate a step in a dynamic view by its astPath
|
|
229
230
|
*/
|
|
230
|
-
|
|
231
|
+
{
|
|
231
232
|
view: ViewId;
|
|
232
233
|
astPath: string;
|
|
233
234
|
projectId?: string | undefined;
|
|
234
|
-
}
|
|
235
|
+
} |
|
|
235
236
|
/**
|
|
236
237
|
* Locate a view by its id
|
|
237
238
|
*/
|
|
238
|
-
|
|
239
|
+
{
|
|
239
240
|
view: ViewId;
|
|
240
241
|
projectId?: string | undefined;
|
|
241
242
|
};
|