@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.
Files changed (163) hide show
  1. package/lib/browser/index.d.ts +2 -2
  2. package/lib/browser/index.d.ts.map +1 -1
  3. package/lib/browser/index.js +2 -2
  4. package/lib/browser/index.js.map +1 -1
  5. package/lib/browser/launch/worker-server-launcher.d.ts +3 -4
  6. package/lib/browser/launch/worker-server-launcher.d.ts.map +1 -1
  7. package/lib/browser/launch/worker-server-launcher.js +6 -6
  8. package/lib/browser/launch/worker-server-launcher.js.map +1 -1
  9. package/lib/{common/gmodel/index.d.ts → browser/reexport.d.ts} +3 -13
  10. package/lib/browser/reexport.d.ts.map +1 -0
  11. package/lib/{common/gmodel/index.js → browser/reexport.js} +17 -27
  12. package/lib/browser/reexport.js.map +1 -0
  13. package/lib/common/actions/action-dispatcher.d.ts +3 -2
  14. package/lib/common/actions/action-dispatcher.d.ts.map +1 -1
  15. package/lib/common/actions/action-dispatcher.js +2 -2
  16. package/lib/common/actions/action-dispatcher.js.map +1 -1
  17. package/lib/common/actions/client-action-handler.js.map +1 -1
  18. package/lib/common/command/command-stack.js.map +1 -1
  19. package/lib/common/command/command.js.map +1 -1
  20. package/lib/common/command/recording-command.d.ts +1 -1
  21. package/lib/common/command/recording-command.d.ts.map +1 -1
  22. package/lib/common/command/recording-command.js +1 -1
  23. package/lib/common/command/recording-command.js.map +1 -1
  24. package/lib/common/command/undo-redo-action-handler.js.map +1 -1
  25. package/lib/common/di/binding-target.js.map +1 -1
  26. package/lib/common/di/client-session-module.d.ts +1 -1
  27. package/lib/common/di/client-session-module.d.ts.map +1 -1
  28. package/lib/common/di/client-session-module.js +3 -2
  29. package/lib/common/di/client-session-module.js.map +1 -1
  30. package/lib/common/di/glsp-module.d.ts +2 -2
  31. package/lib/common/di/glsp-module.d.ts.map +1 -1
  32. package/lib/common/di/multi-binding.d.ts +1 -16
  33. package/lib/common/di/multi-binding.d.ts.map +1 -1
  34. package/lib/common/di/multi-binding.js +1 -1
  35. package/lib/common/di/multi-binding.js.map +1 -1
  36. package/lib/common/di/server-module.js.map +1 -1
  37. package/lib/common/features/contextactions/command-palette-action-provider.js.map +1 -1
  38. package/lib/common/features/contextactions/context-actions-provider-registry.js.map +1 -1
  39. package/lib/common/features/contextactions/request-context-actions-handler.js.map +1 -1
  40. package/lib/common/features/directediting/context-edit-validator-registry.js.map +1 -1
  41. package/lib/common/features/directediting/context-edit-validator.d.ts.map +1 -1
  42. package/lib/common/features/directediting/context-edit-validator.js +1 -1
  43. package/lib/common/features/directediting/context-edit-validator.js.map +1 -1
  44. package/lib/common/features/directediting/request-edit-validation-handler.js.map +1 -1
  45. package/lib/common/features/layout/computed-bounds-action-handler.js.map +1 -1
  46. package/lib/common/features/layout/layout-operation-handler.js.map +1 -1
  47. package/lib/common/features/model/gmodel-index.js.map +1 -1
  48. package/lib/common/features/model/gmodel-serializer.js.map +1 -1
  49. package/lib/common/features/model/model-state.js.map +1 -1
  50. package/lib/common/features/model/model-submission-handler.d.ts +1 -1
  51. package/lib/common/features/model/model-submission-handler.d.ts.map +1 -1
  52. package/lib/common/features/model/model-submission-handler.js +2 -2
  53. package/lib/common/features/model/model-submission-handler.js.map +1 -1
  54. package/lib/common/features/model/request-model-action-handler.d.ts +3 -2
  55. package/lib/common/features/model/request-model-action-handler.d.ts.map +1 -1
  56. package/lib/common/features/model/request-model-action-handler.js +1 -1
  57. package/lib/common/features/model/request-model-action-handler.js.map +1 -1
  58. package/lib/common/features/navigation/json-opener-options.js.map +1 -1
  59. package/lib/common/features/navigation/navigation-target-resolution.d.ts +1 -1
  60. package/lib/common/features/navigation/navigation-target-resolution.d.ts.map +1 -1
  61. package/lib/common/features/navigation/navigation-target-resolution.js.map +1 -1
  62. package/lib/common/features/navigation/request-navigation-targets-action-handler.js.map +1 -1
  63. package/lib/common/features/navigation/resolve-navigation-targets-action-handler.js.map +1 -1
  64. package/lib/common/features/popup/request-popup-model-action-handler.js.map +1 -1
  65. package/lib/common/features/type-hints/request-check-edge-action-handler.js.map +1 -1
  66. package/lib/common/features/validation/model-validator.js.map +1 -1
  67. package/lib/common/features/validation/request-markers-handler.js.map +1 -1
  68. package/lib/common/gmodel/change-bounds-operation-handler.js.map +1 -1
  69. package/lib/common/gmodel/change-routing-points-operation-handler.js.map +1 -1
  70. package/lib/common/gmodel/cut-operation-handler.js.map +1 -1
  71. package/lib/common/gmodel/delete-operation-handler.js.map +1 -1
  72. package/lib/common/gmodel/gmodel-create-edge-operation-handler.js.map +1 -1
  73. package/lib/common/gmodel/gmodel-create-node-operation-handler.d.ts +1 -1
  74. package/lib/common/gmodel/gmodel-create-node-operation-handler.d.ts.map +1 -1
  75. package/lib/common/gmodel/gmodel-create-node-operation-handler.js +5 -2
  76. package/lib/common/gmodel/gmodel-create-node-operation-handler.js.map +1 -1
  77. package/lib/common/gmodel/paste-operation-handler.js.map +1 -1
  78. package/lib/common/gmodel/reconnect-edge-operation-handler.js.map +1 -1
  79. package/lib/common/index.d.ts +17 -4
  80. package/lib/common/index.d.ts.map +1 -1
  81. package/lib/common/index.js +17 -4
  82. package/lib/common/index.js.map +1 -1
  83. package/lib/common/launch/glsp-server-launcher.js.map +1 -1
  84. package/lib/common/operations/compound-operation-handler.js.map +1 -1
  85. package/lib/common/operations/json-operation-handler.js.map +1 -1
  86. package/lib/common/operations/operation-action-handler.js.map +1 -1
  87. package/lib/common/operations/operation-handler-registry.js.map +1 -1
  88. package/lib/common/protocol/glsp-server.js.map +1 -1
  89. package/lib/common/reexport.d.ts +19 -0
  90. package/lib/common/reexport.d.ts.map +1 -0
  91. package/lib/common/reexport.js +35 -0
  92. package/lib/common/reexport.js.map +1 -0
  93. package/lib/common/session/client-session-factory.js.map +1 -1
  94. package/lib/common/session/client-session-manager.js.map +1 -1
  95. package/lib/common/session/client-session.js.map +1 -1
  96. package/lib/common/utils/args-util.js.map +1 -1
  97. package/lib/common/utils/client-options-util.d.ts +2 -2
  98. package/lib/common/utils/client-options-util.d.ts.map +1 -1
  99. package/lib/common/utils/client-options-util.js.map +1 -1
  100. package/lib/common/utils/console-logger.d.ts +2 -2
  101. package/lib/common/utils/console-logger.d.ts.map +1 -1
  102. package/lib/common/utils/console-logger.js +1 -1
  103. package/lib/common/utils/console-logger.js.map +1 -1
  104. package/lib/common/utils/glsp-server-error.d.ts +1 -1
  105. package/lib/common/utils/glsp-server-error.d.ts.map +1 -1
  106. package/lib/common/utils/glsp-server-error.js +1 -1
  107. package/lib/common/utils/glsp-server-error.js.map +1 -1
  108. package/lib/common/utils/layout-util.js.map +1 -1
  109. package/lib/common/utils/logger.js.map +1 -1
  110. package/lib/common/utils/promise-queue.js.map +1 -1
  111. package/lib/common/utils/registry.js.map +1 -1
  112. package/lib/node/abstract-json-model-storage.js.map +1 -1
  113. package/lib/node/di/app-module.d.ts +2 -2
  114. package/lib/node/di/app-module.d.ts.map +1 -1
  115. package/lib/node/di/app-module.js.map +1 -1
  116. package/lib/node/di/winston-logger.d.ts +1 -1
  117. package/lib/node/di/winston-logger.d.ts.map +1 -1
  118. package/lib/node/di/winston-logger.js +6 -1
  119. package/lib/node/di/winston-logger.js.map +1 -1
  120. package/lib/node/index.d.ts +2 -2
  121. package/lib/node/index.d.ts.map +1 -1
  122. package/lib/node/index.js +2 -2
  123. package/lib/node/index.js.map +1 -1
  124. package/lib/node/launch/cli-parser.js.map +1 -1
  125. package/lib/node/launch/socket-cli-parser.js.map +1 -1
  126. package/lib/node/launch/socket-server-launcher.d.ts +0 -1
  127. package/lib/node/launch/socket-server-launcher.d.ts.map +1 -1
  128. package/lib/node/launch/socket-server-launcher.js +2 -3
  129. package/lib/node/launch/socket-server-launcher.js.map +1 -1
  130. package/lib/node/launch/websocket-server-launcher.js.map +1 -1
  131. package/lib/node/reexport.d.ts +17 -0
  132. package/lib/node/reexport.d.ts.map +1 -0
  133. package/lib/node/reexport.js +33 -0
  134. package/lib/node/reexport.js.map +1 -0
  135. package/package.json +7 -7
  136. package/src/browser/index.ts +2 -2
  137. package/src/browser/launch/worker-server-launcher.ts +4 -5
  138. package/src/browser/reexport.ts +16 -0
  139. package/src/common/.indexignore +2 -0
  140. package/src/common/actions/action-dispatcher.ts +13 -4
  141. package/src/common/command/recording-command.spec.ts +5 -2
  142. package/src/common/command/recording-command.ts +6 -2
  143. package/src/common/di/client-session-module.ts +3 -2
  144. package/src/common/di/glsp-module.ts +2 -2
  145. package/src/common/di/multi-binding.ts +3 -2
  146. package/src/common/features/directediting/context-edit-validator.ts +5 -2
  147. package/src/common/features/model/model-submission-handler.ts +4 -3
  148. package/src/common/features/model/request-model-action-handler.ts +2 -2
  149. package/src/common/features/navigation/navigation-target-resolution.ts +5 -2
  150. package/src/common/gmodel/gmodel-create-node-operation-handler.ts +11 -4
  151. package/src/common/index.ts +17 -4
  152. package/src/common/{gmodel/index.ts → reexport.ts} +4 -12
  153. package/src/common/test/mock-util.ts +3 -2
  154. package/src/common/utils/client-options-util.ts +2 -2
  155. package/src/common/utils/console-logger.ts +6 -3
  156. package/src/common/utils/glsp-server-error.ts +5 -2
  157. package/src/node/di/app-module.ts +2 -2
  158. package/src/node/di/winston-logger.ts +10 -3
  159. package/src/node/index.ts +2 -2
  160. package/src/node/launch/socket-server-launcher.ts +1 -3
  161. package/src/node/reexport.ts +16 -0
  162. package/lib/common/gmodel/index.d.ts.map +0 -1
  163. package/lib/common/gmodel/index.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /********************************************************************************
2
- * Copyright (c) 2022-2023 STMicroelectronics and others.
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-2023 STMicroelectronics and others.
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(protected baseLogger: winston.Logger, public caller?: string) {
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
- return JSON.stringify(param, undefined, 4);
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-2023 EclipseSource and others.
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-2023 STMicroelectronics and others.
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"}