JeremyYao commented on PR #1276:
URL: https://github.com/apache/daffodil-vscode/pull/1276#issuecomment-2902331832
> @hdalsania, should I include removal of the scala code in this PR or just
keep the changes I have in the typescript launchWizard folder?
From discussion, the changes in the scala code affect parseTDML(arguments,
tdmlConfig), which has the comments
```
// Parse a tdmlConfig object from the launch config
//
// tdmlConfig: {
// action: '',
// name: '',
// description: '',
// path: ''
// }
//
// The action field is parsed first.
// If it is a valid action ('generate' | 'execute' | 'none'), create a
LaunchArgs object of the appropriate type
// If it is 'none' or missing, create a LaunchArgs.Manual object. This
will ignore any other fields in the tdmlConfig object.
//
// arguments: Launch config
// tdmlConfig: tdmlConfig object from the launch config
```
parseTDML() is also used here
```
def parse(arguments: JsonObject): EitherNel[String, LaunchArgs] =
// Determine, based on the presence of the tdmlConfig object in the
launch config, whether
// this is a "normal" DFDL operation or if we should attempt to
parse the values from
// the tdmlConfig object.
Option(arguments.getAsJsonObject("tdmlConfig")) match {
case None => parseManual(arguments)
case Some(tdmlConfig) => parseTDML(arguments, tdmlConfig)
}
```
and the comments further support it that it affects `append` in the
launch.json.
--
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]