jw3 commented on a change in pull request #63:
URL: https://github.com/apache/daffodil-vscode/pull/63#discussion_r772900871
##########
File path: src/daffodilDebugger.ts
##########
@@ -180,12 +181,29 @@ export async function getDebugger(
return stopDebugging()
}
+ let workspaceFolder = vscode.workspace.workspaceFolders
+ ? vscode.workspace.workspaceFolders[0].uri.fsPath
+ : vscode.Uri.parse('').fsPath
+
+ // Get daffodilDebugger class paths to be added to the debugger
+ let daffodilDebugClasspath = config.daffodilDebugClasspath.includes(
+ '${workspaceFolder}'
+ )
+ ? config.daffodilDebugClasspath.replace(
+ regexp['workspace'],
+ workspaceFolder
+ )
+ : config.daffodilDebugClasspath
+
// Start debugger in terminal based on scriptName
let terminal = vscode.window.createTerminal({
name: artifact.scriptName,
cwd:
`${rootPath}/daffodil-debugger-${daffodilVersion}-${LIB_VERSION}/bin/`,
hideFromUser: false,
shellPath: artifact.scriptName,
+ env: {
+ DAFFODIL_DEBUG_CLASSPATH: daffodilDebugClasspath,
Review comment:
you can add the following above this line for the linter
`// eslint-disable-next-line @typescript-eslint/naming-convention`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]