michael-hoke commented on code in PR #1403: URL: https://github.com/apache/daffodil-vscode/pull/1403#discussion_r2331050538
########## src/daffodilDebugger/debugger.ts: ########## @@ -58,12 +58,18 @@ async function getTDMLConfig( config.schema.path = '' config.tdmlConfig.path = - config.tdmlConfig.path || - (await vscode.commands.executeCommand( - 'extension.dfdl-debug.getValidatedTDMLPath' - )) + config.tdmlConfig.path == '${AskForValidatedTDMLPath}' + ? await vscode.commands.executeCommand( + 'extension.dfdl-debug.getValidatedTDMLPath' + ) + : config.tdmlConfig.path - if (!config.tdmlConfig.path) return false + if (!config.tdmlConfig.path) { + vscode.window.showErrorMessage( + `Invalid path TDML Execute path ${config.tdmlConfig.path} was specified!` + ) + return false + } Review Comment: I think we should also be checking at least for undefined tdmlConfig.path here and calling getValidatedTDMLPath if we find it. It would also be a good idea to include empty strings as well. Be careful with the error message here. If an invalid path is selected (or the user cancels the prompt), getValidatedTDMLPath has an informational message already. -- 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: commits-unsubscr...@daffodil.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org