Skip to content

Commit 8db6c9b

Browse files
committed
Fix issue where auth import breaks build output.
1 parent 46a2826 commit 8db6c9b

File tree

1 file changed

+42
-46
lines changed

1 file changed

+42
-46
lines changed

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

+42-46
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,17 @@
44
* Licensed under the MIT License. See License.txt in the project root for license information.
55
*--------------------------------------------------------------------------------------------*/
66

7-
import type * as http from "http";
8-
import type * as net from "net";
9-
import type { AuthType } from "../../../base/common/auth";
10-
import type {
11-
InternalNLSConfiguration,
12-
NLSConfiguration,
13-
} from "../../../base/node/languagePacks";
7+
import type * as http from 'http';
8+
import type * as net from 'net';
9+
import type { InternalNLSConfiguration, NLSConfiguration } from '../../../base/node/languagePacks';
1410

1511
declare global {
1612
namespace CodeServerLib {
13+
export enum AuthType {
14+
Password = 'password',
15+
None = 'none',
16+
}
17+
1718
export interface ServerParsedArgs {
1819
auth: AuthType;
1920
port?: string;
@@ -27,47 +28,47 @@ declare global {
2728
*
2829
* This secret must be communicated to any vscode instance via the resolver or embedder API.
2930
*/
30-
"connection-secret"?: string;
31+
'connection-secret'?: string;
3132
host?: string;
32-
"socket-path"?: string;
33+
'socket-path'?: string;
3334
driver?: string;
34-
"print-startup-performance"?: boolean;
35-
"print-ip-address"?: boolean;
36-
"disable-websocket-compression"?: boolean;
37-
"disable-telemetry"?: boolean;
35+
'print-startup-performance'?: boolean;
36+
'print-ip-address'?: boolean;
37+
'disable-websocket-compression'?: boolean;
38+
'disable-telemetry'?: boolean;
3839
fileWatcherPolling?: string;
39-
"start-server"?: boolean;
40-
41-
"enable-remote-auto-shutdown"?: boolean;
42-
"remote-auto-shutdown-without-delay"?: boolean;
43-
44-
"extensions-dir"?: string;
45-
"extensions-download-dir"?: string;
46-
"install-extension"?: string[];
47-
"install-builtin-extension"?: string[];
48-
"uninstall-extension"?: string[];
49-
"list-extensions"?: boolean;
50-
"locate-extension"?: string[];
51-
"show-versions"?: boolean;
40+
'start-server'?: boolean;
41+
42+
'enable-remote-auto-shutdown'?: boolean;
43+
'remote-auto-shutdown-without-delay'?: boolean;
44+
45+
'extensions-dir'?: string;
46+
'extensions-download-dir'?: string;
47+
'install-extension'?: string[];
48+
'install-builtin-extension'?: string[];
49+
'uninstall-extension'?: string[];
50+
'list-extensions'?: boolean;
51+
'locate-extension'?: string[];
52+
'show-versions'?: boolean;
5253
category?: string;
5354

54-
"force-disable-user-env"?: boolean;
55-
"use-host-proxy"?: string;
55+
'force-disable-user-env'?: boolean;
56+
'use-host-proxy'?: string;
5657

57-
"without-browser-env-var"?: boolean;
58+
'without-browser-env-var'?: boolean;
5859

5960
force?: boolean; // used by install-extension
60-
"do-not-sync"?: boolean; // used by install-extension
61+
'do-not-sync'?: boolean; // used by install-extension
6162

62-
"user-data-dir"?: string;
63-
"builtin-extensions-dir"?: string;
63+
'user-data-dir'?: string;
64+
'builtin-extensions-dir'?: string;
6465

6566
// web
6667
workspace: string;
6768
folder: string;
68-
"web-user-data-dir"?: string;
69-
"enable-sync"?: boolean;
70-
"github-auth"?: string;
69+
'web-user-data-dir'?: string;
70+
'enable-sync'?: boolean;
71+
'github-auth'?: string;
7172
log?: string;
7273
logsPath?: string;
7374

@@ -100,16 +101,10 @@ declare global {
100101
executableName: string;
101102
}
102103

103-
export type RemoteCLIMain = (
104-
desc: ProductDescription,
105-
args: string[]
106-
) => void;
104+
export type RemoteCLIMain = (desc: ProductDescription, args: string[]) => void;
107105

108106
export interface IServerAPI {
109-
handleRequest(
110-
req: http.IncomingMessage,
111-
res: http.ServerResponse
112-
): Promise<void>;
107+
handleRequest(req: http.IncomingMessage, res: http.ServerResponse): Promise<void>;
113108
handleUpgrade(req: http.IncomingMessage, socket: net.Socket): void;
114109
handleServerError(err: Error): void;
115110
dispose(): void;
@@ -124,15 +119,15 @@ declare global {
124119
* @deprecated This should be removed when code-server merges with lib/vscode
125120
*/
126121
export interface CliMessage {
127-
type: "cli";
122+
type: 'cli';
128123
args: ServerParsedArgs;
129124
}
130125

131126
/**
132127
* @deprecated This should be removed when code-server merges with lib/vscode
133128
*/
134129
export interface OpenCommandPipeArgs {
135-
type: "open";
130+
type: 'open';
136131
fileURIs?: string[];
137132
folderURIs: string[];
138133
forceNewWindow?: boolean;
@@ -146,8 +141,9 @@ declare global {
146141
export type NLSConfigurationWeb =
147142
| NLSConfiguration
148143
| InternalNLSConfiguration;
144+
149145
export { NLSConfiguration, InternalNLSConfiguration };
150146
}
151147
}
152148

153-
export {};
149+
export { };

0 commit comments

Comments
 (0)