arosien opened a new issue #76: URL: https://github.com/apache/daffodil-vscode/issues/76
(This issue is extracted from part of #66.) Schemas may be included as resources on the classpath, which supports both file-system directories and jar files. The debugger extension, however, doesn't currently know about these resources in order to view them or set breakpoints within them. One way to supply the classpath schemas to the editor, to view and to let the user set breakpoints there, is to send [`LoadedSource` DAP events](https://microsoft.github.io/debug-adapter-protocol/specification#Events_LoadedSource) from our backend to VS Code when we notice any referenced schema outside of the initial schema. We can do this eagerly (scan the XML, etc.) or lazily (as the schema is processed we notify when a new schema is encountered). The editor then will request the source content, and the backend can send it (since we can access the data of the jar file on the classpath), and the editor will display the (read-only) content. Implementation-wise, we need to re-enable the `supportsLoadedSourcesRequest` initialization parameter that was disabled in #25, decide the schema source discovery strategy, and handle the appropriate events and requests. Additionally, I suspect the default [`pathFormat` parameter of the `Initialize` request](https://microsoft.github.io/debug-adapter-protocol/specification#Requests_Initialize) needs to change from `path` to `uri`, since the loaded source will have a `jar` URI scheme (because it is loaded from a jar on the classpath). -- 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]
