Skip to content

Commit

Permalink
fix #3
Browse files Browse the repository at this point in the history
  • Loading branch information
st-vi committed Oct 18, 2023
1 parent 05a70f0 commit 5e35c52
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 8 deletions.
28 changes: 28 additions & 0 deletions WebSocketClient/UVLPlayground/package-lock.json

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

16 changes: 9 additions & 7 deletions WebSocketClient/UVLPlayground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@
"preview": "vite preview"
},
"devDependencies": {
"@types/node": "^20.8.7",
"@types/vscode": "~1.83.0",
"typescript": "^5.0.2",
"vite": "^4.5.0",
"vscode-languageserver-types": "~3.17.3",
"@types/vscode": "~1.83.0"
"vscode-languageserver-types": "~3.17.3"
},
"dependencies": {
"monaco-editor": "^0.44.0",
"monaco-languageclient": "^6.6.0",
"@codingame/monaco-vscode-configuration-service-override": "~1.83.2",
"@codingame/monaco-vscode-editor-service-override": "~1.83.2",
"@codingame/monaco-vscode-files-service-override": "~1.83.2",
Expand All @@ -26,10 +25,13 @@
"@codingame/monaco-vscode-textmate-service-override": "~1.83.2",
"@codingame/monaco-vscode-theme-defaults-default-extension": "~1.83.2",
"@codingame/monaco-vscode-theme-service-override": "~1.83.2",
"dotenv": "^16.3.1",
"monaco-editor": "^0.44.0",
"monaco-editor-workers": "~0.44.0",
"monaco-languageclient": "^6.6.0",
"vite": "~4.4.11",
"vscode-json-languageservice": "~5.3.7",
"vscode-uri": "~3.0.8",
"vscode-ws-jsonrpc": "~3.0.0",
"monaco-editor-workers": "~0.44.0",
"vite": "~4.4.11"
"vscode-ws-jsonrpc": "~3.0.0"
}
}
5 changes: 4 additions & 1 deletion WebSocketClient/UVLPlayground/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ export const startPythonClient = async () => {
registerFileSystemOverlay(1, fileSystemProvider);

// create the web socket and configure to start the language client on open, can add extra parameters to the url if needed.
createWebSocket(createUrl('590c9306-8ced-48f6-85f2-bb8caa1bfd52.ul.bw-cloud-instance.org', 30000, '/pyright', {
createWebSocket(createUrl(
process.env.UVLS_HOST_NAME === undefined ? 'localhost' : process.env.UVLS_HOST_NAME,
process.env.PORT === undefined ? 30000 : parseInt(process.env.PORT),
'/pyright', {
// Used to parse an auth token or additional parameters such as import IDs to the language server
authorization: 'UserAuth'
// By commenting above line out and commenting below line in, connection to language server will be denied.
Expand Down

0 comments on commit 5e35c52

Please sign in to comment.