vscode-VueHelper icon indicating copy to clipboard operation
vscode-VueHelper copied to clipboard

Don't get any suggestion

Open danielo515 opened this issue 8 years ago • 11 comments

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?

danielo515 avatar Mar 11 '17 14:03 danielo515

Same problem.

dimensi avatar Mar 13 '17 15:03 dimensi

@danielo515 @edDimensi Is there a hint in template?

OYsun avatar Mar 13 '17 15:03 OYsun

Nope

image image image image

dimensi avatar Mar 13 '17 15:03 dimensi

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

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

OYsun avatar Mar 14 '17 02:03 OYsun

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.

dimensi avatar Mar 14 '17 09:03 dimensi

@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

OYsun avatar Mar 14 '17 10:03 OYsun

@OYsun can you explain?

dimensi avatar Mar 14 '17 10:03 dimensi

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

danielo515 avatar Mar 14 '17 17:03 danielo515

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

colebrusco avatar Mar 16 '17 00:03 colebrusco

@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--------

kokman avatar Mar 16 '17 03:03 kokman

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) ?

abotsi avatar Apr 06 '17 15:04 abotsi