shanedell commented on PR #929: URL: https://github.com/apache/daffodil-vscode/pull/929#issuecomment-1879314446
> +1 > > > > This is obviously correct/ok. > > > > I have to say, the fact that this change required 14 files to be edited was a bit shocking. > > > > Somehow I feel an opportunity to generate a bunch of artifacts from a common spec has been missed. Maybe not, but that was my visceral reaction. > > > > Yes, so the reason for the TS and JS files is because the JS file directly interacts with the DOM/UI of the WebView. For the scripting of WebViews it only directly support JS and not TS, so we use JS to interact with UI and then forward that information to the TS. We also use JS to update the UI based on information sent back to the JS from the TS. So, overall JS is used mostly for DOM and UI interaction and the TS does everything else but they communicate back and forth with each other using the VSCode API. The JS version of that API in this case has a lot less capabilities than the VSCode in the TS and that is why we don't use only JS for this as well. Does that help or make it more confusing? -- 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]
