Vetur: Why is there no less or sass emmet hint for the style tag?

Created on 13 Aug 2019  ·  10Comments  ·  Source: vuejs/vetur

  • [x] I have searched through existing issues
  • [x] I have read through docs
  • [x] 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.

bug question

Most helpful comment

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.

All 10 comments

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

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

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

I am considering using the previous version of vscode to try

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.

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

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

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

It's not released yet.

Try 0.22.1

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

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.

@octref

  • I only enabled vetur,But snippets are still duplicates
  • Show only one of them is normal
    image
Was this page helpful?
0 / 5 - 0 ratings