stricklandrbls commented on code in PR #1414:
URL: https://github.com/apache/daffodil-vscode/pull/1414#discussion_r2355852949
##########
src/dataEditor/dataEditorClient.ts:
##########
@@ -119,7 +120,11 @@ export function activate(ctx: vscode.ExtensionContext):
void {
DATA_EDITOR_COMMAND,
async (fileToEdit: string = '') => {
let configVars = editor_config.extractConfigurationVariables()
- return await createDataEditorWebviewPanel(ctx, configVars, fileToEdit)
+ return await createDataEditorWebviewPanel(
+ ctx,
+ configVars,
+ vscode.debug.activeDebugSession ? getCurrentConfig().data :
fileToEdit
Review Comment:
There is a function for checking the debug session status in
_src/dataEditor/include/utils.ts_
https://github.com/apache/daffodil-vscode/blob/a6f1cbcb7c7fbdb50f05aa8b3ac141192c056ce6/src/dataEditor/include/utils.ts#L19-L24
You could possibly edit this function to return the config data being used
from `getCurrentConfig().data`.
--
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]