File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/vs/platform/terminal/node Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,12 @@ async function startPtyHost() {
4343 delete process . env . VSCODE_STARTUP_DELAY ;
4444 delete process . env . VSCODE_LAST_PTY_ID ;
4545
46+ // Delay startup if needed, this must occur before RPC is setup to avoid the channel from timing
47+ // out.
48+ if ( startupDelay ) {
49+ await timeout ( startupDelay ) ;
50+ }
51+
4652 // Setup RPC
4753 const _isUtilityProcess = isUtilityProcess ( process ) ;
4854 let server : ChildProcessServer < string > | UtilityProcessServer ;
@@ -60,10 +66,9 @@ async function startPtyHost() {
6066 const logger = loggerService . createLogger ( 'ptyhost' , { name : localize ( 'ptyHost' , "Pty Host" ) } ) ;
6167 const logService = new LogService ( logger , [ new ConsoleLogger ( ) ] ) ;
6268
63- // Log and apply developer config
69+ // Log developer config
6470 if ( startupDelay ) {
6571 logService . warn ( `Pty Host startup is delayed ${ startupDelay } ms` ) ;
66- await timeout ( startupDelay ) ;
6772 }
6873 if ( simulatedLatency ) {
6974 logService . warn ( `Pty host is simulating ${ simulatedLatency } ms latency` ) ;
You can’t perform that action at this time.
0 commit comments