-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(ocamllsp): workspace symbols fallback to _build folder #1097
base: master
Are you sure you want to change the base?
Conversation
let sourcefile = Filename.concat root_uri fname in | ||
let path = | ||
if Fpath.exists (Fpath.of_string sourcefile) then sourcefile | ||
else build_dir ^ "/" ^ fname |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably also verify that the uri
in _build
folder exist? And if not remove the entry ?
Pull Request Test Coverage Report for Build 3735Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
let sourcefile = Filename.concat root_uri fname in | ||
let path = | ||
if Fpath.exists (Fpath.of_string sourcefile) then sourcefile | ||
else build_dir ^ "/" ^ fname |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be better if we use Fpath for path concatenation, instead of doing it by hand
Pls add a changelog note |
It checks that the
uri
exist and otherwise fallback to the_build
folder. This might be the case for generated files (that only exist in the_build
folder.Before:
Screen.Recording.2023-05-16.at.07.10.12.mov
After:
Screen.Recording.2023-05-16.at.07.09.33.mov