Skip to content

Commit f7d2b92

Browse files
GirlBossRushZauberNerd
authored andcommitted
Fix relative import.
1 parent 13380c2 commit f7d2b92

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

src/vs/server/@types/code-server-lib/index.d.ts

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@
44
* Licensed under the MIT License. See License.txt in the project root for license information.
55
*--------------------------------------------------------------------------------------------*/
66

7-
import type { NLSConfiguration, InternalNLSConfiguration } from '../../../base/node/languagePacks';
87
import type * as http from 'http';
98
import type * as net from 'net';
10-
import type { AuthType } from 'vs/base/common/auth';
9+
import type { InternalNLSConfiguration, NLSConfiguration } from '../../../base/node/languagePacks';
1110

1211
declare global {
1312
namespace CodeServerLib {
13+
export enum AuthType {
14+
Password = 'password',
15+
None = 'none',
16+
}
1417

1518
export interface ServerParsedArgs {
1619
auth: AuthType;
@@ -47,7 +50,7 @@ declare global {
4750
'list-extensions'?: boolean;
4851
'locate-extension'?: string[];
4952
'show-versions'?: boolean;
50-
'category'?: string;
53+
category?: string;
5154

5255
'force-disable-user-env'?: boolean;
5356
'use-host-proxy'?: string;
@@ -66,8 +69,8 @@ declare global {
6669
'web-user-data-dir'?: string;
6770
'enable-sync'?: boolean;
6871
'github-auth'?: string;
69-
'log'?: string;
70-
'logsPath'?: string;
72+
log?: string;
73+
logsPath?: string;
7174

7275
_: string[];
7376
}
@@ -86,7 +89,10 @@ declare global {
8689
serverUrl: URL;
8790
}
8891

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>;
9096

9197
export interface ProductDescription {
9298
productName: string;
@@ -132,7 +138,10 @@ declare global {
132138
waitMarkerFilePath?: string;
133139
}
134140

135-
export type NLSConfigurationWeb = NLSConfiguration | InternalNLSConfiguration;
141+
export type NLSConfigurationWeb =
142+
| NLSConfiguration
143+
| InternalNLSConfiguration;
144+
136145
export { NLSConfiguration, InternalNLSConfiguration };
137146
}
138147
}

0 commit comments

Comments
 (0)