Skip to content

IntelliSense for multi-root workspace does not work #160078

@dalisoft

Description

@dalisoft

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: v1.71.0
  • OS Version: macOS v12.5.1

NOTE

It's new issue for wrongly closed #159071

Steps to Reproduce:

  1. Use multi-root workspace with Javascript Node.js & React.js projects
  2. Try to use IntelliSense and auto-complete

Updated steps

Settings

Workspace settings

{
  "folders": [
    {
      "path": "api-shared"
    },
    {
      "path": "ui-shared"
    },
    {
      "path": "backend"
    },
    {
      "path": "frontend"
    },
  ],
  "settings": {
    "git.autofetchPeriod": 60,
    "task.allowAutomaticTasks": "on",
    "typescript.tsserver.useSyntaxServer": "always",
    "typescript.tsserver.experimental.enableProjectDiagnostics": true,
    "typescript.tsserver.maxTsServerMemory": 5120,
    "typescript.tsserver.log": "verbose",
    "cSpell.enabled": false,
    "eslint.workingDirectories": [
      "./api-shared",
      "./ui-shared",
      "./backend",
      "./frontend",
    ],
  }
}

Global settings

Actual

actual.mp4

Excepted

excepted.mp4

How to switch between Actual & Excepted?

Just open backend folder from VSCode

Interesting facts

  • On my daily using (6-8 folders with macOS Native tabs) using Workspaces feature reduces my memory usage up-to 4-5 times (from 14GB to ~3GB) while increasing CPU usage by 3-x (so coolers forgets about silent)
  • On workspaces (6-8 folders) using launch tasks uses CPU very aggressively so CPU coolers keeps at max almost always
  • On workspaces easier to work and opening terminals, so it increases productivity up-to 20% and it's huge if calculate per year

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugtypescriptTypescript support issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions