Skip to content

Commit

Permalink
always send LaunchResponse after successful initialization (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebthom authored Jun 29, 2022
1 parent 7d752db commit 7e6f0d3
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -127,17 +127,11 @@ class Main extends vscode.debugAdapter.DebugSession {

socket.on(SocketEvent.Error, error -> trace('Socket error: $error'));

function ready() {
sendEvent(new vscode.debugAdapter.DebugSession.InitializedEvent());
}

executePostLaunchActions(function() {
sendEvent(new vscode.debugAdapter.DebugSession.InitializedEvent());
sendResponse(response);
if (args.stopOnEntry) {
ready();
sendResponse(response);
sendEvent(new vscode.debugAdapter.DebugSession.StoppedEvent("entry", 0));
} else {
ready();
}
});
}
Expand Down

0 comments on commit 7e6f0d3

Please sign in to comment.