File tree Expand file tree Collapse file tree 3 files changed +807
-1231
lines changed
examples/workflow-webapp/src Expand file tree Collapse file tree 3 files changed +807
-1231
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import {
2525 TYPES
2626} from '@eclipse-glsp/client' ;
2727import { getParameters } from '@eclipse-glsp/ide' ;
28- import { ApplicationIdProvider , GLSPClient } from '@eclipse-glsp/protocol' ;
28+ import { ApplicationIdProvider , GLSPClient , listen } from '@eclipse-glsp/protocol' ;
2929import { MessageConnection } from 'vscode-jsonrpc' ;
3030import createContainer from './di.config' ;
3131
@@ -47,10 +47,8 @@ const container = createContainer(widgetId);
4747const diagramServer = container . get < GLSPDiagramServer > ( TYPES . ModelSource ) ;
4848diagramServer . clientId = clientId ;
4949
50- import ( 'vscode-ws-jsonrpc' ) . then ( jsonrpc => {
51- const websocket = new WebSocket ( `ws://localhost:${ port } /${ id } ` ) ;
52- jsonrpc . listen ( { webSocket : websocket , onConnection : connection => initialize ( connection ) } ) ;
53- } ) ;
50+ const websocket = new WebSocket ( `ws://localhost:${ port } /${ id } ` ) ;
51+ listen ( websocket , connection => initialize ( connection ) ) ;
5452
5553async function initialize ( connectionProvider : MessageConnection ) : Promise < void > {
5654 const client = new BaseJsonrpcGLSPClient ( { id, connectionProvider } ) ;
Original file line number Diff line number Diff line change 2323 "watch" : " lerna run --parallel watch"
2424 },
2525 "devDependencies" : {
26- "@eclipse-glsp/dev" : " 1.1.0-next.164cf99.124 " ,
26+ "@eclipse-glsp/dev" : " 1.1.0-next.7026c40.129 " ,
2727 "@types/node" : " 16.x" ,
2828 "copyfiles" : " ^2.4.1" ,
2929 "typescript" : " ^4.9.3"
3030 },
3131 "engines" : {
32- "node" : " >=14.18 .0" ,
32+ "node" : " >=16.11 .0" ,
3333 "yarn" : " >=1.7.0 <2.x.x"
3434 }
3535}
You can’t perform that action at this time.
0 commit comments