@@ -31,7 +31,7 @@ export enum LogLevel {
3131
3232export class OptionalString extends Optional < string > { }
3333
34- export interface Args extends CodeServerLib . ServerParsedArgs {
34+ export interface Args extends CodeServerLib . NativeParsedArgs {
3535 config ?: string
3636 auth ?: AuthType
3737 password ?: string
@@ -149,7 +149,8 @@ const options: Options<Required<Args>> = {
149149
150150 // These two have been deprecated by bindAddr.
151151 host : { type : "string" , description : "" } ,
152- port : { type : "string" , description : "" } ,
152+ // NOTE@jsjoeio
153+ // port has now been deprecated by bindAddr
153154
154155 socket : { type : "string" , path : true , description : "Path to a socket (bind-addr will be ignored)." } ,
155156 version : { type : "boolean" , short : "v" , description : "Display version information." } ,
@@ -194,7 +195,10 @@ const options: Options<Required<Args>> = {
194195 beta : true ,
195196 } ,
196197
198+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
199+ // @ts -ignore
197200 connectionToken : { type : "string" } ,
201+ /* eslint-enable @typescript-eslint/ban-ts-comment */
198202 "connection-secret" : {
199203 type : "string" ,
200204 description :
@@ -277,8 +281,8 @@ export function splitOnFirstEquals(str: string): string[] {
277281export const createDefaultArgs = ( ) : Args => {
278282 return {
279283 _ : [ ] ,
280- workspace : "" ,
281- folder : "" ,
284+ // workspace: "",
285+ // folder: "",
282286 }
283287}
284288
@@ -486,7 +490,7 @@ export async function setDefaults(cliArgs: Args, configArgs?: ConfigArgs): Promi
486490
487491 const addr = bindAddrFromAllSources ( configArgs || createDefaultArgs ( ) , cliArgs )
488492 args . host = addr . host
489- args . port = addr . port . toString ( )
493+ // args.port = addr.port.toString()
490494
491495 // If we're being exposed to the cloud, we listen on a random address and
492496 // disable auth.
0 commit comments