Skip to content

Commit 46a2826

Browse files
committed
Fix relative import.
1 parent 5c36b23 commit 46a2826

File tree

1 file changed

+54
-41
lines changed

1 file changed

+54
-41
lines changed

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

+54-41
Original file line numberDiff line numberDiff line change
@@ -4,14 +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';
8-
import type * as http from 'http';
9-
import type * as net from 'net';
10-
import type { AuthType } from 'vs/base/common/auth';
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";
1114

1215
declare global {
1316
namespace CodeServerLib {
14-
1517
export interface ServerParsedArgs {
1618
auth: AuthType;
1719
port?: string;
@@ -25,49 +27,49 @@ declare global {
2527
*
2628
* This secret must be communicated to any vscode instance via the resolver or embedder API.
2729
*/
28-
'connection-secret'?: string;
30+
"connection-secret"?: string;
2931
host?: string;
30-
'socket-path'?: string;
32+
"socket-path"?: string;
3133
driver?: string;
32-
'print-startup-performance'?: boolean;
33-
'print-ip-address'?: boolean;
34-
'disable-websocket-compression'?: boolean;
35-
'disable-telemetry'?: boolean;
34+
"print-startup-performance"?: boolean;
35+
"print-ip-address"?: boolean;
36+
"disable-websocket-compression"?: boolean;
37+
"disable-telemetry"?: boolean;
3638
fileWatcherPolling?: string;
37-
'start-server'?: boolean;
39+
"start-server"?: boolean;
3840

39-
'enable-remote-auto-shutdown'?: boolean;
40-
'remote-auto-shutdown-without-delay'?: boolean;
41+
"enable-remote-auto-shutdown"?: boolean;
42+
"remote-auto-shutdown-without-delay"?: boolean;
4143

42-
'extensions-dir'?: string;
43-
'extensions-download-dir'?: string;
44-
'install-extension'?: string[];
45-
'install-builtin-extension'?: string[];
46-
'uninstall-extension'?: string[];
47-
'list-extensions'?: boolean;
48-
'locate-extension'?: string[];
49-
'show-versions'?: boolean;
50-
'category'?: string;
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;
52+
category?: string;
5153

52-
'force-disable-user-env'?: boolean;
53-
'use-host-proxy'?: string;
54+
"force-disable-user-env"?: boolean;
55+
"use-host-proxy"?: string;
5456

55-
'without-browser-env-var'?: boolean;
57+
"without-browser-env-var"?: boolean;
5658

5759
force?: boolean; // used by install-extension
58-
'do-not-sync'?: boolean; // used by install-extension
60+
"do-not-sync"?: boolean; // used by install-extension
5961

60-
'user-data-dir'?: string;
61-
'builtin-extensions-dir'?: string;
62+
"user-data-dir"?: string;
63+
"builtin-extensions-dir"?: string;
6264

6365
// web
6466
workspace: string;
6567
folder: string;
66-
'web-user-data-dir'?: string;
67-
'enable-sync'?: boolean;
68-
'github-auth'?: string;
69-
'log'?: string;
70-
'logsPath'?: string;
68+
"web-user-data-dir"?: string;
69+
"enable-sync"?: boolean;
70+
"github-auth"?: string;
71+
log?: string;
72+
logsPath?: string;
7173

7274
_: string[];
7375
}
@@ -86,7 +88,10 @@ declare global {
8688
serverUrl: URL;
8789
}
8890

89-
export type CreateServer = (address: string | net.AddressInfo | null, args: ServerParsedArgs) => Promise<IServerAPI>;
91+
export type CreateServer = (
92+
address: string | net.AddressInfo | null,
93+
args: ServerParsedArgs
94+
) => Promise<IServerAPI>;
9095

9196
export interface ProductDescription {
9297
productName: string;
@@ -95,10 +100,16 @@ declare global {
95100
executableName: string;
96101
}
97102

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

100108
export interface IServerAPI {
101-
handleRequest(req: http.IncomingMessage, res: http.ServerResponse): Promise<void>;
109+
handleRequest(
110+
req: http.IncomingMessage,
111+
res: http.ServerResponse
112+
): Promise<void>;
102113
handleUpgrade(req: http.IncomingMessage, socket: net.Socket): void;
103114
handleServerError(err: Error): void;
104115
dispose(): void;
@@ -113,15 +124,15 @@ declare global {
113124
* @deprecated This should be removed when code-server merges with lib/vscode
114125
*/
115126
export interface CliMessage {
116-
type: 'cli';
127+
type: "cli";
117128
args: ServerParsedArgs;
118129
}
119130

120131
/**
121132
* @deprecated This should be removed when code-server merges with lib/vscode
122133
*/
123134
export interface OpenCommandPipeArgs {
124-
type: 'open';
135+
type: "open";
125136
fileURIs?: string[];
126137
folderURIs: string[];
127138
forceNewWindow?: boolean;
@@ -132,9 +143,11 @@ declare global {
132143
waitMarkerFilePath?: string;
133144
}
134145

135-
export type NLSConfigurationWeb = NLSConfiguration | InternalNLSConfiguration;
146+
export type NLSConfigurationWeb =
147+
| NLSConfiguration
148+
| InternalNLSConfiguration;
136149
export { NLSConfiguration, InternalNLSConfiguration };
137150
}
138151
}
139152

140-
export { };
153+
export {};

0 commit comments

Comments
 (0)