Skip to content

Preserve resolution-mode as-written too - #57867

Merged
Jake Bailey (jakebailey) merged 1 commit into
microsoft:mainfrom
jakebailey:resolution-mode-preserve
Mar 21, 2024
Merged

Preserve resolution-mode as-written too#57867
Jake Bailey (jakebailey) merged 1 commit into
microsoft:mainfrom
jakebailey:resolution-mode-preserve

Conversation

@jakebailey

Copy link
Copy Markdown
Member

I lost this change while working on #57681 and meant for it to be there; my understanding is that we want reference directives to be basically written verbatim. Conditionally emitting resolution-mode based on impliedNodeFormat breaks that rule.

Also, while here, put const preserve = ... after const = resolutionMode. Not sure why I added it out of order.

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.

I guess this should have been discussed, but it should be small potatoes compared to needing to opt into preservation in the first place.

@jakebailey
Jake Bailey (jakebailey) merged commit 03c4b35 into microsoft:mainMar 21, 2024
@jakebailey
Jake Bailey (jakebailey) deleted the resolution-mode-preserve branch March 21, 2024 17:03
@microsoftMicrosoft (microsoft) locked as resolved and limited conversation to collaborators Oct 16, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: TeamFor Uncommitted BugPR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@jakebailey@andrewbranch@RyanCavanaugh@sheetalkamat@typescript-bot