daveleroy / SublimeDebugger

Graphical Debugger for Sublime Text for debuggers that support the debug adapter protocol
MIT License
369 stars 42 forks source link

Java: Enable LSP support in generated view #177

Closed LDAP closed 1 year ago

LDAP commented 1 year ago

Currently, JDTLS is not active on a generated view.

If I enable JDTLS for buffers by adding buffer to the schemes in the LSP-jdtls settings, it does not work correctly. However, setting lsp_uri to the jdt:// path fixes this issue.

@rwols Setting lsp_uri is an LSP internal thing and not documented as far as I know?

rwols commented 1 year ago

When using AbstractPlugin.on_open_uri_async and you add jdt to the schemes in LSP-jdtls.sublime-settings then jdtls should attach to jdt: schemes. Does this not happen?

LDAP commented 1 year ago

Yes that does work. However that isn't an option here since debugger manages its own views.

Edit: See source_navigation.py and java.py