What is vetur.useWorkspaceDependencies for? #2664
-
I've got a monorepo setup and I followed the guidelines on the Vetur website to set it up. I'm using Vetur in a Nuxt.js TypeScript project and everything seemed to more or less work, except Intellisense/Auto-import suggestions for importing other .ts files. The moment I removed So what is this setting and why does it break auto-imports? I couldn't find any sort of documentation online properly explaining what this does. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
When option is true, TypeScript package provide more features. I think you probably have TypeScript package in your monorepo. You can open output panel in VSCode. |
Beta Was this translation helpful? Give feedback.
-
I'm sorry I don't understand what you mean with this. Can you elaborate? |
Beta Was this translation helpful? Give feedback.
-
Vetur will use TypeScript language service for many features in JavaScript/TypeScript. TypeScript language server is in TypeScript package. When this option is true, Vetur will try to find TypeScript package in your project. When false, Vetur will use built-in TypeScript package. This option doesn't only effect TypeScript. |
Beta Was this translation helpful? Give feedback.
-
Thank you, I installed |
Beta Was this translation helpful? Give feedback.
Vetur will use TypeScript language service for many features in JavaScript/TypeScript.
TypeScript language server is in TypeScript package.
When this option is true, Vetur will try to find TypeScript package in your project.
If you have custom TypeScript version in your project,
Vetur will use it.
When false, Vetur will use built-in TypeScript package.
This option doesn't only effect TypeScript.
Same behavior for any features needs to other packages.
But your problem look like TypeScript package.