Skip to content

fix(57026): Renaming on declaration whose name is a String Literal#61353

Closed
NamHaiBui wants to merge 7 commits intomicrosoft:mainfrom
SeniorSeminarGroup:57026
Closed

fix(57026): Renaming on declaration whose name is a String Literal#61353
NamHaiBui wants to merge 7 commits intomicrosoft:mainfrom
SeniorSeminarGroup:57026

Conversation

@NamHaiBui
Copy link
Copy Markdown

@NamHaiBui NamHaiBui commented Mar 5, 2025

Fixes #57026

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Mar 5, 2025
@NamHaiBui NamHaiBui changed the title Renaming on declaration whose name is a String Literal Renaming on declaration whose name is a String Literal(57026) Mar 5, 2025
@NamHaiBui NamHaiBui changed the title Renaming on declaration whose name is a String Literal(57026) fix(57026): Renaming on declaration whose name is a String Literal Mar 5, 2025
@NamHaiBui NamHaiBui marked this pull request as ready for review March 5, 2025 02:52
@NamHaiBui
Copy link
Copy Markdown
Author

@jakebailey @DanielRosenwasser
Hi, can you review my pr if it's not too much trouble?
I am working on contributing to Typescript as my senior project.

////declare const fnc_1: <K extends keyof Case_1>(p: K) => void
////
////fn("Prop 1"/**/)
////fnc_1("Att 2")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these tests being modified rather than being added to, if anything?

Copy link
Copy Markdown
Author

@NamHaiBui NamHaiBui Apr 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was a duplicate test of renameStringLiteralTypes4 so I modified it to reflect one of the cases mentioned in the original issue.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are not duplicate tests. One is a type, the other is an interface.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sorry about that, I will revert changes and add an additional tests for type as well. Thank you and sorry for the oversight.

@NamHaiBui
Copy link
Copy Markdown
Author

NamHaiBui commented Apr 16, 2025

@jakebailey
I have updated the code and added in tests to check for both Type declaration and interface declaration.
Again, thank you so much for reviewing this and helping me.

@NamHaiBui NamHaiBui requested a review from jakebailey April 22, 2025 14:41
@NamHaiBui
Copy link
Copy Markdown
Author

@jakebailey Hi, is it possible to get a review on this soon?
It would be greatly appreciated.

@typescript-bot
Copy link
Copy Markdown
Collaborator

With 6.0 out as the final release vehicle for this codebase, we're closing all PRs that don't fit the merge criteria for post-6.0 patches. If you think this was a mistake and this PR fits the post-6.0 patch criteria, please post to the 6.0 iteration issue with details (specifically, which PR and which patch criteria it satisfies).

Next steps for PRs:

  • For crash bugfixes or language service improvements, PRs are currently accepted at the typescript-go repo
  • Changes to type system behavior should wait until after 7.0, at which point mainline TypeScript development will resume in this repository with the Go codebase
  • Library file updates (lib.d.ts etc) continue to live in this repo or the DOM Generator repo as appropriate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rename doesn't work on declaration whose name is a string literal

4 participants