Closed
Description
I have a root folder with many projects in it, including vue3, vue2, node, ts,
when I open vscode, vetur will initialize and take 10 minutes to load all the projects in my folder
and then prompt me "Vetur can' t find tsconfig.json
or jsconfig.json
"
I tried to add vetur.config.js so that it only loads one project to reduce the initialization time
Vetur.config.js in the root folder:
module.exports = {
settings: {
'vetur.useWorkspaceDependencies': true,
'vetur.experimental.templateInterpolationService': true
},
projects: [
{
root: './飞网',
package: './package.json'
}
]
}
Vetur.config.js in the project:
module.exports = {
settings: {
'vetur.useWorkspaceDependencies': true,
'vetur.experimental.templateInterpolationService': true
},
projects: [
{
root: './',
package: './package.json'
}
]
}
But it didn't work , vetur still scanned the entire root directory.
I don't want to use the multi-root function of vscode.
How can I set up so that vetur only scans the project where the file I open is located instead of scanning the entire root directory?