fix: "Go to definition" functionality for native LSP#1859
fix: "Go to definition" functionality for native LSP#1859jbencin merged 3 commits intostx-labs:mainfrom
Conversation
Codecov ReportAttention: Patch coverage is
📢 Thoughts on this report? Let us know! |
Right, it shouldn't break.
Yes! I agree that the FileLocation is probably not necessary and adds useless complexity |
Tried this and goto functionality is still working in VSCode. I don't think it ever uses filesystem paths. Actually, the parts of the |
Description
Fixes: #1829
This PR fixes "Go to definition" functionality for native LSP, which is broken because the following code:
Always returns
NoneforFileLocation::FileSystempaths (because theto_string()output is missing thefile://prefix). This is fixed by implementingTryInto<Url>forFileLocationto do the correct type conversionBreaking change?
I don't think this will affect the VSCode extension (I'm guessing it always uses
FileLocation::Url)Notes
In a future PR I think we can get rid of
FileLocationenum completely and just useUrldirectly