4
4
* Licensed under the MIT License. See License.txt in the project root for license information.
5
5
*--------------------------------------------------------------------------------------------*/
6
6
7
- import type { NLSConfiguration , InternalNLSConfiguration } from '../../../base/node/languagePacks' ;
8
7
import type * as http from 'http' ;
9
8
import type * as net from 'net' ;
10
- import type { AuthType } from 'vs/ base/common/auth ' ;
9
+ import type { InternalNLSConfiguration , NLSConfiguration } from '../../../ base/node/languagePacks ' ;
11
10
12
11
declare global {
13
12
namespace CodeServerLib {
13
+ export enum AuthType {
14
+ Password = 'password' ,
15
+ None = 'none' ,
16
+ }
14
17
15
18
export interface ServerParsedArgs {
16
19
auth : AuthType ;
@@ -47,7 +50,7 @@ declare global {
47
50
'list-extensions' ?: boolean ;
48
51
'locate-extension' ?: string [ ] ;
49
52
'show-versions' ?: boolean ;
50
- ' category' ?: string ;
53
+ category ?: string ;
51
54
52
55
'force-disable-user-env' ?: boolean ;
53
56
'use-host-proxy' ?: string ;
@@ -66,8 +69,8 @@ declare global {
66
69
'web-user-data-dir' ?: string ;
67
70
'enable-sync' ?: boolean ;
68
71
'github-auth' ?: string ;
69
- ' log' ?: string ;
70
- ' logsPath' ?: string ;
72
+ log ?: string ;
73
+ logsPath ?: string ;
71
74
72
75
_ : string [ ] ;
73
76
}
@@ -86,7 +89,10 @@ declare global {
86
89
serverUrl : URL ;
87
90
}
88
91
89
- export type CreateServer = ( address : string | net . AddressInfo | null , args : ServerParsedArgs ) => Promise < IServerAPI > ;
92
+ export type CreateServer = (
93
+ address : string | net . AddressInfo | null ,
94
+ args : ServerParsedArgs
95
+ ) => Promise < IServerAPI > ;
90
96
91
97
export interface ProductDescription {
92
98
productName : string ;
@@ -132,7 +138,10 @@ declare global {
132
138
waitMarkerFilePath ?: string ;
133
139
}
134
140
135
- export type NLSConfigurationWeb = NLSConfiguration | InternalNLSConfiguration ;
141
+ export type NLSConfigurationWeb =
142
+ | NLSConfiguration
143
+ | InternalNLSConfiguration ;
144
+
136
145
export { NLSConfiguration , InternalNLSConfiguration } ;
137
146
}
138
147
}
0 commit comments