@eclipse-glsp/server 2.1.1 → 2.2.0-next.104
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/index.d.ts +2 -2
- package/lib/browser/index.d.ts.map +1 -1
- package/lib/browser/index.js +2 -2
- package/lib/browser/index.js.map +1 -1
- package/lib/browser/launch/worker-server-launcher.d.ts +3 -4
- package/lib/browser/launch/worker-server-launcher.d.ts.map +1 -1
- package/lib/browser/launch/worker-server-launcher.js +6 -6
- package/lib/browser/launch/worker-server-launcher.js.map +1 -1
- package/lib/{common/gmodel/index.d.ts → browser/reexport.d.ts} +3 -13
- package/lib/browser/reexport.d.ts.map +1 -0
- package/lib/{common/gmodel/index.js → browser/reexport.js} +17 -27
- package/lib/browser/reexport.js.map +1 -0
- package/lib/common/actions/action-dispatcher.d.ts +3 -2
- package/lib/common/actions/action-dispatcher.d.ts.map +1 -1
- package/lib/common/actions/action-dispatcher.js +2 -2
- package/lib/common/actions/action-dispatcher.js.map +1 -1
- package/lib/common/actions/client-action-handler.js.map +1 -1
- package/lib/common/command/command-stack.js.map +1 -1
- package/lib/common/command/command.js.map +1 -1
- package/lib/common/command/recording-command.d.ts +1 -1
- package/lib/common/command/recording-command.d.ts.map +1 -1
- package/lib/common/command/recording-command.js +1 -1
- package/lib/common/command/recording-command.js.map +1 -1
- package/lib/common/command/undo-redo-action-handler.js.map +1 -1
- package/lib/common/di/binding-target.js.map +1 -1
- package/lib/common/di/client-session-module.d.ts +1 -1
- package/lib/common/di/client-session-module.d.ts.map +1 -1
- package/lib/common/di/client-session-module.js +3 -2
- package/lib/common/di/client-session-module.js.map +1 -1
- package/lib/common/di/glsp-module.d.ts +2 -2
- package/lib/common/di/glsp-module.d.ts.map +1 -1
- package/lib/common/di/multi-binding.d.ts +1 -16
- package/lib/common/di/multi-binding.d.ts.map +1 -1
- package/lib/common/di/multi-binding.js +1 -1
- package/lib/common/di/multi-binding.js.map +1 -1
- package/lib/common/di/server-module.js.map +1 -1
- package/lib/common/features/contextactions/command-palette-action-provider.js.map +1 -1
- package/lib/common/features/contextactions/context-actions-provider-registry.js.map +1 -1
- package/lib/common/features/contextactions/request-context-actions-handler.js.map +1 -1
- package/lib/common/features/directediting/context-edit-validator-registry.js.map +1 -1
- package/lib/common/features/directediting/context-edit-validator.d.ts.map +1 -1
- package/lib/common/features/directediting/context-edit-validator.js +1 -1
- package/lib/common/features/directediting/context-edit-validator.js.map +1 -1
- package/lib/common/features/directediting/request-edit-validation-handler.js.map +1 -1
- package/lib/common/features/layout/computed-bounds-action-handler.js.map +1 -1
- package/lib/common/features/layout/layout-operation-handler.js.map +1 -1
- package/lib/common/features/model/gmodel-index.js.map +1 -1
- package/lib/common/features/model/gmodel-serializer.js.map +1 -1
- package/lib/common/features/model/model-state.js.map +1 -1
- package/lib/common/features/model/model-submission-handler.d.ts +1 -1
- package/lib/common/features/model/model-submission-handler.d.ts.map +1 -1
- package/lib/common/features/model/model-submission-handler.js +2 -2
- package/lib/common/features/model/model-submission-handler.js.map +1 -1
- package/lib/common/features/model/request-model-action-handler.d.ts +3 -2
- package/lib/common/features/model/request-model-action-handler.d.ts.map +1 -1
- package/lib/common/features/model/request-model-action-handler.js +1 -1
- package/lib/common/features/model/request-model-action-handler.js.map +1 -1
- package/lib/common/features/navigation/json-opener-options.js.map +1 -1
- package/lib/common/features/navigation/navigation-target-resolution.d.ts +1 -1
- package/lib/common/features/navigation/navigation-target-resolution.d.ts.map +1 -1
- package/lib/common/features/navigation/navigation-target-resolution.js.map +1 -1
- package/lib/common/features/navigation/request-navigation-targets-action-handler.js.map +1 -1
- package/lib/common/features/navigation/resolve-navigation-targets-action-handler.js.map +1 -1
- package/lib/common/features/popup/request-popup-model-action-handler.js.map +1 -1
- package/lib/common/features/type-hints/request-check-edge-action-handler.js.map +1 -1
- package/lib/common/features/validation/model-validator.js.map +1 -1
- package/lib/common/features/validation/request-markers-handler.js.map +1 -1
- package/lib/common/gmodel/change-bounds-operation-handler.js.map +1 -1
- package/lib/common/gmodel/change-routing-points-operation-handler.js.map +1 -1
- package/lib/common/gmodel/cut-operation-handler.js.map +1 -1
- package/lib/common/gmodel/delete-operation-handler.js.map +1 -1
- package/lib/common/gmodel/gmodel-create-edge-operation-handler.js.map +1 -1
- package/lib/common/gmodel/gmodel-create-node-operation-handler.d.ts +1 -1
- package/lib/common/gmodel/gmodel-create-node-operation-handler.d.ts.map +1 -1
- package/lib/common/gmodel/gmodel-create-node-operation-handler.js +5 -2
- package/lib/common/gmodel/gmodel-create-node-operation-handler.js.map +1 -1
- package/lib/common/gmodel/paste-operation-handler.js.map +1 -1
- package/lib/common/gmodel/reconnect-edge-operation-handler.js.map +1 -1
- package/lib/common/index.d.ts +17 -4
- package/lib/common/index.d.ts.map +1 -1
- package/lib/common/index.js +17 -4
- package/lib/common/index.js.map +1 -1
- package/lib/common/launch/glsp-server-launcher.js.map +1 -1
- package/lib/common/operations/compound-operation-handler.js.map +1 -1
- package/lib/common/operations/json-operation-handler.js.map +1 -1
- package/lib/common/operations/operation-action-handler.js.map +1 -1
- package/lib/common/operations/operation-handler-registry.js.map +1 -1
- package/lib/common/protocol/glsp-server.js.map +1 -1
- package/lib/common/reexport.d.ts +19 -0
- package/lib/common/reexport.d.ts.map +1 -0
- package/lib/common/reexport.js +35 -0
- package/lib/common/reexport.js.map +1 -0
- package/lib/common/session/client-session-factory.js.map +1 -1
- package/lib/common/session/client-session-manager.js.map +1 -1
- package/lib/common/session/client-session.js.map +1 -1
- package/lib/common/utils/args-util.js.map +1 -1
- package/lib/common/utils/client-options-util.d.ts +2 -2
- package/lib/common/utils/client-options-util.d.ts.map +1 -1
- package/lib/common/utils/client-options-util.js.map +1 -1
- package/lib/common/utils/console-logger.d.ts +2 -2
- package/lib/common/utils/console-logger.d.ts.map +1 -1
- package/lib/common/utils/console-logger.js +1 -1
- package/lib/common/utils/console-logger.js.map +1 -1
- package/lib/common/utils/glsp-server-error.d.ts +1 -1
- package/lib/common/utils/glsp-server-error.d.ts.map +1 -1
- package/lib/common/utils/glsp-server-error.js +1 -1
- package/lib/common/utils/glsp-server-error.js.map +1 -1
- package/lib/common/utils/layout-util.js.map +1 -1
- package/lib/common/utils/logger.js.map +1 -1
- package/lib/common/utils/promise-queue.js.map +1 -1
- package/lib/common/utils/registry.js.map +1 -1
- package/lib/node/abstract-json-model-storage.js.map +1 -1
- package/lib/node/di/app-module.d.ts +2 -2
- package/lib/node/di/app-module.d.ts.map +1 -1
- package/lib/node/di/app-module.js.map +1 -1
- package/lib/node/di/winston-logger.d.ts +1 -1
- package/lib/node/di/winston-logger.d.ts.map +1 -1
- package/lib/node/di/winston-logger.js +6 -1
- package/lib/node/di/winston-logger.js.map +1 -1
- package/lib/node/index.d.ts +2 -2
- package/lib/node/index.d.ts.map +1 -1
- package/lib/node/index.js +2 -2
- package/lib/node/index.js.map +1 -1
- package/lib/node/launch/cli-parser.js.map +1 -1
- package/lib/node/launch/socket-cli-parser.js.map +1 -1
- package/lib/node/launch/socket-server-launcher.d.ts +0 -1
- package/lib/node/launch/socket-server-launcher.d.ts.map +1 -1
- package/lib/node/launch/socket-server-launcher.js +2 -3
- package/lib/node/launch/socket-server-launcher.js.map +1 -1
- package/lib/node/launch/websocket-server-launcher.js.map +1 -1
- package/lib/node/reexport.d.ts +17 -0
- package/lib/node/reexport.d.ts.map +1 -0
- package/lib/node/reexport.js +33 -0
- package/lib/node/reexport.js.map +1 -0
- package/package.json +7 -7
- package/src/browser/index.ts +2 -2
- package/src/browser/launch/worker-server-launcher.ts +4 -5
- package/src/browser/reexport.ts +16 -0
- package/src/common/.indexignore +2 -0
- package/src/common/actions/action-dispatcher.ts +13 -4
- package/src/common/command/recording-command.spec.ts +5 -2
- package/src/common/command/recording-command.ts +6 -2
- package/src/common/di/client-session-module.ts +3 -2
- package/src/common/di/glsp-module.ts +2 -2
- package/src/common/di/multi-binding.ts +3 -2
- package/src/common/features/directediting/context-edit-validator.ts +5 -2
- package/src/common/features/model/model-submission-handler.ts +4 -3
- package/src/common/features/model/request-model-action-handler.ts +2 -2
- package/src/common/features/navigation/navigation-target-resolution.ts +5 -2
- package/src/common/gmodel/gmodel-create-node-operation-handler.ts +11 -4
- package/src/common/index.ts +17 -4
- package/src/common/{gmodel/index.ts → reexport.ts} +4 -12
- package/src/common/test/mock-util.ts +3 -2
- package/src/common/utils/client-options-util.ts +2 -2
- package/src/common/utils/console-logger.ts +6 -3
- package/src/common/utils/glsp-server-error.ts +5 -2
- package/src/node/di/app-module.ts +2 -2
- package/src/node/di/winston-logger.ts +10 -3
- package/src/node/index.ts +2 -2
- package/src/node/launch/socket-server-launcher.ts +1 -3
- package/src/node/reexport.ts +16 -0
- package/lib/common/gmodel/index.d.ts.map +0 -1
- package/lib/common/gmodel/index.js.map +0 -1
|
@@ -9,9 +9,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.SocketServerLauncher =
|
|
12
|
+
exports.SocketServerLauncher = void 0;
|
|
13
13
|
/********************************************************************************
|
|
14
|
-
* Copyright (c) 2022-
|
|
14
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
15
15
|
*
|
|
16
16
|
* This program and the accompanying materials are made available under the
|
|
17
17
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -31,7 +31,6 @@ const net = require("net");
|
|
|
31
31
|
const jsonrpc = require("vscode-jsonrpc/node");
|
|
32
32
|
const jsonrpc_server_launcher_1 = require("../../common/launch/jsonrpc-server-launcher");
|
|
33
33
|
const logger_1 = require("../../common/utils/logger");
|
|
34
|
-
exports.START_UP_COMPLETE_MSG = '[GLSP-Server]:Startup completed. Accepting requests on port:';
|
|
35
34
|
let SocketServerLauncher = class SocketServerLauncher extends jsonrpc_server_launcher_1.JsonRpcGLSPServerLauncher {
|
|
36
35
|
constructor() {
|
|
37
36
|
super();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"socket-server-launcher.js","sourceRoot":"","sources":["../../../src/node/launch/socket-server-launcher.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAoD;AACpD,yCAA+C;AAC/C,2BAA2B;AAC3B,+CAA+C;AAC/C,yFAAwF;AACxF,sDAAmD;
|
|
1
|
+
{"version":3,"file":"socket-server-launcher.js","sourceRoot":"","sources":["../../../src/node/launch/socket-server-launcher.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAoD;AACpD,yCAA+C;AAC/C,2BAA2B;AAC3B,+CAA+C;AAC/C,yFAAwF;AACxF,sDAAmD;AAG5C,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,mDAAmD;IAKzF;QACI,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,SAAS,CAAC,IAAI,CACf,qBAAU,CAAC,MAAM,CAAC,GAAG,EAAE;YACnB,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC;QAC3B,CAAC,CAAC,CACL,CAAC;IACN,CAAC;IAES,GAAG,CAAC,IAA8B;QACxC,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE;YACvC,MAAM,UAAU,GAAG,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;YACjD,IAAI,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC;QAC1C,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QAC5C,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,WAAW,EAAE,GAAG,EAAE;YAChC,MAAM,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,C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,CAAC,EAAE,OAAO,CAAC,CAAC;IACtI,CAAC;CACJ,CAAA;AAhDY,oDAAoB;AACM;IAAlC,IAAA,kBAAM,EAAC,eAAM,CAAC;8BAA4B,eAAM;oDAAC;+BADzC,oBAAoB;IADhC,IAAA,sBAAU,GAAE;;GACA,oBAAoB,CAgDhC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"websocket-server-launcher.js","sourceRoot":"","sources":["../../../src/node/launch/websocket-server-launcher.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;AAElF,qDAA+G;AAC/G,6BAA6B;AAC7B,yCAA+C;AAC/C,2BAA2B;AAE3B,2BAAuC;AACvC,yFAAwF;AACxF,sDAAmD;AAoBnD,MAAM,uBAAuB,GAAG,GAAG,CAAC;AAG7B,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,mDAAiD;IAM1F;QACI,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,SAAS,CAAC,IAAI,CACf,qBAAU,CAAC,MAAM,CAAC,GAAG,EAAE;YACnB,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;QACxB,CAAC,CAAC,CACL,CAAC;IACN,CAAC;IAES,KAAK,CAAC,GAAG,CAAC,OAA+B;QAC/C,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QAC3D,IAAI,CAAC,MAAM,GAAG,IAAI,WAAM,CAAC,EAAE,MAAM,EAAE,eAAe,CAAC,MAAM,EAAE,IAAI,EAAE,eAAe,CAAC,IAAI,EAAE,CAAC,CAAC;QACzF,MAAM,QAAQ,GAAG,QAAQ,eAAe,CAAC,IAAI,IAAI,eAAe,CAAC,IAAI,IAAI,eAAe,CAAC,IAAI,EAAE,CAAC;QAChG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,mFAAmF,QAAQ,GAAG,CAAC,CAAC;QACjH,OAAO,CAAC,GAAG,CAAC,IAA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AO;QACH,IAAI,EAAE,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC;QACrC,SAAS,EAAE,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC;QACzC,OAAO,EAAE,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC;QACrC,OAAO,EAAE,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC;QACrC,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE;KAChC,CAAC;AACN,CAAC;AARD,sCAQC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2024 EclipseSource and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
export * from '../common';
|
|
17
|
+
//# sourceMappingURL=reexport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reexport.d.ts","sourceRoot":"","sources":["../../src/node/reexport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/********************************************************************************
|
|
18
|
+
* Copyright (c) 2024 EclipseSource and others.
|
|
19
|
+
*
|
|
20
|
+
* This program and the accompanying materials are made available under the
|
|
21
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
22
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
23
|
+
*
|
|
24
|
+
* This Source Code may also be made available under the following Secondary
|
|
25
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
26
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
27
|
+
* with the GNU Classpath Exception which is available at
|
|
28
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
29
|
+
*
|
|
30
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
31
|
+
********************************************************************************/
|
|
32
|
+
__exportStar(require("../common"), exports);
|
|
33
|
+
//# sourceMappingURL=reexport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reexport.js","sourceRoot":"","sources":["../../src/node/reexport.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,4CAA0B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eclipse-glsp/server",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0-next.104+951ddf1",
|
|
4
4
|
"description": "A js server framework for Eclipse GLSP",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eclipse",
|
|
@@ -49,21 +49,21 @@
|
|
|
49
49
|
],
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "tsc -b",
|
|
52
|
-
"clean": "rimraf lib
|
|
52
|
+
"clean": "rimraf lib *.tsbuildinfo coverage .nyc_output",
|
|
53
|
+
"generate:index": "glsp generateIndex src/browser src/common src/node -s -f",
|
|
53
54
|
"lint": "eslint --ext .ts,.tsx ./src",
|
|
54
|
-
"lint:ci": "yarn lint -o eslint.xml -f checkstyle",
|
|
55
|
-
"prepare": "yarn clean && yarn build",
|
|
56
55
|
"test": "mocha --config ../../.mocharc \"./src/**/*.spec.?(ts|tsx)\"",
|
|
57
56
|
"test:ci": "export JUNIT_REPORT_PATH=./report.xml && yarn test --reporter mocha-jenkins-reporter",
|
|
58
57
|
"test:coverage": "nyc yarn test:ci",
|
|
59
58
|
"watch": "tsc -w"
|
|
60
59
|
},
|
|
61
60
|
"dependencies": {
|
|
62
|
-
"@eclipse-glsp/graph": "2.
|
|
63
|
-
"@eclipse-glsp/protocol": "
|
|
61
|
+
"@eclipse-glsp/graph": "2.2.0-next.104+951ddf1",
|
|
62
|
+
"@eclipse-glsp/protocol": "next",
|
|
64
63
|
"@types/uuid": "8.3.1",
|
|
65
64
|
"commander": "^8.3.0",
|
|
66
65
|
"fast-json-patch": "^3.1.0",
|
|
66
|
+
"vscode-jsonrpc": "8.2.0",
|
|
67
67
|
"winston": "^3.3.3",
|
|
68
68
|
"ws": "^8.12.1"
|
|
69
69
|
},
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"publishConfig": {
|
|
77
77
|
"access": "public"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "951ddf1a7e5371adcd313c0fcf10331d5afc8d3f"
|
|
80
80
|
}
|
package/src/browser/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022-
|
|
2
|
+
* Copyright (c) 2022-2024 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
export * from '../common/index';
|
|
17
16
|
export * from './di/app-module';
|
|
18
17
|
export * from './launch/worker-server-launcher';
|
|
18
|
+
export * from './reexport';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022-
|
|
2
|
+
* Copyright (c) 2022-2024 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -16,13 +16,12 @@
|
|
|
16
16
|
|
|
17
17
|
import { injectable } from 'inversify';
|
|
18
18
|
import * as jsonrpc from 'vscode-jsonrpc/browser';
|
|
19
|
-
import { MaybePromise } from '../../common
|
|
20
|
-
import { JsonRpcGLSPServerLauncher, JsonRpcServerInstance } from '../../common/launch/jsonrpc-server-launcher';
|
|
19
|
+
import { JsonRpcGLSPServerLauncher, JsonRpcServerInstance, MaybePromise } from '../../common';
|
|
21
20
|
export interface WorkerLaunchOptions {
|
|
22
21
|
context?: Worker;
|
|
23
22
|
}
|
|
24
23
|
|
|
25
|
-
export const
|
|
24
|
+
export const WORKER_START_UP_COMPLETE_MSG = '[GLSP-Server]:Startup completed.';
|
|
26
25
|
|
|
27
26
|
@injectable()
|
|
28
27
|
export class WorkerServerLauncher extends JsonRpcGLSPServerLauncher<WorkerLaunchOptions> {
|
|
@@ -35,7 +34,7 @@ export class WorkerServerLauncher extends JsonRpcGLSPServerLauncher<WorkerLaunch
|
|
|
35
34
|
this.connection = this.createConnection(options);
|
|
36
35
|
this.createServerInstance(this.connection);
|
|
37
36
|
this.logger.info('GLSP server worker connection established');
|
|
38
|
-
postMessage(
|
|
37
|
+
postMessage(WORKER_START_UP_COMPLETE_MSG);
|
|
39
38
|
return new Promise((resolve, rejects) => {
|
|
40
39
|
this.connection?.onClose(() => resolve(undefined));
|
|
41
40
|
this.connection?.onError(error => rejects(error));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2024 EclipseSource and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
export * from '../common';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022-
|
|
2
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -13,7 +13,16 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import {
|
|
16
|
+
import {
|
|
17
|
+
Action,
|
|
18
|
+
Disposable,
|
|
19
|
+
MaybeArray,
|
|
20
|
+
RequestAction,
|
|
21
|
+
ResponseAction,
|
|
22
|
+
SetModelAction,
|
|
23
|
+
UpdateModelAction,
|
|
24
|
+
flatPush
|
|
25
|
+
} from '@eclipse-glsp/protocol';
|
|
17
26
|
import { inject, injectable } from 'inversify';
|
|
18
27
|
import { ClientId } from '../di/service-identifiers';
|
|
19
28
|
import { GLSPServerError } from '../utils/glsp-server-error';
|
|
@@ -67,7 +76,7 @@ export class DefaultActionDispatcher implements ActionDispatcher, Disposable {
|
|
|
67
76
|
protected clientActionForwarder: ClientActionForwarder;
|
|
68
77
|
|
|
69
78
|
@inject(Logger)
|
|
70
|
-
|
|
79
|
+
protected logger: Logger;
|
|
71
80
|
|
|
72
81
|
@inject(ClientId)
|
|
73
82
|
protected clientId: string;
|
|
@@ -98,7 +107,7 @@ export class DefaultActionDispatcher implements ActionDispatcher, Disposable {
|
|
|
98
107
|
responses.push(...response);
|
|
99
108
|
}
|
|
100
109
|
|
|
101
|
-
if (
|
|
110
|
+
if (this.postUpdateQueue.length > 0 && (UpdateModelAction.is(action) || SetModelAction.is(action))) {
|
|
102
111
|
responses.push(...this.postUpdateQueue);
|
|
103
112
|
this.postUpdateQueue = [];
|
|
104
113
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2023 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2023-2024 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -28,7 +28,10 @@ interface TestModel {
|
|
|
28
28
|
let jsonObject: TestModel;
|
|
29
29
|
|
|
30
30
|
class TestRecordingCommand<JsonObject extends AnyObject = AnyObject> extends AbstractRecordingCommand<JsonObject> {
|
|
31
|
-
constructor(
|
|
31
|
+
constructor(
|
|
32
|
+
protected jsonObject: JsonObject,
|
|
33
|
+
protected doExecute: () => MaybePromise<void>
|
|
34
|
+
) {
|
|
32
35
|
super();
|
|
33
36
|
}
|
|
34
37
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2023 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2023-2024 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -93,7 +93,11 @@ export abstract class AbstractRecordingCommand<JsonObject extends AnyObject> imp
|
|
|
93
93
|
* to the `GModelRoot` ({@link ModelState.root}) during the given `doExecute` function
|
|
94
94
|
*/
|
|
95
95
|
export class GModelRecordingCommand extends AbstractRecordingCommand<GModelRootSchema> {
|
|
96
|
-
constructor(
|
|
96
|
+
constructor(
|
|
97
|
+
protected modelState: ModelState,
|
|
98
|
+
protected serializer: GModelSerializer,
|
|
99
|
+
protected doExecute: () => MaybePromise<void>
|
|
100
|
+
) {
|
|
97
101
|
super();
|
|
98
102
|
}
|
|
99
103
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022-
|
|
2
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import { GLSPClientProxy
|
|
16
|
+
import { GLSPClientProxy } from '@eclipse-glsp/protocol';
|
|
17
|
+
import { bindOrRebind } from '@eclipse-glsp/protocol/lib/di';
|
|
17
18
|
import { ContainerModule } from 'inversify';
|
|
18
19
|
import { ClientActionKinds, ClientId } from './service-identifiers';
|
|
19
20
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022-
|
|
2
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import { BindingContext } from '@eclipse-glsp/protocol';
|
|
16
|
+
import { BindingContext } from '@eclipse-glsp/protocol/lib/di';
|
|
17
17
|
import { ContainerModule, injectable, interfaces } from 'inversify';
|
|
18
18
|
import { AbstractMultiBinding } from './multi-binding';
|
|
19
19
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022-
|
|
2
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import {
|
|
16
|
+
import { distinctAdd, flatPush, MaybeArray, remove } from '@eclipse-glsp/protocol';
|
|
17
|
+
import { BindingContext } from '@eclipse-glsp/protocol/lib/di';
|
|
17
18
|
import { applyBindingTarget, BindingTarget } from './binding-target';
|
|
18
19
|
|
|
19
20
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022-
|
|
2
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -37,7 +37,10 @@ export interface ContextEditValidator {
|
|
|
37
37
|
|
|
38
38
|
export class ValidateLabelEditAdapter implements ContextEditValidator {
|
|
39
39
|
labelEditValidator: LabelEditValidator;
|
|
40
|
-
constructor(
|
|
40
|
+
constructor(
|
|
41
|
+
readonly modelState: ModelState,
|
|
42
|
+
labelEditValidator: LabelEditValidator
|
|
43
|
+
) {
|
|
41
44
|
this.labelEditValidator = labelEditValidator;
|
|
42
45
|
}
|
|
43
46
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022-
|
|
2
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -133,11 +133,12 @@ export class ModelSubmissionHandler {
|
|
|
133
133
|
* @returns A list of actions to be processed in order to submit the model.
|
|
134
134
|
*/
|
|
135
135
|
async submitModelDirectly(reason?: DirtyStateChangeReason): Promise<Action[]> {
|
|
136
|
-
const root = this.serializeGModel();
|
|
137
|
-
|
|
138
136
|
if (this.diagramConfiguration.layoutKind === ServerLayoutKind.AUTOMATIC && this.layoutEngine) {
|
|
139
137
|
await this.layoutEngine.layout();
|
|
140
138
|
}
|
|
139
|
+
|
|
140
|
+
const root = this.serializeGModel();
|
|
141
|
+
|
|
141
142
|
const result: Action[] = [];
|
|
142
143
|
result.push(
|
|
143
144
|
this.requestModelAction
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022-
|
|
2
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -29,7 +29,7 @@ export class RequestModelActionHandler implements ActionHandler {
|
|
|
29
29
|
actionKinds = [RequestModelAction.KIND];
|
|
30
30
|
|
|
31
31
|
@inject(Logger)
|
|
32
|
-
|
|
32
|
+
protected logger: Logger;
|
|
33
33
|
|
|
34
34
|
@inject(SourceModelStorage)
|
|
35
35
|
protected sourceModelStorage: SourceModelStorage;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022-
|
|
2
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -18,5 +18,8 @@ import { Args } from '@eclipse-glsp/protocol';
|
|
|
18
18
|
export class NavigationTargetResolution {
|
|
19
19
|
static readonly EMPTY = new NavigationTargetResolution([]);
|
|
20
20
|
|
|
21
|
-
constructor(
|
|
21
|
+
constructor(
|
|
22
|
+
readonly elementIds: string[],
|
|
23
|
+
readonly args?: Args
|
|
24
|
+
) {}
|
|
22
25
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022-
|
|
2
|
+
* Copyright (c) 2022-2024 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -16,7 +16,12 @@
|
|
|
16
16
|
|
|
17
17
|
import { GModelElement, GNode } from '@eclipse-glsp/graph';
|
|
18
18
|
import {
|
|
19
|
-
Args,
|
|
19
|
+
Args,
|
|
20
|
+
CreateNodeOperation,
|
|
21
|
+
GhostElement,
|
|
22
|
+
MaybePromise,
|
|
23
|
+
Point,
|
|
24
|
+
SelectAction,
|
|
20
25
|
TriggerNodeCreationAction
|
|
21
26
|
} from '@eclipse-glsp/protocol';
|
|
22
27
|
import { inject, injectable } from 'inversify';
|
|
@@ -62,8 +67,10 @@ export abstract class GModelCreateNodeOperationHandler extends GModelOperationHa
|
|
|
62
67
|
}
|
|
63
68
|
|
|
64
69
|
protected createTriggerNodeCreationAction(elementTypeId: string): TriggerNodeCreationAction {
|
|
65
|
-
return TriggerNodeCreationAction.create(elementTypeId,
|
|
66
|
-
|
|
70
|
+
return TriggerNodeCreationAction.create(elementTypeId, {
|
|
71
|
+
ghostElement: this.createTriggerGhostElement(elementTypeId),
|
|
72
|
+
args: this.createTriggerArgs(elementTypeId)
|
|
73
|
+
});
|
|
67
74
|
}
|
|
68
75
|
|
|
69
76
|
protected createTriggerGhostElement(elementTypeId: string): GhostElement | undefined {
|
package/src/common/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022-
|
|
2
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -14,8 +14,6 @@
|
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
|
|
17
|
-
export * from '@eclipse-glsp/graph';
|
|
18
|
-
export * from '@eclipse-glsp/protocol';
|
|
19
17
|
export * from './actions/action-dispatcher';
|
|
20
18
|
export * from './actions/action-handler';
|
|
21
19
|
export * from './actions/action-handler-registry';
|
|
@@ -64,19 +62,34 @@ export * from './features/navigation/request-navigation-targets-action-handler';
|
|
|
64
62
|
export * from './features/navigation/resolve-navigation-targets-action-handler';
|
|
65
63
|
export * from './features/popup/popup-model-factory';
|
|
66
64
|
export * from './features/popup/request-popup-model-action-handler';
|
|
65
|
+
export * from './features/progress/progress-service';
|
|
67
66
|
export * from './features/type-hints/edge-creation-checker';
|
|
67
|
+
export * from './features/type-hints/request-check-edge-action-handler';
|
|
68
68
|
export * from './features/type-hints/request-type-hints-action-handler';
|
|
69
69
|
export * from './features/validation/model-validator';
|
|
70
70
|
export * from './features/validation/request-markers-handler';
|
|
71
|
-
export * from './gmodel/
|
|
71
|
+
export * from './gmodel/apply-label-edit-operation-handler';
|
|
72
|
+
export * from './gmodel/change-bounds-operation-handler';
|
|
73
|
+
export * from './gmodel/change-routing-points-operation-handler';
|
|
74
|
+
export * from './gmodel/cut-operation-handler';
|
|
75
|
+
export * from './gmodel/delete-operation-handler';
|
|
76
|
+
export * from './gmodel/gmodel-create-edge-operation-handler';
|
|
77
|
+
export * from './gmodel/gmodel-create-node-operation-handler';
|
|
78
|
+
export * from './gmodel/gmodel-diagram-module';
|
|
79
|
+
export * from './gmodel/gmodel-operation-handler';
|
|
80
|
+
export * from './gmodel/paste-operation-handler';
|
|
81
|
+
export * from './gmodel/reconnect-edge-operation-handler';
|
|
72
82
|
export * from './launch/glsp-server-launcher';
|
|
83
|
+
export * from './launch/jsonrpc-server-launcher';
|
|
73
84
|
export * from './operations/compound-operation-handler';
|
|
74
85
|
export * from './operations/create-operation-handler';
|
|
75
86
|
export * from './operations/json-operation-handler';
|
|
76
87
|
export * from './operations/operation-action-handler';
|
|
77
88
|
export * from './operations/operation-handler';
|
|
78
89
|
export * from './operations/operation-handler-registry';
|
|
90
|
+
export * from './protocol/client-action';
|
|
79
91
|
export * from './protocol/glsp-server';
|
|
92
|
+
export * from './reexport';
|
|
80
93
|
export * from './session/client-session';
|
|
81
94
|
export * from './session/client-session-factory';
|
|
82
95
|
export * from './session/client-session-initializer';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2024 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -14,14 +14,6 @@
|
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
|
|
17
|
-
export * from '
|
|
18
|
-
export * from '
|
|
19
|
-
export * from '
|
|
20
|
-
export * from './cut-operation-handler';
|
|
21
|
-
export * from './delete-operation-handler';
|
|
22
|
-
export * from './gmodel-create-edge-operation-handler';
|
|
23
|
-
export * from './gmodel-create-node-operation-handler';
|
|
24
|
-
export * from './gmodel-diagram-module';
|
|
25
|
-
export * from './gmodel-operation-handler';
|
|
26
|
-
export * from './paste-operation-handler';
|
|
27
|
-
export * from './reconnect-edge-operation-handler';
|
|
17
|
+
export * from '@eclipse-glsp/graph';
|
|
18
|
+
export * from '@eclipse-glsp/protocol';
|
|
19
|
+
export * from '@eclipse-glsp/protocol/lib/di';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022-
|
|
2
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -43,7 +43,8 @@ import { Command } from '../command/command';
|
|
|
43
43
|
import { DiagramConfiguration, ServerLayoutKind } from '../diagram/diagram-configuration';
|
|
44
44
|
import { ContextEditValidator } from '../features/directediting/context-edit-validator';
|
|
45
45
|
import { LabelEditValidator } from '../features/directediting/label-edit-validator';
|
|
46
|
-
import { GModelCreateEdgeOperationHandler
|
|
46
|
+
import { GModelCreateEdgeOperationHandler } from '../gmodel/gmodel-create-edge-operation-handler';
|
|
47
|
+
import { GModelCreateNodeOperationHandler } from '../gmodel/gmodel-create-node-operation-handler';
|
|
47
48
|
import { ClientSession } from '../session/client-session';
|
|
48
49
|
import { ClientSessionFactory } from '../session/client-session-factory';
|
|
49
50
|
import { ClientSessionInitializer } from '../session/client-session-initializer';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022-
|
|
2
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -17,7 +17,7 @@ import { Args } from '@eclipse-glsp/protocol';
|
|
|
17
17
|
import { ArgsUtil } from './args-util';
|
|
18
18
|
|
|
19
19
|
export class ClientOptionsUtil {
|
|
20
|
-
|
|
20
|
+
public static FILE_PREFIX = 'file://';
|
|
21
21
|
public static IS_RECONNECTING = 'isReconnecting';
|
|
22
22
|
|
|
23
23
|
public static adaptUri(uri: string): string {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022-
|
|
2
|
+
* Copyright (c) 2022-2024 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
|
|
17
|
-
import { BindingContext } from '@eclipse-glsp/protocol';
|
|
17
|
+
import { BindingContext } from '@eclipse-glsp/protocol/lib/di';
|
|
18
18
|
import { injectable } from 'inversify';
|
|
19
19
|
import { LogLevel, Logger, LoggerConfigOptions, LoggerFactory, NullLogger, getRequestParentName } from './logger';
|
|
20
20
|
|
|
@@ -24,7 +24,10 @@ import { LogLevel, Logger, LoggerConfigOptions, LoggerFactory, NullLogger, getRe
|
|
|
24
24
|
*/
|
|
25
25
|
@injectable()
|
|
26
26
|
export class ConsoleLogger extends Logger {
|
|
27
|
-
constructor(
|
|
27
|
+
constructor(
|
|
28
|
+
public logLevel: LogLevel = LogLevel.none,
|
|
29
|
+
public caller?: string
|
|
30
|
+
) {
|
|
28
31
|
super();
|
|
29
32
|
}
|
|
30
33
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022-
|
|
2
|
+
* Copyright (c) 2022-2024 STMicroelectronics and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -14,7 +14,10 @@
|
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
export class GLSPServerError extends Error {
|
|
17
|
-
constructor(
|
|
17
|
+
constructor(
|
|
18
|
+
message: string,
|
|
19
|
+
readonly cause?: unknown
|
|
20
|
+
) {
|
|
18
21
|
super(message);
|
|
19
22
|
}
|
|
20
23
|
}
|