File tree 3 files changed +8
-9
lines changed
3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -833,8 +833,8 @@ export interface CodeArgs extends UserProvidedCodeArgs {
833
833
version : boolean
834
834
"without-connection-token" ?: boolean
835
835
"without-browser-env-var" ?: boolean
836
- compatibility : string
837
- log : string [ ] | undefined
836
+ compatibility ? : string
837
+ log ? : string [ ]
838
838
}
839
839
840
840
/**
@@ -843,15 +843,12 @@ export interface CodeArgs extends UserProvidedCodeArgs {
843
843
export type SpawnCodeCli = ( args : CodeArgs ) => Promise < void >
844
844
845
845
/**
846
- * Convert our arguments to VS Code server arguments.
846
+ * Convert our arguments to equivalent VS Code server arguments.
847
+ * Does not add any extra arguments.
847
848
*/
848
849
export const toCodeArgs = async ( args : DefaultedArgs ) : Promise < CodeArgs > => {
849
850
return {
850
851
...args ,
851
- "accept-server-license-terms" : true ,
852
- // This seems to be used to make the connection token flags optional (when
853
- // set to 1.63) but we have always included them.
854
- compatibility : "1.64" ,
855
852
/** Type casting. */
856
853
help : ! ! args . help ,
857
854
version : ! ! args . version ,
Original file line number Diff line number Diff line change @@ -54,6 +54,10 @@ export const ensureVSCodeLoaded = async (
54
54
try {
55
55
vscodeServer = await createVSServer ( null , {
56
56
...( await toCodeArgs ( req . args ) ) ,
57
+ "accept-server-license-terms" : true ,
58
+ // This seems to be used to make the connection token flags optional (when
59
+ // set to 1.63) but we have always included them.
60
+ compatibility : "1.64" ,
57
61
"without-connection-token" : true ,
58
62
} )
59
63
} catch ( error ) {
Original file line number Diff line number Diff line change @@ -912,8 +912,6 @@ cert: false`)
912
912
describe ( "toCodeArgs" , ( ) => {
913
913
const vscodeDefaults = {
914
914
...defaults ,
915
- "accept-server-license-terms" : true ,
916
- compatibility : "1.64" ,
917
915
help : false ,
918
916
port : "8080" ,
919
917
version : false ,
You can’t perform that action at this time.
0 commit comments