@eclipse-glsp/server 2.2.0-next.88 → 2.2.0-next.89
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.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.js +1 -1
- package/lib/common/features/model/model-submission-handler.js.map +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/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.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 +4 -3
- 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/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 +1 -1
- 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/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 +5 -2
- 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
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) 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
|
|
@@ -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 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
|
}
|
|
@@ -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 } from 'inversify';
|
|
18
18
|
import * as winston from 'winston';
|
|
19
19
|
import { InjectionContainer, LogLevel, Logger, LoggerFactory, getRequestParentName } 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
|
|
@@ -17,7 +17,10 @@ import * as winston from 'winston';
|
|
|
17
17
|
import { asLogLevel, Logger, LogLevel } from '../../common/utils/logger';
|
|
18
18
|
|
|
19
19
|
export class WinstonLogger extends Logger {
|
|
20
|
-
constructor(
|
|
20
|
+
constructor(
|
|
21
|
+
protected baseLogger: winston.Logger,
|
|
22
|
+
public caller?: string
|
|
23
|
+
) {
|
|
21
24
|
super();
|
|
22
25
|
}
|
|
23
26
|
|
package/src/node/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,7 +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 './abstract-json-model-storage';
|
|
18
17
|
export * from './di/app-module';
|
|
19
18
|
export * from './di/winston-logger';
|
|
@@ -22,3 +21,4 @@ export * from './launch/cli-parser';
|
|
|
22
21
|
export * from './launch/socket-cli-parser';
|
|
23
22
|
export * from './launch/socket-server-launcher';
|
|
24
23
|
export * from './launch/websocket-server-launcher';
|
|
24
|
+
export * from './reexport';
|
|
@@ -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
|
|
@@ -20,8 +20,6 @@ import * as jsonrpc from 'vscode-jsonrpc/node';
|
|
|
20
20
|
import { JsonRpcGLSPServerLauncher } from '../../common/launch/jsonrpc-server-launcher';
|
|
21
21
|
import { Logger } from '../../common/utils/logger';
|
|
22
22
|
|
|
23
|
-
export const START_UP_COMPLETE_MSG = '[GLSP-Server]:Startup completed. Accepting requests on port:';
|
|
24
|
-
|
|
25
23
|
@injectable()
|
|
26
24
|
export class SocketServerLauncher extends JsonRpcGLSPServerLauncher<net.TcpSocketConnectOpts> {
|
|
27
25
|
@inject(Logger) protected override logger: Logger;
|
|
@@ -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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/gmodel/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,cAAc,sCAAsC,CAAC;AACrD,cAAc,mCAAmC,CAAC;AAClD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oCAAoC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/gmodel/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;;;;;AAElF,uEAAqD;AACrD,oEAAkD;AAClD,4EAA0D;AAC1D,0DAAwC;AACxC,6DAA2C;AAC3C,yEAAuD;AACvD,yEAAuD;AACvD,0DAAwC;AACxC,6DAA2C;AAC3C,4DAA0C;AAC1C,qEAAmD"}
|