@@ -381,12 +381,6 @@ private void ConnectToInputOutputStreams()
381
381
{
382
382
OutputLogger . LogWarning ( evt . Data ) ;
383
383
}
384
- else if ( ! initializationIsCompleted )
385
- {
386
- _connectionIsReadySource . SetException (
387
- new InvalidOperationException ( "The Node.js process failed to initialize: " + evt . Data ) ) ;
388
- initializationIsCompleted = true ;
389
- }
390
384
else
391
385
{
392
386
OnErrorDataReceived ( UnencodeNewlines ( evt . Data ) ) ;
@@ -400,10 +394,11 @@ private void ConnectToInputOutputStreams()
400
394
401
395
private static bool IsDebuggerMessage ( string message )
402
396
{
403
- return message . StartsWith ( "Debugger attached" , StringComparison . OrdinalIgnoreCase ) ||
404
- message . StartsWith ( "Debugger listening " , StringComparison . OrdinalIgnoreCase ) ||
405
- message . StartsWith ( "To start debugging" , StringComparison . OrdinalIgnoreCase ) ||
406
- message . Equals ( "Warning: This is an experimental feature and could change at any time." , StringComparison . OrdinalIgnoreCase ) ||
397
+ return message . StartsWith ( "Debugger attached" , StringComparison . Ordinal ) ||
398
+ message . StartsWith ( "Debugger listening " , StringComparison . Ordinal ) ||
399
+ message . StartsWith ( "To start debugging" , StringComparison . Ordinal ) ||
400
+ message . Equals ( "Warning: This is an experimental feature and could change at any time." , StringComparison . Ordinal ) ||
401
+ message . Equals ( "For help see https://nodejs.org/en/docs/inspector" , StringComparison . Ordinal ) ||
407
402
message . Contains ( "chrome-devtools:" ) ;
408
403
}
409
404
0 commit comments