diff --git a/src/node/entry.ts b/src/node/entry.ts index 685f62f36149d2e660edbd3dac21279f35b6e7b5..27b76f4f3886640e899e15608e242206ef056b15 100644 --- a/src/node/entry.ts +++ b/src/node/entry.ts @@ -1,32 +1,13 @@ import { logger } from "@coder/logger" import { optionDescriptions, parse, readConfigFile, setDefaults, shouldOpenInExistingInstance } from "./cli" -import { commit, pkgName, version } from "./constants" +import { commit, version } from "./constants" import { openInExistingInstance, runCodeServer, runVsCodeCli, shouldSpawnCliProcess } from "./main" import { monkeyPatchProxyProtocols } from "./proxy_agent" -import { loadAMDModule } from "./util" import { isChild, wrapper } from "./wrapper" -const cliPipe = process.env["VSCODE_IPC_HOOK_CLI"] as string -const cliCommand = process.env["VSCODE_CLIENT_COMMAND"] as string - async function entry(): Promise { monkeyPatchProxyProtocols() - if (cliPipe || cliCommand) { - const remoteAgentMain = await loadAMDModule("vs/server/remoteCli", "main") - - remoteAgentMain( - { - productName: pkgName, - version, - commit, - executableName: pkgName, - }, - process.argv.slice(2), - ) - return - } - // There's no need to check flags like --help or to spawn in an existing // instance for the child process because these would have already happened in // the parent and the child wouldn't have been spawned. We also get the diff --git a/vendor/package.json b/vendor/package.json index 40fe2a2a75493540a0f3f2e2a558573987de6cec..12e95f6299bbdf45bcfaaae82d7e2cf742da4082 100644 --- a/vendor/package.json +++ b/vendor/package.json @@ -7,6 +7,6 @@ "postinstall": "./postinstall.sh" }, "devDependencies": { - "code-oss-dev": "cdr/vscode#5e0c6f3b95ed032e62c49101ae502a46c62ef202" + "code-oss-dev": "cdr/vscode#c2a251c6afaa13fbebf97fcd8a68192f8cf46031" } } diff --git a/vendor/yarn.lock b/vendor/yarn.lock index 2f652205884155ce8ddaa2961c2dc47473e8b6c6..4a8833afcde329e4c5d69a2cf2e36ae44e502818 100644 --- a/vendor/yarn.lock +++ b/vendor/yarn.lock @@ -296,9 +296,9 @@ clone-response@^1.0.2: dependencies: mimic-response "^1.0.0" -code-oss-dev@cdr/vscode#5e0c6f3b95ed032e62c49101ae502a46c62ef202: +code-oss-dev@cdr/vscode#c2a251c6afaa13fbebf97fcd8a68192f8cf46031: version "1.61.1" - resolved "https://codeload.github.com/cdr/vscode/tar.gz/5e0c6f3b95ed032e62c49101ae502a46c62ef202" + resolved "https://codeload.github.com/cdr/vscode/tar.gz/c2a251c6afaa13fbebf97fcd8a68192f8cf46031" dependencies: "@microsoft/applicationinsights-web" "^2.6.4" "@vscode/sqlite3" "4.0.12"