From bf1a8e3c640f645fbe82465e2081b39e2aa5df50 Mon Sep 17 00:00:00 2001 From: Yuxiao Mao Date: Thu, 10 Oct 2024 14:09:26 +0200 Subject: [PATCH] Add some code for customRequest response --- src/HLAdapter.hx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/HLAdapter.hx b/src/HLAdapter.hx index eb319e1..f86de87 100644 --- a/src/HLAdapter.hx +++ b/src/HLAdapter.hx @@ -1159,6 +1159,8 @@ class HLAdapter extends DebugSession { // Runtime communication with extension override function customRequest(command:String, response:vscode.debugAdapter.Messages.Response, args:Dynamic):Void { + // Value in response.body will be received by the extension in .then + var response : vscode.debugProtocol.DebugProtocol.Response = cast response; switch( command ) { case OnSessionActive: isSessionActive = true; @@ -1166,6 +1168,7 @@ class HLAdapter extends DebugSession { isSessionActive = false; default: } + sendResponse(cast response); } // Standalone adapter.js