@hydranium/core 1.0.0-next.30 → 1.0.0-next.32
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/lib/documents/hydranium-text-documents.d.ts.map +1 -1
- package/lib/documents/hydranium-text-documents.js +12 -1
- package/lib/documents/hydranium-text-documents.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/langium/ast-extension/ast-node-builder.d.ts +32 -9
- package/lib/langium/ast-extension/ast-node-builder.d.ts.map +1 -1
- package/lib/langium/ast-extension/ast-node-builder.js +60 -22
- package/lib/langium/ast-extension/ast-node-builder.js.map +1 -1
- package/lib/langium/bootstrap.d.ts.map +1 -1
- package/lib/langium/bootstrap.js +8 -1
- package/lib/langium/bootstrap.js.map +1 -1
- package/lib/langium/document-builder/document-builder.d.ts +33 -1
- package/lib/langium/document-builder/document-builder.d.ts.map +1 -1
- package/lib/langium/document-builder/document-builder.js +68 -2
- package/lib/langium/document-builder/document-builder.js.map +1 -1
- package/lib/langium/model-service/model-service.d.ts +26 -0
- package/lib/langium/model-service/model-service.d.ts.map +1 -1
- package/lib/langium/model-service/model-service.js +31 -3
- package/lib/langium/model-service/model-service.js.map +1 -1
- package/lib/langium/module.d.ts +20 -0
- package/lib/langium/module.d.ts.map +1 -1
- package/lib/langium/module.js +4 -0
- package/lib/langium/module.js.map +1 -1
- package/lib/langium/naming/name-provider.d.ts +10 -0
- package/lib/langium/naming/name-provider.d.ts.map +1 -1
- package/lib/langium/naming/name-provider.js.map +1 -1
- package/lib/langium/naming/name-separator-validation.d.ts +23 -1
- package/lib/langium/naming/name-separator-validation.d.ts.map +1 -1
- package/lib/langium/naming/name-separator-validation.js +22 -0
- package/lib/langium/naming/name-separator-validation.js.map +1 -1
- package/lib/langium/scope/hydranium-scope-provider.d.ts +10 -6
- package/lib/langium/scope/hydranium-scope-provider.d.ts.map +1 -1
- package/lib/langium/scope/hydranium-scope-provider.js +15 -11
- package/lib/langium/scope/hydranium-scope-provider.js.map +1 -1
- package/lib/langium/shared-services.d.ts +13 -2
- package/lib/langium/shared-services.d.ts.map +1 -1
- package/lib/langium/shared-services.js.map +1 -1
- package/lib/langium/validation/document-validator.d.ts +66 -1
- package/lib/langium/validation/document-validator.d.ts.map +1 -1
- package/lib/langium/validation/document-validator.js +101 -1
- package/lib/langium/validation/document-validator.js.map +1 -1
- package/lib/langium/workspace/hydranium-workspace-manager.d.ts +11 -1
- package/lib/langium/workspace/hydranium-workspace-manager.d.ts.map +1 -1
- package/lib/langium/workspace/hydranium-workspace-manager.js +15 -0
- package/lib/langium/workspace/hydranium-workspace-manager.js.map +1 -1
- package/lib/langium/workspace/initialize-workspace.d.ts +22 -2
- package/lib/langium/workspace/initialize-workspace.d.ts.map +1 -1
- package/lib/langium/workspace/initialize-workspace.js +13 -5
- package/lib/langium/workspace/initialize-workspace.js.map +1 -1
- package/lib/locale/index.d.ts +10 -0
- package/lib/locale/index.d.ts.map +1 -0
- package/lib/locale/index.js +10 -0
- package/lib/locale/index.js.map +1 -0
- package/lib/locale/server-locale.d.ts +49 -0
- package/lib/locale/server-locale.d.ts.map +1 -0
- package/lib/locale/server-locale.js +51 -0
- package/lib/locale/server-locale.js.map +1 -0
- package/lib/messages/carriers.d.ts +7 -6
- package/lib/messages/carriers.d.ts.map +1 -1
- package/lib/messages/carriers.js +8 -7
- package/lib/messages/carriers.js.map +1 -1
- package/lib/messages/index.d.ts +3 -0
- package/lib/messages/index.d.ts.map +1 -1
- package/lib/messages/index.js +3 -0
- package/lib/messages/index.js.map +1 -1
- package/lib/messages/renderer.d.ts +117 -0
- package/lib/messages/renderer.d.ts.map +1 -0
- package/lib/messages/renderer.js +159 -0
- package/lib/messages/renderer.js.map +1 -0
- package/lib/testing/fake-document.d.ts +14 -3
- package/lib/testing/fake-document.d.ts.map +1 -1
- package/lib/testing/fake-document.js +18 -3
- package/lib/testing/fake-document.js.map +1 -1
- package/lib/testing/make-noop-shared-services.d.ts +14 -0
- package/lib/testing/make-noop-shared-services.d.ts.map +1 -1
- package/lib/testing/make-noop-shared-services.js +28 -2
- package/lib/testing/make-noop-shared-services.js.map +1 -1
- package/lib/testing/make-test-services.d.ts +27 -0
- package/lib/testing/make-test-services.d.ts.map +1 -1
- package/lib/testing/make-test-services.js +17 -1
- package/lib/testing/make-test-services.js.map +1 -1
- package/package.json +5 -5
- package/src/documents/hydranium-text-documents.ts +12 -1
- package/src/index.ts +1 -0
- package/src/langium/ast-extension/ast-node-builder.ts +66 -22
- package/src/langium/bootstrap.ts +8 -1
- package/src/langium/document-builder/document-builder.ts +70 -2
- package/src/langium/model-service/model-service.ts +33 -2
- package/src/langium/module.ts +22 -0
- package/src/langium/naming/name-provider.ts +10 -0
- package/src/langium/naming/name-separator-validation.ts +25 -3
- package/src/langium/scope/hydranium-scope-provider.ts +15 -11
- package/src/langium/shared-services.ts +13 -2
- package/src/langium/validation/document-validator.ts +117 -1
- package/src/langium/workspace/hydranium-workspace-manager.ts +18 -1
- package/src/langium/workspace/initialize-workspace.ts +34 -5
- package/src/locale/index.ts +10 -0
- package/src/locale/server-locale.ts +61 -0
- package/src/messages/carriers.ts +8 -8
- package/src/messages/index.ts +3 -0
- package/src/messages/renderer.ts +184 -0
- package/src/testing/fake-document.ts +22 -4
- package/src/testing/make-noop-shared-services.ts +50 -2
- package/src/testing/make-test-services.ts +43 -1
|
@@ -141,6 +141,8 @@ export class HydraniumWorkspaceManager extends DefaultWorkspaceManager {
|
|
|
141
141
|
*/
|
|
142
142
|
workspaceInitialized = this.workspaceInitializedDeferred.promise;
|
|
143
143
|
uriPolicy;
|
|
144
|
+
/** Handed the client's locale at init; read by whoever renders in it. */
|
|
145
|
+
serverLocale;
|
|
144
146
|
writableFileSystemProvider;
|
|
145
147
|
additionalDocuments;
|
|
146
148
|
/** Registry consulted by {@link warnIfUnroutable} to check a seeded document routes. */
|
|
@@ -150,6 +152,7 @@ export class HydraniumWorkspaceManager extends DefaultWorkspaceManager {
|
|
|
150
152
|
this.projectManager = services.workspace.ProjectManager;
|
|
151
153
|
this.projectManager.onProjectsChanged(event => this.onProjectsChanged(event));
|
|
152
154
|
this.uriPolicy = services.workspace.DocumentUriPolicy;
|
|
155
|
+
this.serverLocale = services.ServerLocale;
|
|
153
156
|
this.writableFileSystemProvider = services.workspace.FileSystemProvider;
|
|
154
157
|
this.additionalDocuments = services.additionalDocuments;
|
|
155
158
|
this.languageRegistry = services.ServiceRegistry;
|
|
@@ -325,6 +328,18 @@ export class HydraniumWorkspaceManager extends DefaultWorkspaceManager {
|
|
|
325
328
|
resolveLogFilePlaceholder('workspace', toLogFileWorkspaceToken(first.uri));
|
|
326
329
|
}
|
|
327
330
|
}
|
|
331
|
+
/**
|
|
332
|
+
* Forward the locale the client declared, then Langium's own read of the
|
|
333
|
+
* params. `DefaultWorkspaceManager.initialize` reads `workspaceFolders`
|
|
334
|
+
* alone, so `params.locale` would otherwise be discarded — and this is the
|
|
335
|
+
* only place it arrives, which the headless init seams route through too.
|
|
336
|
+
*/
|
|
337
|
+
initialize(params) {
|
|
338
|
+
if (params.locale) {
|
|
339
|
+
this.serverLocale.accept(params.locale);
|
|
340
|
+
}
|
|
341
|
+
super.initialize(params);
|
|
342
|
+
}
|
|
328
343
|
/**
|
|
329
344
|
* Override of Langium's workspace setup to resolve / reject
|
|
330
345
|
* {@link workspaceInitializedDeferred} once setup completes. Adopters with
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hydranium-workspace-manager.js","sourceRoot":"","sources":["../../../src/langium/workspace/hydranium-workspace-manager.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,EAAE,QAAQ,EAA4B,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,aAAa,EAAwB,QAAQ,EAAY,MAAM,oBAAoB,CAAC;AAGtH,OAAO,EAAuB,yBAAyB,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"hydranium-workspace-manager.js","sourceRoot":"","sources":["../../../src/langium/workspace/hydranium-workspace-manager.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,EAAE,QAAQ,EAA4B,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,aAAa,EAAwB,QAAQ,EAAY,MAAM,oBAAoB,CAAC;AAGtH,OAAO,EAAuB,yBAAyB,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAMnH,OAAO,EAA0B,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAC1F,OAAO,EAAuC,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AACxH,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D;;;;GAIG;AACH,IAAI,sCAAsC,GAAG,KAAK,CAAC;AAEnD;;;;;;GAMG;AACH,IAAI,mCAAuD,CAAC;AAE5D;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,+BAA+B,CAAC,MAAe,EAAE,MAAc;IAC5E,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,4BAA4B,EAAE,CAAC;QACjF,OAAO;IACV,CAAC;IACD,MAAM,CAAC,KAAK,CAAC,+BAA+B,GAAG,CAAC,MAAM,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACjI,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,oCAAoC,CAAC,MAAc;IAChE,mCAAmC,GAAG,MAAM,CAAC;IAC7C,IAAI,sCAAsC,EAAE,CAAC;QAC1C,OAAO;IACV,CAAC;IACD,sCAAsC,GAAG,IAAI,CAAC;IAC9C,4EAA4E;IA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C,MAAM,CAAC,KAAK,CAAC,CAAC;YAChD,MAAM,KAAK,CAAC;QACf,CAAC;IACJ,CAAC;IAED;;;;;;;;;OASG;IACO,iBAAiB,CAAC,KAAyB;QAClD,KAAK,MAAM,GAAG,IAAI,KAAK,CAAC,iBAAiB,EAAE,CAAC;YACzC,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;YACxD,IAAI,QAAQ,EAAE,CAAC;gBACZ,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC,QAAQ,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;YACtE,CAAC;QACJ,CAAC;IACJ,CAAC;IAWD,cAAc,CAAC,GAAiB,EAAE,SAAS,GAAG,IAAI,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG;QAC1E,OAAO,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;IAC9G,CAAC;CACH"}
|
|
@@ -10,6 +10,24 @@ import { URI } from '@hydranium/langium';
|
|
|
10
10
|
import type { ServerSharedServicesMinimal } from '../shared-services.js';
|
|
11
11
|
/** A workspace folder root accepted by the headless init seams: a filesystem path or a {@link URI}. */
|
|
12
12
|
export type WorkspaceFolderInput = string | URI;
|
|
13
|
+
/**
|
|
14
|
+
* Options for the headless init seams.
|
|
15
|
+
*
|
|
16
|
+
* **Optional, and the parameter is optional too**, so that no existing caller
|
|
17
|
+
* has to change to gain a field it does not set.
|
|
18
|
+
*/
|
|
19
|
+
export interface ProgrammaticInitOptions {
|
|
20
|
+
/**
|
|
21
|
+
* The locale to render user-facing server messages in — the headless
|
|
22
|
+
* equivalent of LSP `initialize`'s `locale`, for a head with no LSP
|
|
23
|
+
* connection (`startStdioServer`, the CLI subcommands, a test harness).
|
|
24
|
+
*
|
|
25
|
+
* Omitted means no locale, which the default renderer resolves as the
|
|
26
|
+
* framework's English. That is the correct answer for a headless tool: it
|
|
27
|
+
* has no reading user to have a language.
|
|
28
|
+
*/
|
|
29
|
+
readonly locale?: string;
|
|
30
|
+
}
|
|
13
31
|
/**
|
|
14
32
|
* Initialize a hydranium workspace **without an LSP `initialize` request** —
|
|
15
33
|
* the headless counterpart to the editor entry. Drives the workspace manager's
|
|
@@ -37,8 +55,9 @@ export type WorkspaceFolderInput = string | URI;
|
|
|
37
55
|
*
|
|
38
56
|
* @param services the shared services tree the workspace manager lives on
|
|
39
57
|
* @param folders one or more workspace roots (filesystem paths or URIs)
|
|
58
|
+
* @param options the message locale, when the caller has one
|
|
40
59
|
*/
|
|
41
|
-
export declare function initializeWorkspaceProgrammatically(services: ServerSharedServicesMinimal, folders: WorkspaceFolderInput | ReadonlyArray<WorkspaceFolderInput
|
|
60
|
+
export declare function initializeWorkspaceProgrammatically(services: ServerSharedServicesMinimal, folders: WorkspaceFolderInput | ReadonlyArray<WorkspaceFolderInput>, options?: ProgrammaticInitOptions): Promise<void>;
|
|
42
61
|
/**
|
|
43
62
|
* {@link initializeWorkspaceProgrammatically} **and then build every registered
|
|
44
63
|
* document to `Validated`** — the "fully-built workspace" convenience for
|
|
@@ -58,6 +77,7 @@ export declare function initializeWorkspaceProgrammatically(services: ServerShar
|
|
|
58
77
|
*
|
|
59
78
|
* @param services the shared services tree the workspace manager lives on
|
|
60
79
|
* @param folders one or more workspace roots (filesystem paths or URIs)
|
|
80
|
+
* @param options the message locale, when the caller has one
|
|
61
81
|
*/
|
|
62
|
-
export declare function buildWorkspaceProgrammatically(services: ServerSharedServicesMinimal, folders: WorkspaceFolderInput | ReadonlyArray<WorkspaceFolderInput
|
|
82
|
+
export declare function buildWorkspaceProgrammatically(services: ServerSharedServicesMinimal, folders: WorkspaceFolderInput | ReadonlyArray<WorkspaceFolderInput>, options?: ProgrammaticInitOptions): Promise<void>;
|
|
63
83
|
//# sourceMappingURL=initialize-workspace.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initialize-workspace.d.ts","sourceRoot":"","sources":["../../../src/langium/workspace/initialize-workspace.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,EAAY,GAAG,EAAE,MAAM,oBAAoB,CAAC;AAMnD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AAEzE,uGAAuG;AACvG,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"initialize-workspace.d.ts","sourceRoot":"","sources":["../../../src/langium/workspace/initialize-workspace.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,EAAY,GAAG,EAAE,MAAM,oBAAoB,CAAC;AAMnD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AAEzE,uGAAuG;AACvG,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,GAAG,CAAC;AAEhD;;;;;GAKG;AACH,MAAM,WAAW,uBAAuB;IACrC;;;;;;;;OAQG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC3B;AAeD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAsB,mCAAmC,CACtD,QAAQ,EAAE,2BAA2B,EACrC,OAAO,EAAE,oBAAoB,GAAG,aAAa,CAAC,oBAAoB,CAAC,EACnE,OAAO,GAAE,uBAA4B,GACrC,OAAO,CAAC,IAAI,CAAC,CAcf;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,8BAA8B,CACjD,QAAQ,EAAE,2BAA2B,EACrC,OAAO,EAAE,oBAAoB,GAAG,aAAa,CAAC,oBAAoB,CAAC,EACnE,OAAO,GAAE,uBAA4B,GACrC,OAAO,CAAC,IAAI,CAAC,CAIf"}
|
|
@@ -50,14 +50,21 @@ function toWorkspaceFolders(folders) {
|
|
|
50
50
|
*
|
|
51
51
|
* @param services the shared services tree the workspace manager lives on
|
|
52
52
|
* @param folders one or more workspace roots (filesystem paths or URIs)
|
|
53
|
+
* @param options the message locale, when the caller has one
|
|
53
54
|
*/
|
|
54
|
-
export async function initializeWorkspaceProgrammatically(services, folders) {
|
|
55
|
+
export async function initializeWorkspaceProgrammatically(services, folders, options = {}) {
|
|
55
56
|
const workspaceFolders = toWorkspaceFolders(folders);
|
|
56
57
|
const manager = services.workspace.WorkspaceManager;
|
|
57
|
-
// `
|
|
58
|
+
// `locale` goes through the synthesized params rather than a direct
|
|
59
|
+
// `acceptLocale` call, so this seam and a real LSP `initialize` reach the
|
|
60
|
+
// slot by the SAME path — an adopter overriding the capture in
|
|
61
|
+
// `HydraniumWorkspaceManager.initialize` is honoured headlessly too, which a
|
|
62
|
+
// second write site here would silently bypass.
|
|
63
|
+
//
|
|
64
|
+
// `initialize` records the folders (DefaultWorkspaceManager reads only that
|
|
58
65
|
// field); `initialized` runs `mutex.write(initializeWorkspace)` and resolves
|
|
59
66
|
// once discovery + the init build settle, so awaiting it is the ready gate.
|
|
60
|
-
manager.initialize({ workspaceFolders });
|
|
67
|
+
manager.initialize({ workspaceFolders, locale: options.locale });
|
|
61
68
|
await manager.initialized({});
|
|
62
69
|
}
|
|
63
70
|
/**
|
|
@@ -79,9 +86,10 @@ export async function initializeWorkspaceProgrammatically(services, folders) {
|
|
|
79
86
|
*
|
|
80
87
|
* @param services the shared services tree the workspace manager lives on
|
|
81
88
|
* @param folders one or more workspace roots (filesystem paths or URIs)
|
|
89
|
+
* @param options the message locale, when the caller has one
|
|
82
90
|
*/
|
|
83
|
-
export async function buildWorkspaceProgrammatically(services, folders) {
|
|
84
|
-
await initializeWorkspaceProgrammatically(services, folders);
|
|
91
|
+
export async function buildWorkspaceProgrammatically(services, folders, options = {}) {
|
|
92
|
+
await initializeWorkspaceProgrammatically(services, folders, options);
|
|
85
93
|
const documents = services.workspace.LangiumDocuments.all.toArray();
|
|
86
94
|
await services.workspace.DocumentBuilder.build(documents, { validation: true });
|
|
87
95
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initialize-workspace.js","sourceRoot":"","sources":["../../../src/langium/workspace/initialize-workspace.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AACnD,8EAA8E;AAC9E,8EAA8E;AAC9E,8EAA8E;AAC9E,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"initialize-workspace.js","sourceRoot":"","sources":["../../../src/langium/workspace/initialize-workspace.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AACnD,8EAA8E;AAC9E,8EAA8E;AAC9E,8EAA8E;AAC9E,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AA0B7B;;;;GAIG;AACH,SAAS,kBAAkB,CAAC,OAAmE;IAC5F,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAA+B,CAAC,CAAC;IAClF,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;QACrB,MAAM,GAAG,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;QAC9E,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;IAChE,CAAC,CAAC,CAAC;AACN,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,CAAC,KAAK,UAAU,mCAAmC,CACtD,QAAqC,EACrC,OAAmE,EACnE,UAAmC,EAAE;IAErC,MAAM,gBAAgB,GAAG,kBAAkB,CAAC,OAAO,CAAC,CAAC;IACrD,MAAM,OAAO,GAAG,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC;IACpD,oEAAoE;IACpE,0EAA0E;IAC1E,+DAA+D;IAC/D,6EAA6E;IAC7E,gDAAgD;IAChD,EAAE;IACF,4EAA4E;IAC5E,6EAA6E;IAC7E,4EAA4E;IAC5E,OAAO,CAAC,UAAU,CAAC,EAAE,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAsB,CAAC,CAAC;IACrF,MAAM,OAAO,CAAC,WAAW,CAAC,EAAuB,CAAC,CAAC;AACtD,CAAC;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,KAAK,UAAU,8BAA8B,CACjD,QAAqC,EACrC,OAAmE,EACnE,UAAmC,EAAE;IAErC,MAAM,mCAAmC,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACtE,MAAM,SAAS,GAAG,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC;IACpE,MAAM,QAAQ,CAAC,SAAS,CAAC,eAAe,CAAC,KAAK,CAAC,SAAS,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;AACnF,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2026 CrossBreeze, EclipseSource and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the MIT License which is available in the project root.
|
|
6
|
+
*
|
|
7
|
+
* SPDX-License-Identifier: MIT
|
|
8
|
+
********************************************************************************/
|
|
9
|
+
export * from './server-locale.js';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/locale/index.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2026 CrossBreeze, EclipseSource and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the MIT License which is available in the project root.
|
|
6
|
+
*
|
|
7
|
+
* SPDX-License-Identifier: MIT
|
|
8
|
+
********************************************************************************/
|
|
9
|
+
export * from './server-locale.js';
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/locale/index.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2026 CrossBreeze, EclipseSource and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the MIT License which is available in the project root.
|
|
6
|
+
*
|
|
7
|
+
* SPDX-License-Identifier: MIT
|
|
8
|
+
********************************************************************************/
|
|
9
|
+
import type { Tracer } from '@hydranium/protocol';
|
|
10
|
+
import { type LogNameOptions } from '../langium/diagnostics/logger.js';
|
|
11
|
+
import type { ServerSharedServicesMinimal } from '../langium/shared-services.js';
|
|
12
|
+
/** Construction options for {@link ServerLocale}. */
|
|
13
|
+
export type ServerLocaleOptions = LogNameOptions;
|
|
14
|
+
/**
|
|
15
|
+
* The locale the server was handed at init, for whoever needs to render in the
|
|
16
|
+
* reading user's language. Held apart from the message renderer that reads it,
|
|
17
|
+
* so replacing the renderer cannot drop locale handling.
|
|
18
|
+
*
|
|
19
|
+
* A plain string in and out. A consumer that must react to a change rather than
|
|
20
|
+
* read the current value wraps this itself — nothing does today, and both real
|
|
21
|
+
* hosts respawn the server on a display-language switch.
|
|
22
|
+
*/
|
|
23
|
+
export declare class ServerLocale {
|
|
24
|
+
protected readonly tracer: Tracer;
|
|
25
|
+
protected current: string | undefined;
|
|
26
|
+
constructor(services: ServerSharedServicesMinimal, options?: ServerLocaleOptions);
|
|
27
|
+
/** The locale, or `undefined` when no init supplied one — which means the framework's English. */
|
|
28
|
+
get value(): string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Take the locale an init declared.
|
|
31
|
+
*
|
|
32
|
+
* **One locale per process, and the reason the OTHER heads need none of
|
|
33
|
+
* their own.** The data and GLSP heads publish a port over the LSP
|
|
34
|
+
* connection and are reached by forwarding a socket to it, so they are the
|
|
35
|
+
* same process as the LSP head that was handed this locale — there is no
|
|
36
|
+
* topology in which one of them serves a second frontend. The Theia backend
|
|
37
|
+
* is the case that would break it, and it holds no locale precisely because
|
|
38
|
+
* it serves every frontend at once; nothing there writes here.
|
|
39
|
+
*
|
|
40
|
+
* The framework accepts a locale and never sources one, and neither
|
|
41
|
+
* validates nor normalises the tag: rejecting an unfamiliar one would be
|
|
42
|
+
* selecting a locale.
|
|
43
|
+
*
|
|
44
|
+
* Override to ignore the argument, which is how a host pins a locale it
|
|
45
|
+
* already knows but has no LSP client to declare.
|
|
46
|
+
*/
|
|
47
|
+
accept(locale: string): void;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=server-locale.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server-locale.d.ts","sourceRoot":"","sources":["../../src/locale/server-locale.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAEjF,qDAAqD;AACrD,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC;AAEjD;;;;;;;;GAQG;AACH,qBAAa,YAAY;IACtB,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAClC,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;gBAE1B,QAAQ,EAAE,2BAA2B,EAAE,OAAO,GAAE,mBAAwB;IAIpF,kGAAkG;IAClG,IAAI,KAAK,IAAI,MAAM,GAAG,SAAS,CAE9B;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;CAI9B"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2026 CrossBreeze, EclipseSource and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the MIT License which is available in the project root.
|
|
6
|
+
*
|
|
7
|
+
* SPDX-License-Identifier: MIT
|
|
8
|
+
********************************************************************************/
|
|
9
|
+
/**
|
|
10
|
+
* The locale the server was handed at init, for whoever needs to render in the
|
|
11
|
+
* reading user's language. Held apart from the message renderer that reads it,
|
|
12
|
+
* so replacing the renderer cannot drop locale handling.
|
|
13
|
+
*
|
|
14
|
+
* A plain string in and out. A consumer that must react to a change rather than
|
|
15
|
+
* read the current value wraps this itself — nothing does today, and both real
|
|
16
|
+
* hosts respawn the server on a display-language switch.
|
|
17
|
+
*/
|
|
18
|
+
export class ServerLocale {
|
|
19
|
+
tracer;
|
|
20
|
+
current;
|
|
21
|
+
constructor(services, options = {}) {
|
|
22
|
+
this.tracer = services.Tracer.for(options.logName ?? 'ServerLocale').trace('instantiated');
|
|
23
|
+
}
|
|
24
|
+
/** The locale, or `undefined` when no init supplied one — which means the framework's English. */
|
|
25
|
+
get value() {
|
|
26
|
+
return this.current;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Take the locale an init declared.
|
|
30
|
+
*
|
|
31
|
+
* **One locale per process, and the reason the OTHER heads need none of
|
|
32
|
+
* their own.** The data and GLSP heads publish a port over the LSP
|
|
33
|
+
* connection and are reached by forwarding a socket to it, so they are the
|
|
34
|
+
* same process as the LSP head that was handed this locale — there is no
|
|
35
|
+
* topology in which one of them serves a second frontend. The Theia backend
|
|
36
|
+
* is the case that would break it, and it holds no locale precisely because
|
|
37
|
+
* it serves every frontend at once; nothing there writes here.
|
|
38
|
+
*
|
|
39
|
+
* The framework accepts a locale and never sources one, and neither
|
|
40
|
+
* validates nor normalises the tag: rejecting an unfamiliar one would be
|
|
41
|
+
* selecting a locale.
|
|
42
|
+
*
|
|
43
|
+
* Override to ignore the argument, which is how a host pins a locale it
|
|
44
|
+
* already knows but has no LSP client to declare.
|
|
45
|
+
*/
|
|
46
|
+
accept(locale) {
|
|
47
|
+
this.current = locale;
|
|
48
|
+
this.tracer.debug(`locale set to '${locale}'`);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=server-locale.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server-locale.js","sourceRoot":"","sources":["../../src/locale/server-locale.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AASlF;;;;;;;;GAQG;AACH,MAAM,OAAO,YAAY;IACH,MAAM,CAAS;IACxB,OAAO,CAAqB;IAEtC,YAAY,QAAqC,EAAE,UAA+B,EAAE;QACjF,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,IAAI,cAAc,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IAC9F,CAAC;IAED,kGAAkG;IAClG,IAAI,KAAK;QACN,OAAO,IAAI,CAAC,OAAO,CAAC;IACvB,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,MAAc;QAClB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,kBAAkB,MAAM,GAAG,CAAC,CAAC;IAClD,CAAC;CACH"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
********************************************************************************/
|
|
9
9
|
import { type MessageDefinition, type ParamsArg, type ResolvedMessage } from '@hydranium/protocol';
|
|
10
10
|
import type { AstNode, DiagnosticData, DiagnosticInfo, Properties, ValidationAcceptor } from '@hydranium/langium';
|
|
11
|
-
import
|
|
11
|
+
import { Diagnostic } from 'vscode-languageserver-protocol';
|
|
12
12
|
/**
|
|
13
13
|
* Raise a validation diagnostic from a declaration, so the call site never
|
|
14
14
|
* restates the code or the sentence.
|
|
@@ -35,12 +35,13 @@ export declare function acceptMessage<S extends string, N extends AstNode, P ext
|
|
|
35
35
|
data?: Partial<DiagnosticData>;
|
|
36
36
|
}, ...params: ParamsArg<S>): void;
|
|
37
37
|
/**
|
|
38
|
-
* Recover the identity from a published diagnostic, for a surface that
|
|
39
|
-
* diagnostics itself.
|
|
38
|
+
* Recover the identity from a published diagnostic, for a surface that
|
|
39
|
+
* identifies or renders diagnostics itself.
|
|
40
40
|
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
41
|
+
* `Diagnostic.message` is `string | MarkupContent` in LSP 3.17+, so the text
|
|
42
|
+
* comes from upstream's own `Diagnostic.getMessageString` rather than a
|
|
43
|
+
* hand-rolled narrowing — consuming the library in its style, and one fewer
|
|
44
|
+
* place restating the union.
|
|
44
45
|
*/
|
|
45
46
|
export declare function resolvedFromDiagnostic(diagnostic: Diagnostic): ResolvedMessage | undefined;
|
|
46
47
|
//# sourceMappingURL=carriers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carriers.d.ts","sourceRoot":"","sources":["../../src/messages/carriers.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,EAIJ,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6 +7,7 @@
|
|
|
7
7
|
* SPDX-License-Identifier: MIT
|
|
8
8
|
********************************************************************************/
|
|
9
9
|
import { hasMessageIdentity, messageData } from '@hydranium/protocol';
|
|
10
|
+
import { Diagnostic } from 'vscode-languageserver-protocol';
|
|
10
11
|
/**
|
|
11
12
|
* Raise a validation diagnostic from a declaration, so the call site never
|
|
12
13
|
* restates the code or the sentence.
|
|
@@ -34,18 +35,18 @@ export function acceptMessage(accept, severity, message, info, ...params) {
|
|
|
34
35
|
accept(severity, message.format(...params), { ...info, code: message.code, data });
|
|
35
36
|
}
|
|
36
37
|
/**
|
|
37
|
-
* Recover the identity from a published diagnostic, for a surface that
|
|
38
|
-
* diagnostics itself.
|
|
38
|
+
* Recover the identity from a published diagnostic, for a surface that
|
|
39
|
+
* identifies or renders diagnostics itself.
|
|
39
40
|
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
41
|
+
* `Diagnostic.message` is `string | MarkupContent` in LSP 3.17+, so the text
|
|
42
|
+
* comes from upstream's own `Diagnostic.getMessageString` rather than a
|
|
43
|
+
* hand-rolled narrowing — consuming the library in its style, and one fewer
|
|
44
|
+
* place restating the union.
|
|
43
45
|
*/
|
|
44
46
|
export function resolvedFromDiagnostic(diagnostic) {
|
|
45
47
|
if (!hasMessageIdentity(diagnostic.data)) {
|
|
46
48
|
return undefined;
|
|
47
49
|
}
|
|
48
|
-
|
|
49
|
-
return { ...diagnostic.data.hydranium, text };
|
|
50
|
+
return { ...diagnostic.data.hydranium, text: Diagnostic.getMessageString(diagnostic) };
|
|
50
51
|
}
|
|
51
52
|
//# sourceMappingURL=carriers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carriers.js","sourceRoot":"","sources":["../../src/messages/carriers.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,EACJ,kBAAkB,EAClB,WAAW,EAKb,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"carriers.js","sourceRoot":"","sources":["../../src/messages/carriers.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,EACJ,kBAAkB,EAClB,WAAW,EAKb,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,UAAU,aAAa,CAC1B,MAA0B,EAC1B,QAA+C,EAC/C,OAA6B,EAC7B,IAAsF,EACtF,GAAG,MAAoB;IAEvB,MAAM,IAAI,GAAmD,EAAE,GAAG,IAAI,CAAC,IAAI,EAAE,GAAG,WAAW,CAAC,OAAO,EAAE,GAAG,MAAM,CAAC,EAAE,CAAC;IAClH,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,EAAE,EAAE,GAAG,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;AACtF,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,sBAAsB,CAAC,UAAsB;IAC1D,IAAI,CAAC,kBAAkB,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QACxC,OAAO,SAAS,CAAC;IACpB,CAAC;IACD,OAAO,EAAE,GAAG,UAAU,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC,UAAU,CAAC,EAAE,CAAC;AAC1F,CAAC"}
|
package/lib/messages/index.d.ts
CHANGED
|
@@ -16,7 +16,10 @@
|
|
|
16
16
|
* code is the contract, and renaming one is a breaking change.
|
|
17
17
|
*/
|
|
18
18
|
export * from './carriers.js';
|
|
19
|
+
export * from './renderer.js';
|
|
20
|
+
export { MODEL_UPDATE_EDIT } from '../langium/model-service/model-service.js';
|
|
19
21
|
export { SEPARATOR_IN_NAME } from '../langium/naming/name-separator-validation.js';
|
|
22
|
+
export { UNRESOLVED_REFERENCE } from '../langium/validation/document-validator.js';
|
|
20
23
|
export { NO_LOADABLE_CONTENT } from '../langium/workspace/langium-documents.js';
|
|
21
24
|
export { NO_SUCH_FILE, NO_SUCH_PATH } from '../langium/workspace/in-memory-file-system-provider.js';
|
|
22
25
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/messages/index.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF;;;;;;;;GAQG;AAEH,cAAc,eAAe,CAAC;AAE9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AACnF,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,wDAAwD,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/messages/index.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF;;;;;;;;GAQG;AAEH,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAE9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AACnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,wDAAwD,CAAC"}
|
package/lib/messages/index.js
CHANGED
|
@@ -16,7 +16,10 @@
|
|
|
16
16
|
* code is the contract, and renaming one is a breaking change.
|
|
17
17
|
*/
|
|
18
18
|
export * from './carriers.js';
|
|
19
|
+
export * from './renderer.js';
|
|
20
|
+
export { MODEL_UPDATE_EDIT } from '../langium/model-service/model-service.js';
|
|
19
21
|
export { SEPARATOR_IN_NAME } from '../langium/naming/name-separator-validation.js';
|
|
22
|
+
export { UNRESOLVED_REFERENCE } from '../langium/validation/document-validator.js';
|
|
20
23
|
export { NO_LOADABLE_CONTENT } from '../langium/workspace/langium-documents.js';
|
|
21
24
|
export { NO_SUCH_FILE, NO_SUCH_PATH } from '../langium/workspace/in-memory-file-system-provider.js';
|
|
22
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/messages/index.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF;;;;;;;;GAQG;AAEH,cAAc,eAAe,CAAC;AAE9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AACnF,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,wDAAwD,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/messages/index.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF;;;;;;;;GAQG;AAEH,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAE9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AACnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,wDAAwD,CAAC"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2026 CrossBreeze, EclipseSource and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the MIT License which is available in the project root.
|
|
6
|
+
*
|
|
7
|
+
* SPDX-License-Identifier: MIT
|
|
8
|
+
********************************************************************************/
|
|
9
|
+
import { type MessageDefinition, type ParamsArg, type ResolvedMessage, type Tracer } from '@hydranium/protocol';
|
|
10
|
+
import { SimpleCache } from '@hydranium/langium';
|
|
11
|
+
import type { ResponseError } from 'vscode-jsonrpc';
|
|
12
|
+
import { Diagnostic } from 'vscode-languageserver-protocol';
|
|
13
|
+
import { type LogNameOptions } from '../langium/diagnostics/logger.js';
|
|
14
|
+
import type { ServerSharedServicesMinimal } from '../langium/shared-services.js';
|
|
15
|
+
import type { ServerLocale } from '../locale/server-locale.js';
|
|
16
|
+
/** Construction options for {@link ServerMessageRenderer}. */
|
|
17
|
+
export type ServerMessageRendererOptions = LogNameOptions;
|
|
18
|
+
/**
|
|
19
|
+
* Renders every user-facing message the server sends, in the locale the server
|
|
20
|
+
* was handed at init. The framework ships no catalogue, so its own behaviour is
|
|
21
|
+
* a pass-through.
|
|
22
|
+
*
|
|
23
|
+
* Adopters override {@link translationsFor}: the public render methods carry
|
|
24
|
+
* the no-throw contract, and the catalogue lookup they wrap is what can fail.
|
|
25
|
+
*
|
|
26
|
+
* Two render methods rather than one, because what is useful to an adopter is
|
|
27
|
+
* the carrier's structured fields and the two carriers have different ones. A
|
|
28
|
+
* single `render(text)` would force an adopter to match English prose, which
|
|
29
|
+
* breaks on the first Langium reword.
|
|
30
|
+
*/
|
|
31
|
+
export declare class ServerMessageRenderer {
|
|
32
|
+
protected readonly tracer: Tracer;
|
|
33
|
+
protected readonly serverLocale: ServerLocale;
|
|
34
|
+
/**
|
|
35
|
+
* {@link translationsFor}'s answer per locale, `undefined` answers included —
|
|
36
|
+
* a `SimpleCache` distinguishes "absent" from "cached as none", which matters
|
|
37
|
+
* because shipping no catalogue is the framework's own hot path.
|
|
38
|
+
*
|
|
39
|
+
* `SimpleCache` rather than Langium's `WorkspaceCache`: the eviction axis
|
|
40
|
+
* there is document change, and a catalogue does not depend on documents, so
|
|
41
|
+
* it would evict on every build AND put a `DocumentBuilder` dependency on a
|
|
42
|
+
* service the shared tier declares free of one. Nothing evicts this: the
|
|
43
|
+
* locale arrives once per process. A subclass whose catalogue can change
|
|
44
|
+
* clears it.
|
|
45
|
+
*/
|
|
46
|
+
protected readonly catalogues: SimpleCache<string | undefined, Record<string, string> | undefined>;
|
|
47
|
+
constructor(services: ServerSharedServicesMinimal, options?: ServerMessageRendererOptions);
|
|
48
|
+
/**
|
|
49
|
+
* The sentence to publish for `diagnostic`, replacing its current `message`.
|
|
50
|
+
* Sees lexer and parser errors too, which Langium pushes onto the document
|
|
51
|
+
* without routing them through `toDiagnostic`.
|
|
52
|
+
*
|
|
53
|
+
* **Must not throw**, which is why the guard is here and not at the call
|
|
54
|
+
* site: this runs inside the `Validated` phase, and Langium's
|
|
55
|
+
* `notifyDocumentPhase` rethrows anything that is not a cancellation — so an
|
|
56
|
+
* escaping error leaves the document AT `Validated` with the phase's
|
|
57
|
+
* listeners never run, and the client receives no diagnostics for that file.
|
|
58
|
+
* A subclass overriding this method takes that contract on itself.
|
|
59
|
+
*/
|
|
60
|
+
renderDiagnostic(diagnostic: Diagnostic): string;
|
|
61
|
+
/**
|
|
62
|
+
* The sentence to send for `error`, replacing its current `message`. Same
|
|
63
|
+
* no-throw contract as {@link renderDiagnostic}: an escaping error replaces a
|
|
64
|
+
* typed rejection the caller can handle with one it cannot.
|
|
65
|
+
*/
|
|
66
|
+
renderError(error: ResponseError<unknown>): string;
|
|
67
|
+
/**
|
|
68
|
+
* The sentence for a declaration the caller holds directly, for a carrier
|
|
69
|
+
* with no slot to put an identity in.
|
|
70
|
+
*
|
|
71
|
+
* GLSP's action protocol is the case: every member of its message, status
|
|
72
|
+
* and reject actions is prose or an enum, so a code cannot travel and the
|
|
73
|
+
* raise site is the last place that still knows which message this is.
|
|
74
|
+
* Prefer {@link renderDiagnostic} / {@link renderError} wherever a carrier
|
|
75
|
+
* does hold the identity — they keep the render off the raise site, so an
|
|
76
|
+
* adopter's own messages ride the same one binding.
|
|
77
|
+
*
|
|
78
|
+
* Same no-throw contract as the carrier methods.
|
|
79
|
+
*/
|
|
80
|
+
renderMessage<S extends string>(message: MessageDefinition<S>, ...params: ParamsArg<S>): string;
|
|
81
|
+
/**
|
|
82
|
+
* The catalogue for the current locale, or `undefined` for none — the
|
|
83
|
+
* framework's answer, shipping none. Overriding this leaves every identity
|
|
84
|
+
* decision, every pass-through and the no-throw guard in place.
|
|
85
|
+
*
|
|
86
|
+
* **Called once per locale, not once per message**, so an override may load
|
|
87
|
+
* a file or build a map without that cost landing per diagnostic. The
|
|
88
|
+
* corollary is that a catalogue mutated in place afterwards is not seen;
|
|
89
|
+
* clear {@link catalogues} to invalidate.
|
|
90
|
+
*
|
|
91
|
+
* An adopter wanting Langium's own uncoded sentences instead matches
|
|
92
|
+
* `Diagnostic.data.code` from an overridden {@link renderDiagnostic}, never
|
|
93
|
+
* the sentence.
|
|
94
|
+
*/
|
|
95
|
+
protected translationsFor(_locale: string | undefined): Record<string, string> | undefined;
|
|
96
|
+
/**
|
|
97
|
+
* Resolve one identity against the current locale's catalogue.
|
|
98
|
+
*
|
|
99
|
+
* Reads the locale per call. Copying it into a field at construction pins
|
|
100
|
+
* whatever was there before init ran, which is always `undefined` — services
|
|
101
|
+
* compose first.
|
|
102
|
+
*
|
|
103
|
+
* The catalogue behind it is memoized, because a workspace-wide validation
|
|
104
|
+
* renders once per diagnostic and the naive override — parse a JSON file,
|
|
105
|
+
* build a map — then pays that per diagnostic rather than per locale.
|
|
106
|
+
*/
|
|
107
|
+
protected render(message: ResolvedMessage): string;
|
|
108
|
+
/**
|
|
109
|
+
* Emit a failed render. Logged rather than swallowed: the fallback output is
|
|
110
|
+
* byte-identical to a correctly-configured default, so a throwing catalogue
|
|
111
|
+
* is otherwise invisible.
|
|
112
|
+
*/
|
|
113
|
+
protected reportFailure(err: unknown, carrier: string): void;
|
|
114
|
+
/** Format the failed-render line. Override to name the adopter's catalogue entry. */
|
|
115
|
+
protected formatRenderFailure(err: unknown, carrier: string): string;
|
|
116
|
+
}
|
|
117
|
+
//# s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