Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 688ae31

Browse files
committedMar 18, 2022
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 34996e0 commit 688ae31

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
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) {

0 commit comments

Comments
 (0)
Please sign in to comment.