@hydranium/glsp-client-theia 1.0.0-next.25 → 1.0.0-next.27
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/browser/glsp-message-service.d.ts +8 -0
- package/lib/browser/glsp-message-service.d.ts.map +1 -1
- package/lib/browser/glsp-message-service.js +8 -0
- package/lib/browser/glsp-message-service.js.map +1 -1
- package/lib/node/glsp-server-connection-handler.d.ts +10 -0
- package/lib/node/glsp-server-connection-handler.d.ts.map +1 -1
- package/lib/node/glsp-server-connection-handler.js +1 -1
- package/lib/node/glsp-server-connection-handler.js.map +1 -1
- package/package.json +5 -5
- package/src/browser/glsp-message-service.ts +8 -0
- package/src/node/glsp-server-connection-handler.ts +11 -1
|
@@ -22,6 +22,14 @@ import { type interfaces } from '@theia/core/shared/inversify';
|
|
|
22
22
|
* Matching an English literal fails silently — no error, no log line, just the
|
|
23
23
|
* duplicate progress popup back — so this needs keeping in step with
|
|
24
24
|
* `RequestModelActionHandler` on every GLSP bump.
|
|
25
|
+
*
|
|
26
|
+
* **Exported to be imported, and it must NOT be externalized.** An adopter
|
|
27
|
+
* subclassing the message service needs the same literal to match on, and a
|
|
28
|
+
* second copy of it is a second thing to keep in step across that bump. It is
|
|
29
|
+
* also the one user-visible string in the framework that is deliberately excluded
|
|
30
|
+
* from the message catalogue: it exists to equal an upstream English literal that
|
|
31
|
+
* lives in no catalogue, so giving it a code and a translation would break the
|
|
32
|
+
* match it exists for.
|
|
25
33
|
*/
|
|
26
34
|
export declare const MODEL_LOADING_PROGRESS_TITLE = "Model loading in progress";
|
|
27
35
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glsp-message-service.d.ts","sourceRoot":"","sources":["../../src/browser/glsp-message-service.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,mBAAmB,EAAE,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACnH,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,KAAK,UAAU,EAAc,MAAM,8BAA8B,CAAC;AAE3E
|
|
1
|
+
{"version":3,"file":"glsp-message-service.d.ts","sourceRoot":"","sources":["../../src/browser/glsp-message-service.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,mBAAmB,EAAE,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACnH,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,KAAK,UAAU,EAAc,MAAM,8BAA8B,CAAC;AAE3E;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,4BAA4B,8BAA8B,CAAC;AAExE;;;;;;;;;;;;GAYG;AACH,qBACa,2BAA4B,SAAQ,uBAAuB;IACrE;;mBAEe;IACf,SAAS,CAAC,qBAAqB,cAAqB;cAEjC,aAAa,CAAC,MAAM,EAAE,mBAAmB,GAAG,IAAI;cAQhD,cAAc,CAAC,MAAM,EAAE,oBAAoB,GAAG,IAAI;cAOlD,WAAW,CAAC,MAAM,EAAE,iBAAiB,GAAG,IAAI;CAQjE;AAED;;;;;;;;GAQG;AACH,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,EAAE,OAAO,EAAE,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,MAAM,GAAG,IAAI,CAMnI"}
|
|
@@ -31,6 +31,14 @@ const inversify_1 = require("@theia/core/shared/inversify");
|
|
|
31
31
|
* Matching an English literal fails silently — no error, no log line, just the
|
|
32
32
|
* duplicate progress popup back — so this needs keeping in step with
|
|
33
33
|
* `RequestModelActionHandler` on every GLSP bump.
|
|
34
|
+
*
|
|
35
|
+
* **Exported to be imported, and it must NOT be externalized.** An adopter
|
|
36
|
+
* subclassing the message service needs the same literal to match on, and a
|
|
37
|
+
* second copy of it is a second thing to keep in step across that bump. It is
|
|
38
|
+
* also the one user-visible string in the framework that is deliberately excluded
|
|
39
|
+
* from the message catalogue: it exists to equal an upstream English literal that
|
|
40
|
+
* lives in no catalogue, so giving it a code and a translation would break the
|
|
41
|
+
* match it exists for.
|
|
34
42
|
*/
|
|
35
43
|
exports.MODEL_LOADING_PROGRESS_TITLE = 'Model loading in progress';
|
|
36
44
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glsp-message-service.js","sourceRoot":"","sources":["../../src/browser/glsp-message-service.ts"],"names":[],"mappings":";AAAA;;;;;;;kFAOkF;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"glsp-message-service.js","sourceRoot":"","sources":["../../src/browser/glsp-message-service.ts"],"names":[],"mappings":";AAAA;;;;;;;kFAOkF;;;;;;;;;AAoFlF,0EAMC;AAvFD,uEAA0E;AAC1E,4DAA2E;AAE3E;;;;;;;;;;;;;;;;;;;;;GAqBG;AACU,QAAA,4BAA4B,GAAG,2BAA2B,CAAC;AAExE;;;;;;;;;;;;GAYG;AAEI,IAAM,2BAA2B,GAAjC,MAAM,2BAA4B,SAAQ,2CAAuB;IACrE;;mBAEe;IACL,qBAAqB,GAAG,IAAI,GAAG,EAAU,CAAC;IAEjC,aAAa,CAAC,MAA2B;QACzD,IAAI,MAAM,CAAC,KAAK,KAAK,oCAA4B,EAAE,CAAC;YACjD,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;YAClD,OAAO;QACV,CAAC;QACD,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAC/B,CAAC;IAEkB,cAAc,CAAC,MAA4B;QAC3D,IAAI,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC;YACrD,OAAO;QACV,CAAC;QACD,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAEkB,WAAW,CAAC,MAAyB;QACrD,4EAA4E;QAC5E,mDAAmD;QACnD,IAAI,IAAI,CAAC,qBAAqB,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC;YACxD,OAAO;QACV,CAAC;QACD,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAC7B,CAAC;CACH,CAAA;AA7BY,kEAA2B;sCAA3B,2BAA2B;IADvC,IAAA,sBAAU,GAAE;GACA,2BAA2B,CA6BvC;AAED;;;;;;;;GAQG;AACH,SAAgB,+BAA+B,CAAC,IAAqB,EAAE,OAA2B,EAAE,MAAyB;IAC1H,IAAI,OAAO,CAAC,2CAAuB,CAAC,EAAE,CAAC;QACpC,MAAM,CAAC,2CAAuB,CAAC,CAAC,EAAE,CAAC,2BAA2B,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACtF,CAAC;SAAM,CAAC;QACL,IAAI,CAAC,2CAAuB,CAAC,CAAC,EAAE,CAAC,2BAA2B,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACpF,CAAC;AACJ,CAAC"}
|
|
@@ -16,6 +16,16 @@ import type * as net from 'net';
|
|
|
16
16
|
export interface GlspServerConnectionHandlerOptions {
|
|
17
17
|
readonly languageContributionId: string;
|
|
18
18
|
readonly portCommand: string;
|
|
19
|
+
/**
|
|
20
|
+
* Product name for the connect-failure dialog this handler raises.
|
|
21
|
+
*
|
|
22
|
+
* It reaches the adopter's UI verbatim, so the framework default leaks a
|
|
23
|
+
* framework noun into a product that is not ours. Not a translation concern —
|
|
24
|
+
* routing it through a catalogue would ask an adopter to "translate" English
|
|
25
|
+
* into their own product name, and would make their branding
|
|
26
|
+
* locale-dependent.
|
|
27
|
+
*/
|
|
28
|
+
readonly serverName?: string;
|
|
19
29
|
readonly findPortTimeout?: number;
|
|
20
30
|
readonly findPortAttempts?: number;
|
|
21
31
|
readonly connectTimeoutMs?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glsp-server-connection-handler.d.ts","sourceRoot":"","sources":["../../src/node/glsp-server-connection-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAIlF,OAAO,EAAE,yCAAyC,EAAE,MAAM,kCAAkC,CAAC;AAC7F,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAE5D,OAAO,KAAK,KAAK,GAAG,MAAM,KAAK,CAAC;AAEhC;;;iDAGiD;AACjD,MAAM,WAAW,kCAAkC;IAChD,QAAQ,CAAC,sBAAsB,EAAE,MAAM,CAAC;IACxC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACnC;;;;;;;OAOG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,KAAK,IAAI,CAAC;CAC1D;AAED;;;;;;;;;;;;GAYG;AACH,qBACa,2BAA4B,SAAQ,yCAAyC;gBAC9D,OAAO,EAAE,kCAAkC;IAapE,SAAS,CAAC,yBAAyB,CAAC,aAAa,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,GAAG,UAAU;CAG7F"}
|
|
1
|
+
{"version":3,"file":"glsp-server-connection-handler.d.ts","sourceRoot":"","sources":["../../src/node/glsp-server-connection-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAIlF,OAAO,EAAE,yCAAyC,EAAE,MAAM,kCAAkC,CAAC;AAC7F,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAE5D,OAAO,KAAK,KAAK,GAAG,MAAM,KAAK,CAAC;AAEhC;;;iDAGiD;AACjD,MAAM,WAAW,kCAAkC;IAChD,QAAQ,CAAC,sBAAsB,EAAE,MAAM,CAAC;IACxC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B;;;;;;;;OAQG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACnC;;;;;;;OAOG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,KAAK,IAAI,CAAC;CAC1D;AAED;;;;;;;;;;;;GAYG;AACH,qBACa,2BAA4B,SAAQ,yCAAyC;gBAC9D,OAAO,EAAE,kCAAkC;IAapE,SAAS,CAAC,yBAAyB,CAAC,aAAa,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,GAAG,UAAU;CAG7F"}
|
|
@@ -44,7 +44,7 @@ let GlspServerConnectionHandler = class GlspServerConnectionHandler extends node
|
|
|
44
44
|
path: common_1.GLSPContribution.servicePath + '/' + options.languageContributionId,
|
|
45
45
|
portCommand: options.portCommand,
|
|
46
46
|
logComponent: 'GLSP',
|
|
47
|
-
serverName: 'Graphical Server',
|
|
47
|
+
serverName: options.serverName ?? 'Graphical Server',
|
|
48
48
|
findPortTimeout: options.findPortTimeout,
|
|
49
49
|
findPortAttempts: options.findPortAttempts,
|
|
50
50
|
connectTimeoutMs: options.connectTimeoutMs,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glsp-server-connection-handler.js","sourceRoot":"","sources":["../../src/node/glsp-server-connection-handler.ts"],"names":[],"mappings":";AAAA;;;;;;;kFAOkF;;;;;;;;;;;;;;;AAElF,uEAA8E;AAC9E,mEAAqF;AACrF,2DAA6F;AAE7F,4DAAqE;
|
|
1
|
+
{"version":3,"file":"glsp-server-connection-handler.js","sourceRoot":"","sources":["../../src/node/glsp-server-connection-handler.ts"],"names":[],"mappings":";AAAA;;;;;;;kFAOkF;;;;;;;;;;;;;;;AAElF,uEAA8E;AAC9E,mEAAqF;AACrF,2DAA6F;AAE7F,4DAAqE;AAkCrE;;;;;;;;;;;;GAYG;AAEI,IAAM,2BAA2B,GAAjC,MAAM,2BAA4B,SAAQ,gDAAyC;IACvF,YAAyB,OAA2C;QACjE,KAAK,CAAC;YACH,IAAI,EAAE,yBAAgB,CAAC,WAAW,GAAG,GAAG,GAAG,OAAO,CAAC,sBAAsB;YACzE,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,YAAY,EAAE,MAAM;YACpB,UAAU,EAAE,OAAO,CAAC,UAAU,IAAI,kBAAkB;YACpD,eAAe,EAAE,OAAO,CAAC,eAAe;YACxC,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;YAC1C,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;YAC1C,eAAe,EAAE,OAAO,CAAC,eAAe;SAC1C,CAAC,CAAC;IACN,CAAC;IAES,yBAAyB,CAAC,aAAsB,EAAE,MAAkB;QAC3E,OAAO,IAAI,gCAAyB,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IAC/D,CAAC;CACH,CAAA;AAjBY,kEAA2B;sCAA3B,2BAA2B;IADvC,IAAA,sBAAU,GAAE;IAEG,WAAA,IAAA,qBAAS,GAAE,CAAA;;GADd,2BAA2B,CAiBvC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hydranium/glsp-client-theia",
|
|
3
|
-
"version": "1.0.0-next.
|
|
3
|
+
"version": "1.0.0-next.27",
|
|
4
4
|
"description": "Theia-coupled client primitives for GLSP heads built on @hydranium/glsp-server. Provides the action dispatcher, channel logger, and connection-handler bases that Theia-based adopters extend; companion of @hydranium/glsp-server.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hydranium",
|
|
@@ -78,8 +78,8 @@
|
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@eclipse-glsp/client": "2.7.0",
|
|
80
80
|
"@eclipse-glsp/theia-integration": "2.7.0",
|
|
81
|
-
"@hydranium/client-theia": "1.0.0-next.
|
|
82
|
-
"@hydranium/protocol": "1.0.0-next.
|
|
81
|
+
"@hydranium/client-theia": "1.0.0-next.27",
|
|
82
|
+
"@hydranium/protocol": "1.0.0-next.27",
|
|
83
83
|
"@theia/core": "^1.70.0",
|
|
84
84
|
"@theia/output": "^1.70.0",
|
|
85
85
|
"@theia/process": "^1.70.0",
|
|
@@ -93,8 +93,8 @@
|
|
|
93
93
|
"peerDependencies": {
|
|
94
94
|
"@eclipse-glsp/client": "^2.6.0",
|
|
95
95
|
"@eclipse-glsp/theia-integration": "^2.6.0",
|
|
96
|
-
"@hydranium/client-theia": "1.0.0-next.
|
|
97
|
-
"@hydranium/protocol": "1.0.0-next.
|
|
96
|
+
"@hydranium/client-theia": "1.0.0-next.27",
|
|
97
|
+
"@hydranium/protocol": "1.0.0-next.27",
|
|
98
98
|
"@theia/core": "^1.70.0",
|
|
99
99
|
"@theia/output": "^1.70.0",
|
|
100
100
|
"@theia/process": "^1.70.0",
|
|
@@ -24,6 +24,14 @@ import { type interfaces, injectable } from '@theia/core/shared/inversify';
|
|
|
24
24
|
* Matching an English literal fails silently — no error, no log line, just the
|
|
25
25
|
* duplicate progress popup back — so this needs keeping in step with
|
|
26
26
|
* `RequestModelActionHandler` on every GLSP bump.
|
|
27
|
+
*
|
|
28
|
+
* **Exported to be imported, and it must NOT be externalized.** An adopter
|
|
29
|
+
* subclassing the message service needs the same literal to match on, and a
|
|
30
|
+
* second copy of it is a second thing to keep in step across that bump. It is
|
|
31
|
+
* also the one user-visible string in the framework that is deliberately excluded
|
|
32
|
+
* from the message catalogue: it exists to equal an upstream English literal that
|
|
33
|
+
* lives in no catalogue, so giving it a code and a translation would break the
|
|
34
|
+
* match it exists for.
|
|
27
35
|
*/
|
|
28
36
|
export const MODEL_LOADING_PROGRESS_TITLE = 'Model loading in progress';
|
|
29
37
|
|
|
@@ -21,6 +21,16 @@ import type * as net from 'net';
|
|
|
21
21
|
export interface GlspServerConnectionHandlerOptions {
|
|
22
22
|
readonly languageContributionId: string;
|
|
23
23
|
readonly portCommand: string;
|
|
24
|
+
/**
|
|
25
|
+
* Product name for the connect-failure dialog this handler raises.
|
|
26
|
+
*
|
|
27
|
+
* It reaches the adopter's UI verbatim, so the framework default leaks a
|
|
28
|
+
* framework noun into a product that is not ours. Not a translation concern —
|
|
29
|
+
* routing it through a catalogue would ask an adopter to "translate" English
|
|
30
|
+
* into their own product name, and would make their branding
|
|
31
|
+
* locale-dependent.
|
|
32
|
+
*/
|
|
33
|
+
readonly serverName?: string;
|
|
24
34
|
readonly findPortTimeout?: number;
|
|
25
35
|
readonly findPortAttempts?: number;
|
|
26
36
|
readonly connectTimeoutMs?: number;
|
|
@@ -55,7 +65,7 @@ export class GlspServerConnectionHandler extends AbstractSocketForwardingConnect
|
|
|
55
65
|
path: GLSPContribution.servicePath + '/' + options.languageContributionId,
|
|
56
66
|
portCommand: options.portCommand,
|
|
57
67
|
logComponent: 'GLSP',
|
|
58
|
-
serverName: 'Graphical Server',
|
|
68
|
+
serverName: options.serverName ?? 'Graphical Server',
|
|
59
69
|
findPortTimeout: options.findPortTimeout,
|
|
60
70
|
findPortAttempts: options.findPortAttempts,
|
|
61
71
|
connectTimeoutMs: options.connectTimeoutMs,
|