-
Notifications
You must be signed in to change notification settings - Fork 90
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
definition does not exclude ::
in strings
#81
Comments
Ya, you are right. we would need to check the current scope at Lines 45 to 53 in c6d3edc
|
I'm using the version of
When I do the same for
I get basically the same error:
I don't have the package Moving the mouse over |
@andycraig, thanks for your testing. My point is that I'm not sure if it makes sense to provide definition of |
@renkun-ken Ah, beg your pardon. No wonder |
Thanks! I test it and it works well now. |
Actually it doesn’t work for multi line strings. But they are not common plus the search would be costly. This is good enough for now. |
Multi-line strings can be handled by parsed xml doc, i.e., xpath query if the cursor is in the range of a string literal, but it requires that the document is syntactically correct to be parseable. It think it's good enough too. |
In the following code
when I hold Command button in VSCode, it sends a definition request. When I move my cursor to
"descendant::expr"
, the request results in an error:It seems that hover definition does not exclude
::
in string literals.The text was updated successfully, but these errors were encountered: