@hydranium/glsp-server 1.0.0-next.140 → 1.0.0-next.148
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/start-glsp-server-in-worker.d.ts.map +1 -1
- package/lib/browser/start-glsp-server-in-worker.js +2 -3
- package/lib/browser/start-glsp-server-in-worker.js.map +1 -1
- package/lib/launcher/glsp-server-overrides.d.ts +9 -8
- package/lib/launcher/glsp-server-overrides.d.ts.map +1 -1
- package/lib/launcher/glsp-server-overrides.js +12 -10
- package/lib/launcher/glsp-server-overrides.js.map +1 -1
- package/lib/launcher/hydranium-glsp-server.d.ts +4 -4
- package/lib/launcher/hydranium-glsp-server.js +4 -4
- package/lib/node/start-glsp-server.d.ts.map +1 -1
- package/lib/node/start-glsp-server.js +1 -2
- package/lib/node/start-glsp-server.js.map +1 -1
- package/lib/testing/glsp-harness.js +4 -4
- package/lib/testing/glsp-harness.js.map +1 -1
- package/package.json +7 -7
- package/src/browser/start-glsp-server-in-worker.ts +2 -3
- package/src/launcher/glsp-server-overrides.ts +14 -10
- package/src/launcher/hydranium-glsp-server.ts +4 -4
- package/src/node/start-glsp-server.ts +1 -2
- package/src/testing/glsp-harness.ts +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start-glsp-server-in-worker.d.ts","sourceRoot":"","sources":["../../src/browser/start-glsp-server-in-worker.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,EACJ,KAAK,MAAM,IAAI,UAAU,EACzB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,oBAAoB,EAEtB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAyB,KAAK,eAAe,EAAE,MAAM,WAAW,CAAC;AACxE,OAAO,EAA8B,KAAK,MAAM,EAAE,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC3G,OAAO,EAA2B,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;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BAAgB,EAAE,MAAM,iBAAiB,CAAC;AAKxD,YAAY,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAElE;;;;;;;;;;;;;;;GAeG;AACH,qBACa,iCAAkC,SAAQ,oBAAoB;cACrD,gBAAgB,CAAC,OAAO,EAAE,mBAAmB,GAAG,iBAAiB;CAItF;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,wBAAwB;IACtC;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,OAAO,EAAE,sBAAsB,CAAC;IACzC;;;;;;;;OAQG;IACH,QAAQ,CAAC,YAAY,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,UAAU,CAAC;IACvD;;;OAGG;IACH,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IACpC;;;;OAIG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IACrD;;;OAGG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,wBAAwB,GAAG,gBAAgB,CAqE3F"}
|
|
@@ -85,9 +85,8 @@ export function startGlspServerInWorker(options) {
|
|
|
85
85
|
appContainer.load(glspAppModule, createGlspFrameworkOverrides(options.createLogger), ...(options.appModules ?? []));
|
|
86
86
|
const launcher = appContainer.resolve(HydraniumGlspWorkerServerLauncher);
|
|
87
87
|
// Additional module rather than an app-container binding, as on Node: the
|
|
88
|
-
// launcher loads these into the per-connection SERVER container, the
|
|
89
|
-
//
|
|
90
|
-
// rebindable.
|
|
88
|
+
// launcher loads these into the per-connection SERVER container, the tier
|
|
89
|
+
// where each connection gets a server of its own.
|
|
91
90
|
launcher.configure(options.serverModule, createGlspServerOverrides());
|
|
92
91
|
try {
|
|
93
92
|
// Upstream declares `WorkerLaunchOptions.context` as `Worker`, and
|
|
@@ -1 +1 @@
|
|
|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UAAU,GAAI,QAAgD,CAAC,UAAU,CAAC;QAChF,IAAI,UAAU,KAAK,SAAS,EAAE,CAAC;YAC5B,MAAM,KAAK,GAAG,IAAI,KAAK,CACpB,4EAA4E;gBACzE,wFAAwF,CAC7F,CAAC;YACF,SAAS,EAAE,KAAK,CAAC,gBAAgB,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;YAClD,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC;QACtE,CAAC;QAED,SAAS,EAAE,IAAI,CAAC,sEAAsE,CAAC,CAAC;QACxF,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC;IAClE,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACd,SAAS,EAAE,KAAK,CAAC,uCAAuC,EAAE,KAAK,CAAC,CAAC;QACjE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC;IACzE,CAAC;AACJ,CAAC"}
|
|
@@ -14,15 +14,16 @@ import { ContainerModule } from 'inversify';
|
|
|
14
14
|
*
|
|
15
15
|
* **The tier matters, and the app container cannot stand in for it.** GLSP's
|
|
16
16
|
* launcher creates the server container as a child and loads the adopter's
|
|
17
|
-
* `ServerModule` into it
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* reach this symbol.
|
|
17
|
+
* `ServerModule` into it. The framework's server is a singleton of that
|
|
18
|
+
* container; bound in the app container, every connected application would
|
|
19
|
+
* share one server.
|
|
21
20
|
*
|
|
22
|
-
* **
|
|
23
|
-
* `GLSPServer
|
|
24
|
-
*
|
|
25
|
-
*
|
|
21
|
+
* **An adopter's server is kept when it extends {@link HydraniumGlspServer}.**
|
|
22
|
+
* Any other `GLSPServer` the adopter's `ServerModule` binds, upstream's default
|
|
23
|
+
* included, is replaced when the container first creates it, so a server that
|
|
24
|
+
* extends upstream's directly is discarded. The replacement happens on
|
|
25
|
+
* activation because `rebind` would replace an adopter's subclass as well; the
|
|
26
|
+
* discarded server is constructed once and never used.
|
|
26
27
|
*
|
|
27
28
|
* Keeping this out of the adopter's hands is the point: an adopter passes their
|
|
28
29
|
* own `ServerModule` in, so anything they must add themselves is a fix the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glsp-server-overrides.d.ts","sourceRoot":"","sources":["../../src/launcher/glsp-server-overrides.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAGlF,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAG5C
|
|
1
|
+
{"version":3,"file":"glsp-server-overrides.d.ts","sourceRoot":"","sources":["../../src/launcher/glsp-server-overrides.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAGlF,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAG5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,yBAAyB,IAAI,eAAe,CAO3D"}
|
|
@@ -16,15 +16,16 @@ import { HydraniumGlspServer } from './hydranium-glsp-server.js';
|
|
|
16
16
|
*
|
|
17
17
|
* **The tier matters, and the app container cannot stand in for it.** GLSP's
|
|
18
18
|
* launcher creates the server container as a child and loads the adopter's
|
|
19
|
-
* `ServerModule` into it
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* reach this symbol.
|
|
19
|
+
* `ServerModule` into it. The framework's server is a singleton of that
|
|
20
|
+
* container; bound in the app container, every connected application would
|
|
21
|
+
* share one server.
|
|
23
22
|
*
|
|
24
|
-
* **
|
|
25
|
-
* `GLSPServer
|
|
26
|
-
*
|
|
27
|
-
*
|
|
23
|
+
* **An adopter's server is kept when it extends {@link HydraniumGlspServer}.**
|
|
24
|
+
* Any other `GLSPServer` the adopter's `ServerModule` binds, upstream's default
|
|
25
|
+
* included, is replaced when the container first creates it, so a server that
|
|
26
|
+
* extends upstream's directly is discarded. The replacement happens on
|
|
27
|
+
* activation because `rebind` would replace an adopter's subclass as well; the
|
|
28
|
+
* discarded server is constructed once and never used.
|
|
28
29
|
*
|
|
29
30
|
* Keeping this out of the adopter's hands is the point: an adopter passes their
|
|
30
31
|
* own `ServerModule` in, so anything they must add themselves is a fix the
|
|
@@ -38,8 +39,9 @@ import { HydraniumGlspServer } from './hydranium-glsp-server.js';
|
|
|
38
39
|
* a further adopter subclass moves it again.
|
|
39
40
|
*/
|
|
40
41
|
export function createGlspServerOverrides() {
|
|
41
|
-
return new ContainerModule((
|
|
42
|
-
|
|
42
|
+
return new ContainerModule((bind, _unbind, _isBound, _rebind, _unbindAsync, onActivation) => {
|
|
43
|
+
bind(HydraniumGlspServer).toSelf().inSingletonScope();
|
|
44
|
+
onActivation(GLSPServer, (context, server) => server instanceof HydraniumGlspServer ? server : context.container.get(HydraniumGlspServer));
|
|
43
45
|
});
|
|
44
46
|
}
|
|
45
47
|
//# sourceMappingURL=glsp-server-overrides.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glsp-server-overrides.js","sourceRoot":"","sources":["../../src/launcher/glsp-server-overrides.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEjE
|
|
1
|
+
{"version":3,"file":"glsp-server-overrides.js","sourceRoot":"","sources":["../../src/launcher/glsp-server-overrides.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEjE;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,UAAU,yBAAyB;IACtC,OAAO,IAAI,eAAe,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,EAAE;QACzF,IAAI,CAAC,mBAAmB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;QACtD,YAAY,CAAa,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CACtD,MAAM,YAAY,mBAAmB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAC7F,CAAC;IACL,CAAC,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -28,10 +28,10 @@ import { type ClientSession, DefaultGLSPServer, type RequestAction, type Respons
|
|
|
28
28
|
* Only the REQUEST path needs this. Non-request actions fail through
|
|
29
29
|
* upstream's `handleProcessError`, which reads `message` directly.
|
|
30
30
|
*
|
|
31
|
-
*
|
|
32
|
-
* {@link DefaultGLSPServer}
|
|
33
|
-
*
|
|
34
|
-
* server
|
|
31
|
+
* An adopter who binds their own GLSP server extends this class rather than
|
|
32
|
+
* {@link DefaultGLSPServer}: the framework's server-container override keeps a
|
|
33
|
+
* server that extends this one and replaces any other, so a subclass of
|
|
34
|
+
* upstream's server is discarded.
|
|
35
35
|
*/
|
|
36
36
|
export declare class HydraniumGlspServer extends DefaultGLSPServer {
|
|
37
37
|
/**
|
|
@@ -36,10 +36,10 @@ import { injectable } from 'inversify';
|
|
|
36
36
|
* Only the REQUEST path needs this. Non-request actions fail through
|
|
37
37
|
* upstream's `handleProcessError`, which reads `message` directly.
|
|
38
38
|
*
|
|
39
|
-
*
|
|
40
|
-
* {@link DefaultGLSPServer}
|
|
41
|
-
*
|
|
42
|
-
* server
|
|
39
|
+
* An adopter who binds their own GLSP server extends this class rather than
|
|
40
|
+
* {@link DefaultGLSPServer}: the framework's server-container override keeps a
|
|
41
|
+
* server that extends this one and replaces any other, so a subclass of
|
|
42
|
+
* upstream's server is discarded.
|
|
43
43
|
*/
|
|
44
44
|
let HydraniumGlspServer = class HydraniumGlspServer extends DefaultGLSPServer {
|
|
45
45
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start-glsp-server.d.ts","sourceRoot":"","sources":["../../src/node/start-glsp-server.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,EACJ,KAAK,MAAM,IAAI,UAAU,EACzB,KAAK,YAAY,EAKnB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAa,KAAK,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5D,OAAO,EAAY,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,KAAK,KAAK,GAAG,MAAM,UAAU,CAAC;AACrC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,YAAY,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,UAAU,CAAC;IACvD;;;OAGG;IACH,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IACpC;;;;;;;OAOG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IACrD;;;;;;OAMG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAC3C;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,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G;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IACrD;;;;;;OAMG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAC3C;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;;;;OAQG;IACH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,KAAK,IAAI,CAAC;CAC7D;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IACxD,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,iBAAiB,GAAG,iBAAiB,CA8E7E"}
|
|
@@ -46,8 +46,7 @@ export function startGlspServer(options) {
|
|
|
46
46
|
const launcher = appContainer.resolve(SocketServerLauncher);
|
|
47
47
|
// Passed as an additional module rather than folded into the app container:
|
|
48
48
|
// the launcher loads these into the per-connection SERVER container, which is
|
|
49
|
-
// the
|
|
50
|
-
// can be rebound.
|
|
49
|
+
// the tier where each connection gets a server of its own.
|
|
51
50
|
launcher.configure(options.serverModule, createGlspServerOverrides());
|
|
52
51
|
const started = new Deferred();
|
|
53
52
|
const portHandle = { port: undefined };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start-glsp-server.js","sourceRoot":"","sources":["../../src/node/start-glsp-server.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,EAIJ,oBAAoB,EACpB,eAAe,EACf,0BAA0B,EAC5B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,SAAS,EAAwB,MAAM,WAAW,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAe,MAAM,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,CAAC;QACH,IAAI,OAAO,CAAC,kBAAkB,EAAE,CAAC;YAC9B,SAAS,CAAC,EAAE,CAAC,YAAY,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC;QAC1D,CAAC;QAED,OAAO;YACJ,IAAI,IAAI;gBACL,OAAO,UAAU,CAAC,IAAI,CAAC;YAC1B,CAAC;YACD,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,OAAO,EAAE,cAAc;SACzB,CAAC;IACL,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACd,SAAS,EAAE,KAAK,CAAC,gCAAgC,EAAE,KAAK,CAAC,CAAC;QAC1D,OAAO;YACJ,IAAI,IAAI;gBACL,OAAO,UAAU,CAAC,IAAI,CAAC;YAC1B,CAAC;YACD,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC;YAC9B,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE;SAC5B,CAAC;IACL,CAAC;AACJ,CAAC"}
|
|
@@ -146,10 +146,10 @@ export function makeGlspHarness(options) {
|
|
|
146
146
|
const container = new Container();
|
|
147
147
|
container.load(defaultAppModule, ...(options.appModules ?? []), captureProxyModule);
|
|
148
148
|
container.load(options.serverModule);
|
|
149
|
-
//
|
|
150
|
-
//
|
|
151
|
-
//
|
|
152
|
-
//
|
|
149
|
+
// Into the container the serverModule binds `GLSPServer` in, as the
|
|
150
|
+
// launchers' `configure` loads it: a harness that skipped it would keep
|
|
151
|
+
// upstream's server and answer request failures differently from every
|
|
152
|
+
// real bringup.
|
|
153
153
|
container.load(createGlspServerOverrides());
|
|
154
154
|
const server = container.get(GLSPServer);
|
|
155
155
|
let sessionContainer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glsp-harness.js","sourceRoot":"","sources":["../../src/testing/glsp-harness.ts"],"names":[],"mappings":"AAAA;;;;;;;kFAOkF;AAElF,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAGJ,oBAAoB,EACpB,iBAAiB,EAC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AM,UAAU,GAAG,MAAM,OAAO,CAAC,sBAAsB,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;YAC1E,mEAAmE;YACnE,OAAO,UAAoB,CAAC;QAC/B,CAAC;QAED,mBAAmB,CAAC,UAAsC,EAAE;YACzD,MAAM,EAAE,SAAS,GAAG,IAAI,EAAE,eAAe,GAAG,IAAI,EAAE,GAAG,OAAO,CAAC;YAC7D,OAAO,OAAO,CAAC,sBAAsB,EAAE,SAAS,EAAE,eAAe,CAAC,CAAC;QACtE,CAAC;QAED,cAAc,CAAC,GAAW,EAAE,IAA4C;YACrE,IAAI,CAAC,KAAK,EAAE,CAAC;gBACV,MAAM,IAAI,KAAK,CAAC,+DAA+D,CAAC,CAAC;YACpF,CAAC;YACD,KAAK,CAAC,aAAa,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QAClC,CAAC;QAED,OAAO;YACJ,IAAI,QAAQ,EAAE,CAAC;gBACZ,OAAO;YACV,CAAC;YACD,QAAQ,GAAG,IAAI,CAAC;YAChB,MAAM,CAAC,QAAQ,EAAE,CAAC;YAClB,SAAS,CAAC,SAAS,EAAE,CAAC;QACzB,CAAC;KACH,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hydranium/glsp-server",
|
|
3
|
-
"version": "1.0.0-next.
|
|
3
|
+
"version": "1.0.0-next.148",
|
|
4
4
|
"description": "GLSP protocol head for the hydranium framework. Peer of @hydranium/core/lsp and @hydranium/data-server; built on @hydranium/core.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hydranium",
|
|
@@ -87,9 +87,9 @@
|
|
|
87
87
|
"devDependencies": {
|
|
88
88
|
"@eclipse-glsp/protocol": "2.7.0",
|
|
89
89
|
"@eclipse-glsp/server": "2.7.0",
|
|
90
|
-
"@hydranium/core": "1.0.0-next.
|
|
91
|
-
"@hydranium/langium": "1.0.0-next.
|
|
92
|
-
"@hydranium/protocol": "1.0.0-next.
|
|
90
|
+
"@hydranium/core": "1.0.0-next.148",
|
|
91
|
+
"@hydranium/langium": "1.0.0-next.148",
|
|
92
|
+
"@hydranium/protocol": "1.0.0-next.148",
|
|
93
93
|
"inversify": "6.2.2",
|
|
94
94
|
"reflect-metadata": "0.2.2",
|
|
95
95
|
"rimraf": "^5.0.0",
|
|
@@ -100,9 +100,9 @@
|
|
|
100
100
|
"peerDependencies": {
|
|
101
101
|
"@eclipse-glsp/protocol": "^2.6.0",
|
|
102
102
|
"@eclipse-glsp/server": "^2.6.0",
|
|
103
|
-
"@hydranium/core": "1.0.0-next.
|
|
104
|
-
"@hydranium/langium": "1.0.0-next.
|
|
105
|
-
"@hydranium/protocol": "1.0.0-next.
|
|
103
|
+
"@hydranium/core": "1.0.0-next.148",
|
|
104
|
+
"@hydranium/langium": "1.0.0-next.148",
|
|
105
|
+
"@hydranium/protocol": "1.0.0-next.148",
|
|
106
106
|
"inversify": "^6.0.0",
|
|
107
107
|
"reflect-metadata": "^0.2.2",
|
|
108
108
|
"vscode-jsonrpc": "9.0.1",
|
|
@@ -144,9 +144,8 @@ export function startGlspServerInWorker(options: BrowserGlspServerOptions): Inte
|
|
|
144
144
|
|
|
145
145
|
const launcher = appContainer.resolve<WorkerServerLauncher>(HydraniumGlspWorkerServerLauncher);
|
|
146
146
|
// Additional module rather than an app-container binding, as on Node: the
|
|
147
|
-
// launcher loads these into the per-connection SERVER container, the
|
|
148
|
-
//
|
|
149
|
-
// rebindable.
|
|
147
|
+
// launcher loads these into the per-connection SERVER container, the tier
|
|
148
|
+
// where each connection gets a server of its own.
|
|
150
149
|
launcher.configure(options.serverModule, createGlspServerOverrides());
|
|
151
150
|
|
|
152
151
|
try {
|
|
@@ -18,15 +18,16 @@ import { HydraniumGlspServer } from './hydranium-glsp-server.js';
|
|
|
18
18
|
*
|
|
19
19
|
* **The tier matters, and the app container cannot stand in for it.** GLSP's
|
|
20
20
|
* launcher creates the server container as a child and loads the adopter's
|
|
21
|
-
* `ServerModule` into it
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* reach this symbol.
|
|
21
|
+
* `ServerModule` into it. The framework's server is a singleton of that
|
|
22
|
+
* container; bound in the app container, every connected application would
|
|
23
|
+
* share one server.
|
|
25
24
|
*
|
|
26
|
-
* **
|
|
27
|
-
* `GLSPServer
|
|
28
|
-
*
|
|
29
|
-
*
|
|
25
|
+
* **An adopter's server is kept when it extends {@link HydraniumGlspServer}.**
|
|
26
|
+
* Any other `GLSPServer` the adopter's `ServerModule` binds, upstream's default
|
|
27
|
+
* included, is replaced when the container first creates it, so a server that
|
|
28
|
+
* extends upstream's directly is discarded. The replacement happens on
|
|
29
|
+
* activation because `rebind` would replace an adopter's subclass as well; the
|
|
30
|
+
* discarded server is constructed once and never used.
|
|
30
31
|
*
|
|
31
32
|
* Keeping this out of the adopter's hands is the point: an adopter passes their
|
|
32
33
|
* own `ServerModule` in, so anything they must add themselves is a fix the
|
|
@@ -40,7 +41,10 @@ import { HydraniumGlspServer } from './hydranium-glsp-server.js';
|
|
|
40
41
|
* a further adopter subclass moves it again.
|
|
41
42
|
*/
|
|
42
43
|
export function createGlspServerOverrides(): ContainerModule {
|
|
43
|
-
return new ContainerModule((
|
|
44
|
-
|
|
44
|
+
return new ContainerModule((bind, _unbind, _isBound, _rebind, _unbindAsync, onActivation) => {
|
|
45
|
+
bind(HydraniumGlspServer).toSelf().inSingletonScope();
|
|
46
|
+
onActivation<GLSPServer>(GLSPServer, (context, server) =>
|
|
47
|
+
server instanceof HydraniumGlspServer ? server : context.container.get(HydraniumGlspServer)
|
|
48
|
+
);
|
|
45
49
|
});
|
|
46
50
|
}
|
|
@@ -39,10 +39,10 @@ import { injectable } from 'inversify';
|
|
|
39
39
|
* Only the REQUEST path needs this. Non-request actions fail through
|
|
40
40
|
* upstream's `handleProcessError`, which reads `message` directly.
|
|
41
41
|
*
|
|
42
|
-
*
|
|
43
|
-
* {@link DefaultGLSPServer}
|
|
44
|
-
*
|
|
45
|
-
* server
|
|
42
|
+
* An adopter who binds their own GLSP server extends this class rather than
|
|
43
|
+
* {@link DefaultGLSPServer}: the framework's server-container override keeps a
|
|
44
|
+
* server that extends this one and replaces any other, so a subclass of
|
|
45
|
+
* upstream's server is discarded.
|
|
46
46
|
*/
|
|
47
47
|
@injectable()
|
|
48
48
|
export class HydraniumGlspServer extends DefaultGLSPServer {
|
|
@@ -154,8 +154,7 @@ export function startGlspServer(options: GlspServerOptions): StartedGlspServer {
|
|
|
154
154
|
const launcher = appContainer.resolve<SocketServerLauncher>(SocketServerLauncher);
|
|
155
155
|
// Passed as an additional module rather than folded into the app container:
|
|
156
156
|
// the launcher loads these into the per-connection SERVER container, which is
|
|
157
|
-
// the
|
|
158
|
-
// can be rebound.
|
|
157
|
+
// the tier where each connection gets a server of its own.
|
|
159
158
|
launcher.configure(options.serverModule, createGlspServerOverrides());
|
|
160
159
|
|
|
161
160
|
const started = new Deferred<void>();
|
|
@@ -328,10 +328,10 @@ export function makeGlspHarness<TState extends AbstractHydraniumGlspState<AstNod
|
|
|
328
328
|
const container = new Container();
|
|
329
329
|
container.load(defaultAppModule, ...(options.appModules ?? []), captureProxyModule);
|
|
330
330
|
container.load(options.serverModule);
|
|
331
|
-
//
|
|
332
|
-
//
|
|
333
|
-
//
|
|
334
|
-
//
|
|
331
|
+
// Into the container the serverModule binds `GLSPServer` in, as the
|
|
332
|
+
// launchers' `configure` loads it: a harness that skipped it would keep
|
|
333
|
+
// upstream's server and answer request failures differently from every
|
|
334
|
+
// real bringup.
|
|
335
335
|
container.load(createGlspServerOverrides());
|
|
336
336
|
const server = container.get<GLSPServer>(GLSPServer);
|
|
337
337
|
|