mfussenegger / nvim-jdtls

Extensions for the built-in LSP support in Neovim for eclipse.jdt.ls
GNU General Public License v3.0
1.14k stars 62 forks source link

Make nvim-tree understand jdt:// uri #720

Closed jugarpeupv closed 2 days ago

jugarpeupv commented 6 days ago

Problem Statement

Hey, first, thank you for this amazin plugin! I am not sure if this is something that the file explorer should resolve or not, but i thought on posting it here to receive some feedback, if you consider it is a problem that should be handled in the concrete file explorer, then i will create it there ^^

The problem is, when i go to the definition of a type, i move to the file, that is working, but now i want to explore the file system where this file resides

image

If i open dirbuf i get the following error:

image

When i toggle nvimtree it does not update the view to show me the file system

I guess they do not handle jdt:// uri right?

Do you know how it could be solved?

Ideas or possible solutions

Standarize uri so that file explorers understand them?

mfussenegger commented 2 days ago

jdt:// urls are virtual documents that don't exist on the file system and there's no real folder layout for them.

If nvim-tree fails if you have any such buffers open that would need fixing in nvim-tree. It should probably ignore anything that's not a file URI.