Closed bibor closed 2 years ago
@bibor Thanks for spotting that, it should be fixed in main
. Let me know if you see regressions as the LSP server doesn't have automated tests yet.
Thank you very much! Unfortunatley the fix introduces a new bug, resulting in the go-to-reference feature still not working.
notebook.RelPath() is called on a relative path from the root, but it expands the path relative to the note. This causes a new, wrong relative path, because it is calculated from the note's paths.
for example an input of folder/note
produces folder/folder/note
.
I think it's possible to just remove the second call to RelPath(), but I'm not 100% sure, that this does not produce any unwanted side-effects. However, everything was working fine, when I tested it. I'll open a PR.
Description
The find-references feature of the LSP (tracked in #22) does not work if the notes are organized in folders.
Expected Behaviour
find-reference should return all references to the given note.
Steps to Reproduce
blub
I reference another note: ref-note