vuejs / vetur

Vue tooling for VS Code.
https://vuejs.github.io/vetur/
MIT License
5.75k stars 593 forks source link

[Bug] Hitting `Tab` inside `grid-template-areas` should not autocomplete #3106

Open wenfangdu opened 3 years ago

wenfangdu commented 3 years ago

Info

Problem

STG 2021-08-12 12_08_29

Reproducible Case

Hitting Tab right after "title" will append : ;, which deviates from the behavior in normal .scss files.

Before:

<style lang="scss" scoped>
  body {
    grid-template-areas:
      'title price'
      'desc  price';
  }
</style>

After:

<style lang="scss" scoped>
  body {
    grid-template-areas:
      'title: ; price'
      'desc  price';
  }
</style>
yoyo930021 commented 3 years ago

Can it work common scss file in vscode?

wenfangdu commented 3 years ago

@yoyo930021 It won't append : ; in plain .scss files.

yoyo930021 commented 3 years ago

We need more research. Vetur don't send : ; to VSCode. VSCode sends : ; to vetur file changed, but it work well when disable vetur extension. I don't know problem. Possible grammar, vscode-language-config, extension client?