Skip to content

Commit 3bc335d

Browse files
committed
send InitializedEvent in launchRequest
If we don't do this, the VS Code doesn't know our debugger is ready to use and it causes unexpected behavior. This fixes pause not working after restart.
1 parent 3f27385 commit 3bc335d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/debugServer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DebugSession, Event, TerminatedEvent, Thread, ThreadEvent, StoppedEvent, ContinuedEvent } from 'vscode-debugadapter';
1+
import { DebugSession, Event, TerminatedEvent, Thread, ThreadEvent, StoppedEvent, ContinuedEvent, InitializedEvent } from 'vscode-debugadapter';
22
import { DebugProtocol } from 'vscode-debugprotocol';
33

44
/**
@@ -27,6 +27,7 @@ export class Ev3devBrowserDebugSession extends DebugSession {
2727
protected launchRequest(response: DebugProtocol.LaunchResponse, args: LaunchRequestArguments): void {
2828
this.sendEvent(new Event('ev3devBrowser.debugger.launch', args));
2929
this.sendResponse(response);
30+
this.sendEvent(new InitializedEvent());
3031
}
3132

3233
protected customRequest(command: string, response: DebugProtocol.Response, args: any): void {

0 commit comments

Comments
 (0)