@@ -7,7 +7,7 @@ import { buildHelpMessage, buildVersionMessage, options } from "vs/platform/envi
77import pkg from "vs/platform/product/node/package" ;
88import product from "vs/platform/product/node/product" ;
99
10- import { AuthType , MainServer , WebviewServer } from "vs/server/src/server" ;
10+ import { AuthType , MainServer } from "vs/server/src/server" ;
1111import "vs/server/src/tar" ;
1212import { buildAllowedMessage , generateCertificate , generatePassword , open , unpackExecutables } from "vs/server/src/util" ;
1313
@@ -22,8 +22,6 @@ interface Args extends ParsedArgs {
2222 open ?: string ;
2323 port ?: string ;
2424 socket ?: string ;
25- "webview-port" ?: string ;
26- "webview-socket" ?: string ;
2725}
2826
2927// The last item is _ which is like -- so our options need to come before it.
@@ -57,13 +55,11 @@ options.push({ id: "cert", type: "string", cat: "o", description: "Path to certi
5755options . push ( { id : "cert-key" , type : "string" , cat : "o" , description : "Path to the certificate's key if one was provided." } ) ;
5856options . push ( { id : "extra-builtin-extensions-dir" , type : "string" , cat : "o" , description : "Path to an extra builtin extension directory." } ) ;
5957options . push ( { id : "extra-extensions-dir" , type : "string" , cat : "o" , description : "Path to an extra user extension directory." } ) ;
60- options . push ( { id : "host" , type : "string" , cat : "o" , description : "Host for the main and webview servers ." } ) ;
58+ options . push ( { id : "host" , type : "string" , cat : "o" , description : "Host for the server ." } ) ;
6159options . push ( { id : "auth" , type : "string" , cat : "o" , description : `The type of authentication to use. ${ buildAllowedMessage ( AuthType ) } .` } ) ;
6260options . push ( { id : "open" , type : "boolean" , cat : "o" , description : "Open in the browser on startup." } ) ;
6361options . push ( { id : "port" , type : "string" , cat : "o" , description : "Port for the main server." } ) ;
6462options . push ( { id : "socket" , type : "string" , cat : "o" , description : "Listen on a socket instead of host:port." } ) ;
65- options . push ( { id : "webview-port" , type : "string" , cat : "o" , description : "Port for the webview server." } ) ;
66- options . push ( { id : "webview-socket" , type : "string" , cat : "o" , description : "Listen on a socket instead of host:port." } ) ;
6763
6864options . push ( last ) ;
6965
@@ -140,26 +136,17 @@ const main = async (): Promise<void> => {
140136 options . certKey = certKey ;
141137 }
142138
143- const webviewPort = args [ "webview-port" ] ;
144- const webviewServer = new WebviewServer ( {
145- ...options ,
146- port : typeof webviewPort !== "undefined" && parseInt ( webviewPort , 10 ) || 8444 ,
147- socket : args [ "webview-socket" ] ,
148- } ) ;
149-
150139 const server = new MainServer ( {
151140 ...options ,
152141 port : typeof args . port !== "undefined" && parseInt ( args . port , 10 ) || 8443 ,
153142 socket : args . socket ,
154- } , webviewServer , args ) ;
143+ } , args ) ;
155144
156- const [ webviewAddress , serverAddress , /* ignore */ ] = await Promise . all ( [
157- webviewServer . listen ( ) ,
145+ const [ serverAddress , /* ignore */ ] = await Promise . all ( [
158146 server . listen ( ) ,
159147 unpackExecutables ( ) ,
160148 ] ) ;
161- console . log ( `Main server listening on ${ serverAddress } ` ) ;
162- console . log ( `Webview server listening on ${ webviewAddress } ` ) ;
149+ console . log ( `Server listening on ${ serverAddress } ` ) ;
163150
164151 if ( options . auth && ! process . env . PASSWORD ) {
165152 console . log ( " - Password is" , options . password ) ;
0 commit comments