-
Notifications
You must be signed in to change notification settings - Fork 57
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
Checking if a file is a res file #543
Conversation
analysis/src/Hint.ml
Outdated
@@ -82,7 +82,7 @@ let inlay ~path ~pos ~maxLength ~debug = | |||
Ast_iterator.default_iterator.value_binding iterator vb | |||
in | |||
let iterator = {Ast_iterator.default_iterator with value_binding} in | |||
(if Files.exists path && Filename.check_suffix path ".res" then | |||
(if Files.isResFile path then |
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'm not sure that this does it.
The temptation could be else ...
for .resi
files which would leak to a crash.
Any other ideas?
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.
Check the latest commit, what do you think about that? Slightly harder at to accidentally do the wrong thing at least I think, but still not fool proof.
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.
Great?
"classifySourceFile"
Fixed the name! Merging now. |
This is a continuation of #539