This is an automated email from the ASF dual-hosted git repository.
shanedell pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/daffodil-vscode.git
The following commit(s) were added to refs/heads/main by this push:
new 6c5b2a5 Set debugServer to 4711 (default) if not specified in config.
6c5b2a5 is described below
commit 6c5b2a585adde177350492c4d33c02fe53803eb9
Author: Shane Dell <[email protected]>
AuthorDate: Fri Mar 17 13:38:06 2023 -0400
Set debugServer to 4711 (default) if not specified in config.
Closes #494
---
src/adapter/activateDaffodilDebug.ts | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/adapter/activateDaffodilDebug.ts
b/src/adapter/activateDaffodilDebug.ts
index 50923e7..e5d88b8 100644
--- a/src/adapter/activateDaffodilDebug.ts
+++ b/src/adapter/activateDaffodilDebug.ts
@@ -406,6 +406,10 @@ class DaffodilConfigurationProvider
config = getConfig('Launch', 'launch', 'dfdl')
}
+ if (!config.debugServer) {
+ config.debugServer = 4711
+ }
+
if (!config.program) {
return vscode.window
.showInformationMessage('Cannot find a program to debug')