Vetur: autocomplete suggest appear too slow

Created on 11 Aug 2017  Â·  11Comments  Â·  Source: vuejs/vetur

Info

  • Platform: macOS
  • Vetur version: 0.9.3
  • VSCode version: 1.14

Problem

autocomplete suggest appear too slow when I coding,about spend 10seconds , but when I edit .js file, autocomplete is worked well. I try to adding jsconfig.json but it's not helpful。

question

Most helpful comment

+1, very slow

@octref i add a tsconfig.json, that only include my frontend codes, but is stil very slow.

{
  "include": [
    "./src/**/*"
  ]
}

maybe my project is large, but it is just a medium-sized project, otherwise, the suggestion in other files (jsx, js ...) is very quickly!

All 11 comments

Can you record a gif with https://www.cockos.com/licecap/ and put it here?

text
it look like this. I need wait few seconds

Do you have a very large project?
Does this happen to all vue project, like https://github.com/vuejs-templates/webpack or just one of your project?

As you said , my project is very large. when I try to open a simple vue project, autocomplete's preformance is pertty good . But why ,and how can I config my vscode to fit my this large project ?thank you very much!

Write a jsconfig / tsconfig at the root of your project / workspace, and only include front end code. Otherwise Vetur would try to analyze your full project.

+1, very slow

@octref i add a tsconfig.json, that only include my frontend codes, but is stil very slow.

{
  "include": [
    "./src/**/*"
  ]
}

maybe my project is large, but it is just a medium-sized project, otherwise, the suggestion in other files (jsx, js ...) is very quickly!

Now, this plugin's suggestion is so slow in large project, It will to compile whole the code when every suggestion ?

Maybe, can let the features load separately ? for example, let emmet or path auto Completion appear first.

Or, use compied caches ?

I can help if you can provide me a medium / large size Vue project where this is happening.

@octref Thanks, but i can't provide my project, my project has 500 vue component and other js files, i has come back to use atom ...

Just now,i test it on the new version of vscode, it's faster than before, but aslo very slow ...

See #547

have same problem, if i create jsconfig.json. It makes vue IntelliSense slow even there's nothing in jsconfig.json(vscode 1.12.1)

Was this page helpful?
0 / 5 - 0 ratings