mirror of
https://github.com/coder/code-server.git
synced 2026-05-05 12:05:18 +02:00
Set session socket into environment variable (#6282)
* Avoid spawning code-server with --reuse-window and --new-window These flags mean the user explicitly wants to open in an existing instance so if the socket is down it should error rather than try to spawn code-server normally. * Set session socket into environment variable While I was at it I added a CLI flag to override the default. I also swapped the default to --user-data-dir. The value is set on an environment variable so it can be used by the extension host similar to VSCODE_IPC_HOOK_CLI. * Add e2e test for opening files externally
This commit is contained in:
@@ -4,10 +4,7 @@ import * as http from "http"
|
||||
import * as path from "path"
|
||||
import { HttpCode } from "../common/http"
|
||||
import { listen } from "./app"
|
||||
import { canConnect, paths } from "./util"
|
||||
|
||||
// Socket path of the daemonized code-server instance.
|
||||
export const DEFAULT_SOCKET_PATH = path.join(paths.data, `code-server-ipc.sock`)
|
||||
import { canConnect } from "./util"
|
||||
|
||||
export interface EditorSessionEntry {
|
||||
workspace: {
|
||||
|
||||
Reference in New Issue
Block a user