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

Why is there no less or sass emmet hint for the style tag? #1386

Closed
3 tasks done
liby opened this issue Aug 13, 2019 · 10 comments
Closed
3 tasks done

Why is there no less or sass emmet hint for the style tag? #1386

liby opened this issue Aug 13, 2019 · 10 comments

Comments

@liby
Copy link

liby commented Aug 13, 2019

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

Info

  • Platform: Win
  • Vetur version: 0.22.0
  • VS Code version: 1.37.0

Problem

  • The following tags are not prompted in my editor.
  • It was all normal before.
template with html
template with pug
script with JavaScript
script with TypeScript
style with CSS
style with CSS (scoped)
style with scss
style with scss (scoped)
style with less
style with less (scoped)
style with sass
style with sass (scoped)
style with postcss
style with postcss (scoped)
style with stylus
style with stylus (scoped)

image

demo

Reproducible Case

There is no step that can be described, that is, the auto-complete prompt of the label suddenly disappears, and it is not suitable.

@suciptoid
Copy link

Facing same issue after update vscode to 1.37.0, but autocomplete shown when we start with <script...

Screenshot from 2019-08-13 20-27-17

@liby
Copy link
Author

liby commented Aug 13, 2019

更新vscode到1.37.0后面临同样的问题,但是当我们开始时显示自动完成 <script...

截图2019-08-13 20-27-17

I am considering using the previous version of vscode to try

@octref
Copy link
Member

octref commented Aug 13, 2019

The scaffold snippets have been renamed to start with either <vue>, <style>, <script> or <template>.

I'm sorry for removing the old scaffold snippets, but they are replaced by https://vuejs.github.io/vetur/snippet.html#customizable-scaffold-snippets.

@octref
Copy link
Member

octref commented Aug 13, 2019

With that being said, I did add back postcss/stylus scaffold snippets.

@liby
Copy link
Author

liby commented Aug 13, 2019

话虽如此,我确实添加了postcss / stylus scaffold snippets。

demo1
There will be prompts with with,But no postcss/stylus

@octref
Copy link
Member

octref commented Aug 13, 2019

It's not released yet.

@octref
Copy link
Member

octref commented Aug 13, 2019

Try 0.22.1

@liby
Copy link
Author

liby commented Aug 14, 2019

Try 0.22.1

  • Thank you very much, I have already used it.

    • It would be nice if there was a document that could explain how to trigger these snippets.
    • Similar to Vue 2 Snippets,This is friendly to first-time users.
      Snipaste_2019-08-14_09-26-43
  • Also I think some snippets are duplicates,Of course, these effects are not very big.

image

demo

octref added a commit that referenced this issue Aug 14, 2019
@octref
Copy link
Member

octref commented Aug 14, 2019

Also I think some snippets are duplicates,Of course, these effects are not very big.

You can disable Vetur's builtin ones, or you can disable the other extension

I also added some docs for using the snippets.

@liby
Copy link
Author

liby commented Aug 15, 2019

@octref

  • I only enabled vetur,But snippets are still duplicates
  • Show only one of them is normal
    image

@octref octref reopened this Aug 15, 2019
@octref octref added the bug label Aug 15, 2019
@octref octref closed this as completed in 511a5ed Aug 15, 2019
octref added a commit that referenced this issue Aug 15, 2019
yoyo930021 pushed a commit to yoyo930021/vuter that referenced this issue Oct 28, 2019
yoyo930021 pushed a commit to yoyo930021/vuter that referenced this issue Oct 28, 2019
yoyo930021 pushed a commit to yoyo930021/vuter that referenced this issue Oct 28, 2019
yoyo930021 pushed a commit to yoyo930021/vuter that referenced this issue Oct 28, 2019
yoyo930021 pushed a commit to yoyo930021/vuter that referenced this issue Oct 28, 2019
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

3 participants