-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
bug: information on hover is not always displayed #209
Comments
Heh, I was waiting for this one 🙈 The current implementation is pretty basic. If we haven't found a better suggestion we look through the list of Sass modules and see if we find a literal match on the name. To avoid showing that info in case of a naming collision with CSS we also only do it if it's used as a module. @use "sass:math";
@debug math.$pi; some-sass/packages/language-services/src/features/do-hover.ts Lines 236 to 262 in e0b0af6
Since we don't have the actual source SCSS of these modules there's no document to link to and parse, so the usual logic of the language server doesn't apply 😞 To make this consistent (especially if |
Just to be sure: are you forwarding some of your own variables, functions, mixins with a prefix (as opposed to from |
Yes it works. The repo was updated with this specific case. // _hover.scss
/// Hover!
/// @return {String} - "hover"
@function hover() {
@return 'hover';
} // _test.scss
@forward './hover' as hover-*; // index.scss
@use './test' as *;
// This shows the information on hover
@debug hover-hover(); |
haha sorry, I know some are very specific cases...
Interesting, I think this reminded me of another edge case that might be a bug, I will try to replicate it again.
I understand and agree with you, this specific case of global alias is not a priority, I just wanted to let you know about it. The only priority might be about the information not displayed for a prefixed forward. |
Reproducible Case:
https://github.com/MenSeb/some-sass-bug/tree/main/src/some-sass-hover
Steps to Reproduce:
There seems to be some inconsistency in displaying information on hover.
It does not work for SASS global aliases and anything that was forwarded with prefix.
The text was updated successfully, but these errors were encountered: