Skip to content

CLI worktree: node modules not copied over to the worktree folder #276834

@rebornix

Description

@rebornix

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

Re #277163

The current behavior is likely by design as creating a new git worktree will not copy node_modules over. However it becomes a problem the moment I browse the files in the current workspace. TypeScript language server will read the file and complain that there are missing packages.

Image

A couple of ideas:

  • do we want to support copying node_modules or similar packages dependencies when creating new git worktree?
  • do we want to make it extensible that users can configure post script for git worktree?
  • should the language servers/extensions ignore git worktree? (which is then a step down as I still wish to use some language features)

Metadata

Metadata

Labels

chat-background-agentBackground Agent related features/bugsfeature-requestRequest for new features or functionalitygitGIT issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions