Skip to content

Commit

Permalink
Fix json server startup. Integrated monaco-vscode-api 1.82.5-next.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisalmen committed Oct 11, 2023
1 parent fe747da commit d4601a4
Show file tree
Hide file tree
Showing 9 changed files with 99 additions and 96 deletions.
136 changes: 68 additions & 68 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions packages/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "monaco-languageclient",
"version": "6.5.3-next.0",
"version": "6.5.3-next.3",
"description": "Monaco Language client implementation",
"author": {
"name": "TypeFox GmbH",
Expand Down Expand Up @@ -49,15 +49,15 @@
],
"dependencies": {
"monaco-editor": "~0.43.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.82.5-next.0 <1.83.0",
"@codingame/monaco-vscode-editor-service-override": "~1.82.5-next.0",
"@codingame/monaco-vscode-languages-service-override": "~1.82.5-next.0",
"@codingame/monaco-vscode-model-service-override": "~1.82.5-next.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.82.5-next.1 <1.83.0",
"@codingame/monaco-vscode-editor-service-override": "~1.82.5-next.1",
"@codingame/monaco-vscode-languages-service-override": "~1.82.5-next.1",
"@codingame/monaco-vscode-model-service-override": "~1.82.5-next.1",
"vscode-languageclient": "~8.1.0"
},
"peerDependencies": {
"monaco-editor": "~0.43.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.82.5-next.0 <1.83.0"
"vscode": "npm:@codingame/monaco-vscode-api@>=1.82.5-next.1 <1.83.0"
},
"peerDependenciesMeta": {
"monaco-editor": {
Expand Down
22 changes: 11 additions & 11 deletions packages/examples/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "monaco-languageclient-examples",
"version": "6.5.3-next.0",
"version": "6.5.3-next.3",
"description": "Monaco Language client examples",
"author": {
"name": "TypeFox GmbH",
Expand Down Expand Up @@ -43,20 +43,20 @@
}
},
"dependencies": {
"@codingame/monaco-vscode-configuration-service-override": "~1.82.5-next.0",
"@codingame/monaco-vscode-editor-service-override": "~1.82.5-next.0",
"@codingame/monaco-vscode-files-service-override": "~1.82.5-next.0",
"@codingame/monaco-vscode-json-default-extension": "~1.82.5-next.0",
"@codingame/monaco-vscode-keybindings-service-override": "~1.82.5-next.0",
"@codingame/monaco-vscode-python-default-extension": "~1.82.5-next.0",
"@codingame/monaco-vscode-textmate-service-override": "~1.82.5-next.0",
"@codingame/monaco-vscode-theme-defaults-default-extension": "~1.82.5-next.0",
"@codingame/monaco-vscode-theme-service-override": "~1.82.5-next.0",
"@codingame/monaco-vscode-configuration-service-override": "~1.82.5-next.1",
"@codingame/monaco-vscode-editor-service-override": "~1.82.5-next.1",
"@codingame/monaco-vscode-files-service-override": "~1.82.5-next.1",
"@codingame/monaco-vscode-json-default-extension": "~1.82.5-next.1",
"@codingame/monaco-vscode-keybindings-service-override": "~1.82.5-next.1",
"@codingame/monaco-vscode-python-default-extension": "~1.82.5-next.1",
"@codingame/monaco-vscode-textmate-service-override": "~1.82.5-next.1",
"@codingame/monaco-vscode-theme-defaults-default-extension": "~1.82.5-next.1",
"@codingame/monaco-vscode-theme-service-override": "~1.82.5-next.1",
"express": "~4.18.2",
"langium": "~2.0.2",
"langium-statemachine-dsl": "~2.0.0",
"monaco-editor-workers": "~0.43.0",
"monaco-languageclient": "~6.5.3-next.0",
"monaco-languageclient": "~6.5.3-next.3",
"pyright": "~1.1.330",
"react": "~18.2.0",
"react-dom": "~18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/examples/src/common/server-commons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ import { Message, InitializeRequest, InitializeParams } from 'vscode-languageser
export const launchLanguageServer = (serverName: string, socket: IWebSocket, baseDir: string, relativeDir: string) => {
// start the language server as an external process
const ls = resolve(baseDir, relativeDir);
const serverConnection = createServerProcess(serverName, 'node', [ls, '--stdio']);

const reader = new WebSocketMessageReader(socket);
const writer = new WebSocketMessageWriter(socket);
const socketConnection = createConnection(reader, writer, () => socket.dispose());
const serverConnection = createServerProcess(serverName, 'node', [ls, '--stdio']);
if (serverConnection) {
forward(socketConnection, serverConnection, message => {
if (Message.isRequest(message)) {
Expand Down
9 changes: 6 additions & 3 deletions packages/examples/src/json/server/json-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,9 @@ export class JsonServer {
}
}

const connection = createConnection(ProposedFeatures.all);
const ls = new JsonServer(connection);
ls.start();
const scriptExec = process.argv[2];
if (scriptExec === '--stdio') {
const connection = createConnection(ProposedFeatures.all);
const ls = new JsonServer(connection);
ls.start();
}
4 changes: 2 additions & 2 deletions packages/verify/pnpm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "0.0.0",
"private": "true",
"dependencies": {
"monaco-languageclient": "~6.5.3-next.0",
"monaco-languageclient": "~6.5.3-next.3",
"monaco-editor": "~0.43.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.82.5-next.0 <1.83.0"
"vscode": "npm:@codingame/monaco-vscode-api@>=1.82.5-next.1 <1.83.0"
},
"devDependencies": {
"shx": "~0.3.4"
Expand Down
4 changes: 2 additions & 2 deletions packages/verify/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"type": "module",
"dependencies": {
"monaco-editor-workers": "~0.43.0",
"monaco-languageclient": "~6.5.3-next.0",
"monaco-languageclient-examples": "~6.5.3-next.0",
"monaco-languageclient": "~6.5.3-next.3",
"monaco-languageclient-examples": "~6.5.3-next.3",
"vscode-ws-jsonrpc": "~3.0.0"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit d4601a4

Please sign in to comment.