Skip to content

Commit

Permalink
Add some code for customRequest response
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiaomao committed Oct 10, 2024
1 parent ef884fa commit bf1a8e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/HLAdapter.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1159,13 +1159,16 @@ class HLAdapter extends DebugSession {
// Runtime communication with extension

override function customRequest<T>(command:String, response:vscode.debugAdapter.Messages.Response<T>, args:Dynamic):Void {
// Value in response.body will be received by the extension in .then
var response : vscode.debugProtocol.DebugProtocol.Response<String> = cast response;
switch( command ) {
case OnSessionActive:
isSessionActive = true;
case OnSessionInactive:
isSessionActive = false;
default:
}
sendResponse(cast response);
}

// Standalone adapter.js
Expand Down

0 comments on commit bf1a8e3

Please sign in to comment.