Skip to content
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

no intellisense for scss token function #15

Open
dsvgl opened this issue Oct 28, 2022 · 3 comments
Open

no intellisense for scss token function #15

dsvgl opened this issue Oct 28, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@dsvgl
Copy link

dsvgl commented Oct 28, 2022

I don't get any intellisense when using the token function in scss.

Bildschirmfoto 2022-10-28 um 22 57 06

Should I get intellisense here? At least the docs (kinda) say so:

If you‘re using Sass, this method is recommended because token() will safely guard against accidental typos for your design tokens

My Setup works (Nuxt 3 app in monorepo) -> putting in a correct name renders as expected in the browser.

@drwpow
Copy link
Collaborator

drwpow commented Oct 29, 2022

🤔 I’m not sure how Intellisense could work with just .scss? Without making an extension, that is. The token() function will err on an invalid token name with a clear error in any runtime, but that won’t show up in Intellisense.

Is there a Sass library that does have good Intellisense that you know of out-of-the-box? If there’s a way to add this without writing an extension I’d love to! Just not sure how.

@dsvgl
Copy link
Author

dsvgl commented Oct 31, 2022

No, not that I know of :/
By reading the mentioned comment, I thought it could mean intellisense.
You are right, that you get runtime errors if you put something wrong into the token function.

I also experiment with Style Dictionary. There, the scss output are classic scss variables (eg. $color-primary). With VSCode extension "SCSS IntelliSense" I get nice autocompletion.
So, an extension seems to be the only viable solution here. But yeah, extra work and extra complexity 😬

You can close this if you want...

@drwpow drwpow added the enhancement New feature or request label Nov 17, 2022
@drwpow
Copy link
Collaborator

drwpow commented Nov 17, 2022

I’ll leave this open because I’m sure some improvement could be made here to VS Code. An extension realistically isn’t on my roadmap, but that’s not to say there aren’t some improvements that could be made

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants