OYsun / vscode-VueHelper

:monkey_face:vscode插件,vue,vue-router和vuex的代码提示
https://marketplace.visualstudio.com/items?itemName=oysun.vuehelper
357 stars 35 forks source link

Don't get any suggestion #19

Open danielo515 opened 7 years ago

danielo515 commented 7 years ago

Hello,

I have the latest version installed on vscode 1.10.2 However, when I edit a .vue file I don't get any suggestion. For example, I expect this to provide a compilled description

<script>

export default {

    comp
}

</script>

But instead I get nothing. May this be a collision with any other plugin?

dimensi commented 7 years ago

Same problem.

OYsun commented 7 years ago

@danielo515 @edDimensi Is there a hint in template?

dimensi commented 7 years ago

Nope

image image image image

OYsun commented 7 years ago

@edDimensi VueHelperis which version? In addition, you can try to increase the configuration below:

    "files.associations": {
        "*.vue" : "html"
    }
dimensi commented 7 years ago

Latest version. If i enter such settings, the prompts in the template block will start working, in the script not. I use vetur and after 1.10 vscode, .vue file its vue.

OYsun commented 7 years ago

@edDimensi You need to open a arbitrary js file, let vscode began to load the script file https://github.com/OYsun/vscode-VueHelper/issues/9

dimensi commented 7 years ago

@OYsun can you explain?

danielo515 commented 7 years ago

I'm also interested in a more detailed explanation. I have already opened a random JavaScript file

colebrusco commented 7 years ago

Same here. In a random JS file I had the suggestions, but in the .vue file don't

kokman commented 7 years ago

@OYsun, I've insert the following into settings.json in my vscode:

    "files.associations": {
            "*.vue" : "html"
       }

and the intelligence hint about vue's html tag works correctly now. But there is another warning hint such as following:

file: 'file:///Users/kokman/Desktop/ES6_project/demo1/src/App.vue'
severity: 'warning'
message: 'Doctype must be declared first.'
at: '1,1'
source: ''

file: 'file:///Users/kokman/Desktop/ES6_project/demo1/src/App.vue'
severity: 'warning'
message: 'The value of attribute [ to ] must be in double quotes.'
at: '8,23'
source: ''

How can I do something to avoid these hints?

Thank you!

--------source vue file contents--------

abotsi commented 7 years ago

Same here, any suggestion for Vue code completion or snippet after typing 'V', even in a new *.js file... How do you manage to do that (@danielo515, @OYsun) ?