Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

forceConsistentCasingInFileNames affects module resolution#36334

Merged
sheetalkamat merged 1 commit into
microsoft:mastermicrosoft/TypeScript:masterfrom
ajafff:forceConsistentCasingInFileNames-affectsModuleResolutionajafff/TypeScript:forceConsistentCasingInFileNames-affectsModuleResolutionCopy head branch name to clipboard
Jan 21, 2020
Merged

forceConsistentCasingInFileNames affects module resolution#36334
sheetalkamat merged 1 commit into
microsoft:mastermicrosoft/TypeScript:masterfrom
ajafff:forceConsistentCasingInFileNames-affectsModuleResolutionajafff/TypeScript:forceConsistentCasingInFileNames-affectsModuleResolutionCopy head branch name to clipboard

Conversation

@ajafff

@ajafff ajafff commented Jan 21, 2020

Copy link
Copy Markdown
Contributor

No description provided.

@ajafff ajafff requested a review from sheetalkamat January 21, 2020 18:52
@DanielRosenwasser

Copy link
Copy Markdown
Member

Does it? It definitely affects diagnostics, but does it actually change our resolution process?

@ajafff

ajafff commented Jan 21, 2020

Copy link
Copy Markdown
Contributor Author

Actually it doesn't affect resolution, it only affects semantic diagnostics.
I tried affectsSemanticDiagnostics and affectsBindDiagnostics but that didn't work. affectsModuleResolution is the only option that invalidates the cached state of the Program so that these diagnostics are evaluated again.

@DanielRosenwasser

Copy link
Copy Markdown
Member

Maybe we should just rename the flag - though, I guess diagnostics are part of the resolution process? @sheetalkamat can give better guidance here, though leaving a comment is cheap and worthwhile.

@sheetalkamat

Copy link
Copy Markdown
Member

I think we do want to do module resolution again to ensure the correct file names are picked up so affectsModuleResolution seems like correct thing.

@sheetalkamat sheetalkamat merged commit 342f4c0 into microsoft:master Jan 21, 2020
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.