@@ -31,7 +31,7 @@ export enum LogLevel {
31
31
32
32
export class OptionalString extends Optional < string > { }
33
33
34
- export interface Args extends CodeServerLib . ServerParsedArgs {
34
+ export interface Args extends CodeServerLib . NativeParsedArgs {
35
35
config ?: string
36
36
auth ?: AuthType
37
37
password ?: string
@@ -149,7 +149,8 @@ const options: Options<Required<Args>> = {
149
149
150
150
// These two have been deprecated by bindAddr.
151
151
host : { type : "string" , description : "" } ,
152
- port : { type : "string" , description : "" } ,
152
+ // NOTE@jsjoeio
153
+ // port has now been deprecated by bindAddr
153
154
154
155
socket : { type : "string" , path : true , description : "Path to a socket (bind-addr will be ignored)." } ,
155
156
version : { type : "boolean" , short : "v" , description : "Display version information." } ,
@@ -194,7 +195,10 @@ const options: Options<Required<Args>> = {
194
195
beta : true ,
195
196
} ,
196
197
198
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
199
+ // @ts -ignore
197
200
connectionToken : { type : "string" } ,
201
+ /* eslint-enable @typescript-eslint/ban-ts-comment */
198
202
"connection-secret" : {
199
203
type : "string" ,
200
204
description :
@@ -277,8 +281,8 @@ export function splitOnFirstEquals(str: string): string[] {
277
281
export const createDefaultArgs = ( ) : Args => {
278
282
return {
279
283
_ : [ ] ,
280
- workspace : "" ,
281
- folder : "" ,
284
+ // workspace: "",
285
+ // folder: "",
282
286
}
283
287
}
284
288
@@ -486,7 +490,7 @@ export async function setDefaults(cliArgs: Args, configArgs?: ConfigArgs): Promi
486
490
487
491
const addr = bindAddrFromAllSources ( configArgs || createDefaultArgs ( ) , cliArgs )
488
492
args . host = addr . host
489
- args . port = addr . port . toString ( )
493
+ // args.port = addr.port.toString()
490
494
491
495
// If we're being exposed to the cloud, we listen on a random address and
492
496
// disable auth.
0 commit comments