Skip to content

Commit

Permalink
fix(demo): adapt code to lib update
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc Mangeonjean committed Jun 12, 2023
1 parent 0b805e0 commit bb1af1b
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 81 deletions.
136 changes: 73 additions & 63 deletions demo/package-lock.json

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

28 changes: 16 additions & 12 deletions demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,33 @@
"start:debugServer": "node --loader ts-node/esm src/debugServer.ts"
},
"devDependencies": {
"@types/dockerode": "^3.3.16",
"@types/dockerode": "^3.3.19",
"@types/express": "^4.17.17",
"@types/wicg-file-system-access": "^2020.9.6",
"@types/ws": "^8.5.4",
"@types/ws": "^8.5.5",
"ts-node": "^10.9.1",
"typescript": "~5.0.4",
"vite": "~4.3.4"
"typescript": "~5.1.3",
"vite": "~4.3.9"
},
"enabledApiProposals": ["fileSearchProvider", "textSearchProvider"],
"enabledApiProposals": [
"fileSearchProvider",
"textSearchProvider"
],
"dependencies": {
"ansi-colors": "^4.1.3",
"dockerode": "^3.3.5",
"express": "^4.18.2",
"monaco-editor": "^0.38.0",
"monaco-editor": "^0.39.0",
"vscode": "file:../",
"vscode-oniguruma": "~1.7.0",
"ws": "^8.13.0",
"xterm": "^5.1.0",
"xterm-addon-canvas": "^0.3.0",
"xterm-addon-search": "^0.11.0",
"xterm-addon-serialize": "^0.9.0",
"xterm-addon-unicode11": "^0.5.0",
"xterm-addon-webgl": "^0.14.0"
"xterm": "5.2.1",
"xterm-addon-canvas": "0.4.0",
"xterm-addon-search": "0.12.0",
"xterm-addon-serialize": "0.10.0",
"xterm-addon-unicode11": "0.5.0",
"xterm-addon-webgl": "0.15.0",
"xterm-addon-image": "0.4.1"
},
"volta": {
"node": "18.14.2",
Expand Down
10 changes: 5 additions & 5 deletions demo/src/debugServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ async function exitHandler () {
process.exit()
}
}
process.on('exit', exitHandler.bind(null, { cleanup: true }))
process.on('SIGINT', exitHandler.bind(null, { exit: true }))
process.on('SIGUSR1', exitHandler.bind(null, { exit: true }))
process.on('SIGUSR2', exitHandler.bind(null, { exit: true }))
process.on('uncaughtException', exitHandler.bind(null, { exit: true }))
process.on('exit', exitHandler)
process.on('SIGINT', exitHandler)
process.on('SIGUSR1', exitHandler)
process.on('SIGUSR2', exitHandler)
process.on('uncaughtException', exitHandler)

const container = await containerPromise
await prepareContainer(container)
Expand Down
2 changes: 1 addition & 1 deletion demo/src/features/debugger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ debuggerVscodeApi.debug.registerDebugAdapterDescriptorFactory('javascript', {
})
return new debuggerVscodeApi.DebugAdapterInlineImplementation(adapter)
}
})
})

0 comments on commit bb1af1b

Please sign in to comment.