@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
|
@@ -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
|
|
|
@@ -71,6 +74,10 @@ export class WinstonLogger extends Logger {
|
|
|
71
74
|
return `${param.message}
|
|
72
75
|
${param.stack || ''}`;
|
|
73
76
|
}
|
|
74
|
-
|
|
77
|
+
try {
|
|
78
|
+
return JSON.stringify(param, undefined, 4);
|
|
79
|
+
} catch (_) {
|
|
80
|
+
return '';
|
|
81
|
+
}
|
|
75
82
|
}
|
|
76
83
|
}
|
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"}
|