microsoft / microsoft/nodejstools

File renames that change only case have no effect

Open
#2,155 0 comments 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

This appears to be intentional, but it's not clear why: https://github.com/Microsoft/nodejstools/blob/40f2646011d8fd41b275d5f2162d2a93805fd226/Nodejs/Product/Nodejs/SharedProject/FileNode.cs#L296

Repro:

  1. Create a node project (e.g. a TS console app)
  2. Rename a file to uppercase (e.g. app.ts to APP.ts)

Expected: File is renamed
Actual: File is not renamed

Note: Works for C# files.

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

Start at Nodejs/Product/Nodejs/SharedProject/FileNode.cs around line 296 and reproduce the case-only rename in a Node.js or TypeScript console project. Compare the behavior with the stated C# case, then verify that renaming app.ts to APP.ts changes the project file as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, nodejs, typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.