File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed
Expand file tree Collapse file tree 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 {
833833 version : boolean
834834 "without-connection-token" ?: boolean
835835 "without-browser-env-var" ?: boolean
836- compatibility : string
837- log : string [ ] | undefined
836+ compatibility ? : string
837+ log ? : string [ ]
838838}
839839
840840/**
@@ -843,15 +843,12 @@ export interface CodeArgs extends UserProvidedCodeArgs {
843843export type SpawnCodeCli = ( args : CodeArgs ) => Promise < void >
844844
845845/**
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.
847848 */
848849export const toCodeArgs = async ( args : DefaultedArgs ) : Promise < CodeArgs > => {
849850 return {
850851 ...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" ,
855852 /** Type casting. */
856853 help : ! ! args . help ,
857854 version : ! ! args . version ,
Original file line number Diff line number Diff line change @@ -54,6 +54,10 @@ export const ensureVSCodeLoaded = async (
5454 try {
5555 vscodeServer = await createVSServer ( null , {
5656 ...( 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" ,
5761 "without-connection-token" : true ,
5862 } )
5963 } catch ( error ) {
Original file line number Diff line number Diff line change @@ -912,8 +912,6 @@ cert: false`)
912912describe ( "toCodeArgs" , ( ) => {
913913 const vscodeDefaults = {
914914 ...defaults ,
915- "accept-server-license-terms" : true ,
916- compatibility : "1.64" ,
917915 help : false ,
918916 port : "8080" ,
919917 version : false ,
You can’t perform that action at this time.
0 commit comments