mirror of https://github.com/coder/code-server.git
Compare commits
5 Commits
882993121a
...
77ba0e9908
Author | SHA1 | Date |
---|---|---|
dependabot[bot] | 77ba0e9908 | |
Asher | bea906f90b | |
Asher | 15752526bd | |
Asher | 7c298653f1 | |
Olivier Benz | fc6064dcd3 |
|
@ -138,8 +138,6 @@ jobs:
|
|||
package-lock.json
|
||||
test/package-lock.json
|
||||
|
||||
- run: SKIP_SUBMODULE_DEPS=1 npm ci
|
||||
|
||||
- name: Install cross-compiler and system dependencies
|
||||
run: |
|
||||
dpkg --add-architecture $TARGET_ARCH
|
||||
|
@ -151,7 +149,10 @@ jobs:
|
|||
libsecret-1-dev:$TARGET_ARCH \
|
||||
libkrb5-dev:$TARGET_ARCH \
|
||||
ca-certificates \
|
||||
curl wget rsync gettext-base
|
||||
curl wget rsync gettext-base \
|
||||
python3
|
||||
|
||||
- run: SKIP_SUBMODULE_DEPS=1 npm ci
|
||||
|
||||
- name: Install nfpm
|
||||
run: |
|
||||
|
|
|
@ -49,7 +49,9 @@ export interface OpenCommandPipeArgs {
|
|||
export const runCodeCli = async (args: DefaultedArgs): Promise<void> => {
|
||||
logger.debug("Running Code CLI")
|
||||
try {
|
||||
const mod = require(path.join(vsRootPath, "out/server-main")) as VSCodeModule
|
||||
// See vscode.loadVSCode for more on this jank.
|
||||
const modPath = path.join(vsRootPath, "out/server-main.js")
|
||||
const mod = (await eval(`import("${modPath}")`)) as VSCodeModule
|
||||
const serverModule = await mod.loadCodeWithNls()
|
||||
await serverModule.spawnCli(await toCodeArgs(args))
|
||||
// Rather than have the caller handle errors and exit, spawnCli will exit
|
||||
|
|
Loading…
Reference in New Issue