entlicher opened a new pull request #3214:
URL: https://github.com/apache/netbeans/pull/3214


   We need to translate URLs of external library sources when debugging via 
LSP. This is due to url translation performed by 
`org.netbeans.modules.java.lsp.server.Utils.toUri()` and 
`org.netbeans.modules.java.lsp.server.Utils.fromUri()`. The URL under which is 
the file opened in the VSCode editor differs from the URL of the file that we 
use internally.
   
   To make that accessible to the debugger, we're extending 
`SourcePathProvider` with two methods: `getFileFromSourceURL()` and 
`getSourceURLFromFile()` for this purpose. We provide LSP-specific 
implementation of these methods by `LSPSourcePathProvider`, which uses the 
newly introduced `LSPFileUtils`.


-- 
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to