8000 “Load project” takes too long · Issue #3166 · vuejs/vetur · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
“Load project” takes too long #3166
Closed
@DCLangX

Description

@DCLangX

I have a root folder with many projects in it, including vue3, vue2, node, ts,

微信图片_20210930132403

when I open vscode, vetur will initialize and take 10 minutes to load all the projects in my folder

微信截图_20210930135346

微信图片_20210930132319

and then prompt me "Vetur can' t find tsconfig.json or jsconfig.json"

微信图片_20210930133553

I tried to add vetur.config.js so that it only loads one project to reduce the initialization time

微信图片_20210930135012
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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0