Skip to content

Commit ab4bf73

Browse files
authored
Rephrase the stop event for the restart frame. (microsoft#167)
1 parent cf2c472 commit ab4bf73

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/adapter/handler/RestartFrameHandler.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ public CompletableFuture<Response> handle(Command command, Arguments arguments,
6666
return CompletableFuture.completedFuture(response);
6767
} else {
6868
context.getProtocolServer().sendEvent(new Events.UserNotificationEvent(NotificationType.ERROR, "Current stack frame doesn't support restart."));
69-
context.getProtocolServer().sendEvent(new Events.StoppedEvent("restartframe", stackFrameReference.getThread().uniqueID()));
7069
return AdapterUtils.createAsyncErrorResponse(response, ErrorCode.RESTARTFRAME_FAILURE, "Failed to restart the selected stack frame.");
7170
}
7271
}
@@ -102,7 +101,7 @@ private void stepInto(IDebugAdapterContext context, ThreadReference thread) {
102101
context.getDebugSession().getEventHub().stepEvents().filter(debugEvent -> request.equals(debugEvent.event.request())).take(1).subscribe(debugEvent -> {
103102
debugEvent.shouldResume = false;
104103
// Have to send two events to keep the UI sync with the step in operations:
105-
context.getProtocolServer().sendEvent(new Events.StoppedEvent("step", thread.uniqueID()));
104+
context.getProtocolServer().sendEvent(new Events.StoppedEvent("restartframe", thread.uniqueID()));
106105
context.getProtocolServer().sendEvent(new Events.ContinuedEvent(thread.uniqueID()));
107106
});
108107
request.enable();

0 commit comments

Comments
 (0)