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() {
43
43
delete process . env . VSCODE_STARTUP_DELAY ;
44
44
delete process . env . VSCODE_LAST_PTY_ID ;
45
45
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
+
46
52
// Setup RPC
47
53
const _isUtilityProcess = isUtilityProcess ( process ) ;
48
54
let server : ChildProcessServer < string > | UtilityProcessServer ;
@@ -60,10 +66,9 @@ async function startPtyHost() {
60
66
const logger = loggerService . createLogger ( 'ptyhost' , { name : localize ( 'ptyHost' , "Pty Host" ) } ) ;
61
67
const logService = new LogService ( logger , [ new ConsoleLogger ( ) ] ) ;
62
68
63
- // Log and apply developer config
69
+ // Log developer config
64
70
if ( startupDelay ) {
65
71
logService . warn ( `Pty Host startup is delayed ${ startupDelay } ms` ) ;
66
- await timeout ( startupDelay ) ;
67
72
}
68
73
if ( simulatedLatency ) {
69
74
logService . warn ( `Pty host is simulating ${ simulatedLatency } ms latency` ) ;
You can’t perform that action at this time.
0 commit comments