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

The code hint is not valid in vue-html #54

Closed
OYsun opened this issue Feb 22, 2017 · 4 comments
Closed

The code hint is not valid in vue-html #54

OYsun opened this issue Feb 22, 2017 · 4 comments
Labels
Milestone

Comments

@OYsun
Copy link

OYsun commented Feb 22, 2017

Hi,I'm working on VueHelper,Thanks for the issuse( OYsun/vscode-VueHelper#16 ) you raised, I have fixed the problem, but there is a little bit of error.In my own VueHelper project package. json configuration is as follows:

"extensionDependencies": [
      "octref.vetur"
  ],
"contributes": {
      "snippets": [
          {
              "language": "vue-html",
              "path": "./src/snippets/html.json"
          },
          {
              "language": "html",
              "path": "./src/snippets/html.json"
          }
      ]
  }

So install vuehelper will automatically install vetur,But in the template of vue code hints don't work,In html region, html snippet is not available:

<template>          // vue
    <div></div> // html/vue-html (isn't works )
</template>         // vue

VueHelper in HTML code snippet of this part in vue file doesn't work, but in the HTML file can be work
bug01
bug02

Any guidance would be greatly appreciated!

@octref
Copy link
Member

octref commented Feb 22, 2017

In html your js snippet wouldn't work either, however if you try to define the snippets in F1 -> Preference: Open User Snippets -> JavaScript then snippet will be shown for embedded language.

This is a bug of VSCode and I opened an issue for it: microsoft/vscode#21046

@octref
Copy link
Member

octref commented Feb 22, 2017

It's working for html, as html is the top-level language in a html. The javascript snippets isn't working in html's <script>, either. I'll work on a PR to VSCode.

@octref
Copy link
Member

octref commented Mar 15, 2017

@OYsun microsoft/vscode#21046 has been resolved, so you can get snippets for each languages in VSCode Insiders. If not using Insiders, this will be available in VSCode's next monthly release.

is

@octref octref closed this as completed Mar 15, 2017
@octref
Copy link
Member

octref commented Apr 12, 2017

This is already in March release.

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

No branches or pull requests

2 participants