Skip to content

Commit 93d6b65

Browse files
committed
Disable connection token
Using a flag means we will not need to patch it out. I think this is new from 1.64?
1 parent d972d3e commit 93d6b65

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

src/node/cli.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,7 @@ export interface CodeArgs extends UserProvidedCodeArgs {
774774
help: boolean
775775
port: string
776776
version: boolean
777+
"without-connection-token"?: boolean
777778
"without-browser-env-var"?: boolean
778779
}
779780

@@ -787,7 +788,6 @@ export type SpawnCli = (args: CodeArgs) => Promise<void>
787788
*/
788789
export const toCodeArgs = async (args: DefaultedArgs): Promise<CodeArgs> => {
789790
return {
790-
"connection-token": "0000",
791791
...args,
792792
"accept-server-license-terms": true,
793793
/** Type casting. */

src/node/routes/vscode.ts

+1
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ export class CodeServerRouteWrapper {
137137
this._codeServerMain = await createVSServer(null, {
138138
...(await toCodeArgs(args)),
139139
// TODO: Make the browser helper script work.
140+
"without-connection-token": true,
140141
"without-browser-env-var": true,
141142
})
142143
} catch (error) {

test/unit/node/cli.test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,6 @@ describe("readSocketPath", () => {
730730
describe("toCodeArgs", () => {
731731
const vscodeDefaults = {
732732
...defaults,
733-
"connection-token": "0000",
734733
"accept-server-license-terms": true,
735734
help: false,
736735
port: "8080",

0 commit comments

Comments
 (0)