microsoft / microsoft/nodejstools

Copy items does not working

Open
#2,075 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
1.8k
Forks
355
PR merge metrics
No merged PRs in 30d

Description

Expected Behavior

Ctrl+C, Ctrl +V should correctly create new file item without junk

Actual Behavior

I select report.ts and press Ctrl+C, then Ctrl+V.
Enter weightEvents.ts . Press Enter

Appeared dirBlock.html and OrderCtrl.ts files in the project model, but not on the file system.

image

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the Ctrl+C/Ctrl+V flow with report.ts and observe the project model and file system separately. Inspect how the copy operation handles the generated dirBlock.html and OrderCtrl.ts entries; done means a renamed item creates only the expected file on disk without junk model entries.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, node.js, typescript
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.