Skip to content

Multiple color pickers if more than one <style> block #1219

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

Closed
3 tasks done
leopiccionia opened this issue Apr 24, 2019 · 4 comments
Closed
3 tasks done

Multiple color pickers if more than one <style> block #1219

leopiccionia opened this issue Apr 24, 2019 · 4 comments

Comments

@leopiccionia
Copy link

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ

Info

  • Platform: Linux
  • Vetur version: 0.18.1
  • VS Code version: 1.33.1

Problem

It's a very specific, small bug, as far as I can reproduce.

If I have two <style> blocks, and both share the same lang (I can reproduce it with default, postcss and scss, but not stylus), each color literal will have two color pickers. If I have three <style> blocks, three color pickers, etc.

The use of scoped, module, etc. doesn't seem to affect it.

image

Reproducible Case

Any code with two <style> blocks with same lang should work.

<style>
body {
    background-color: white;
}
</style>

<style>
h1 {
    color: #F72;
}
</style>

If needed, I can send a reproduction link.

@bxm0927
Copy link

bxm0927 commented Apr 24, 2019

same problem on win10 vetur 0.18.1, vscode 1.33.1

@yyyanghj
Copy link

The same problem in a stylus file, maybe it's comes from vscode
捕获

@leopiccionia
Copy link
Author

@Coolyang1996 I think it's unrelated, because:

  1. VS Code doesn't have built-in Stylus support, you need an extension for this;
  2. That bug affects only rules with more than one selector, unlike the original reported bug;
  3. That bug occurs even without Vetur.

You probably should file an issue on your Stylus extensions' repo.

@yyyanghj
Copy link

@leopiccionia
Maybe you are right. I tried again in a css file but still like this. If I disable the language-stylus extension, the problem was solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants