Vetur: No Intellisense for new exports

Created on 22 Oct 2019  路  11Comments  路  Source: vuejs/vetur

  • [x] I have searched through existing issues
  • [x] I have read through docs
  • [x] I have read FAQ

Info

  • Platform: Win 10
  • Vetur version: 0.22.3+
  • VS Code version: 1.39.2

Problem

This issue is not connected to #1449
Exports from newly created javascript files are not visible in the intellisense. Now, I have to reload the window whenever I create a new javascript file and I want to use it from a vue file.
Since there are intellisense problems with the current versions of vetur, I couldn't check if any of those fixed this.

Reproducible Case

  1. Open a project
  2. Create a new javascript file with a named export, eg a function called "test".
  3. Open another javascript file and start typing the function name, intellisense will pop up with the function
  4. Open a vue file, start typing the function name. The function is missing from the list.
  5. Close and open Visual Studio Code
  6. Open a vue file, start typing the function name, it will be visible.
need-more-info

Most helpful comment

@paskausks For me, the 0.22.4 update completely broke intellisense, and it doesn't work at all. Check the link I referenced in the first comment.

All 11 comments

I don't think this is for new files. I think it's for all .vue files.

With the current version of Vetur I don't have any IntelliSense in *.vue files. In neither JavaScript or TypeScript projects. As soon as I downgrade to 0.22.4 IntelliSense does work again.

In my case

  • Platform: Win 8.1
  • Vetur version 0.22.5 (current)
  • VS Code version: 1.39.2

Issue can be reproduced by:

  1. Cloning the https://github.com/octref/veturpack repo
  2. yarn
  3. Open VSCode in the cloned folder
  4. Go to _Counter.vue_ and try Lodash' autocompletion with _.

@paskausks For me, the 0.22.4 update completely broke intellisense, and it doesn't work at all. Check the link I referenced in the first comment.

@Soresu yeah, interesting. I'm currently on 0.22.4 since that's the version that is actually working for me.

@paskausks I have the same problem,please tell me how to downgrade,thank you

@parox2014 from the Extension's page download the VSIX under the ChangeLog tab\
get_vsix

from VSCode (Ctrl+Shift+P) Extension: Install From VSIX...

@kcwms It works,thank you so much

Does this repro on 0.22.6?

@octref Just tested it. Seemingly, no issues on 0.22.6.

@octref 0.22.6 still has this issue.

I hava the same problem when I update Vetur to version 0.23.0.

Platform: Win 10,VS Code version: 1.41.1
I have tried different VS Code version,but also no IntelliSense .
When I downgrade to 0.22. 6, it works.

I have the same problem, Vue files don't support lodash IntelliSence. I get full IntelliSence in JS files.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

muhajirdev picture muhajirdev  路  3Comments

yoyoys picture yoyoys  路  3Comments

OsterHuang picture OsterHuang  路  3Comments

octref picture octref  路  3Comments

LukeLin picture LukeLin  路  3Comments