Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elide line:col info in "!!! related" errors when from default lib.d.ts files #52330

Merged
merged 5 commits into from Jan 21, 2023

Conversation

jakebailey
Copy link
Member

As noted on #52317 (comment), this PR removes line:col information from the !!! related lines in our error baseline when the relation info comes from a default lib file.

Any time our libs are changed, loads of baselines change because position info differs; these "related" errors are the source of the bulk of them.

There are still a few baselines leftover that I'm not fixing in this PR; there are only 5 such examples in our repo, 4 of which are errors in tests with @skipDefaultLibCheck: false, the other being a tag in a completion baseline that links to a position in a lib file.

@jakebailey
Copy link
Member Author

@sandersn I'm thinking this might the diff of #52328 smaller, if that's of interest.

src/compiler/program.ts Outdated Show resolved Hide resolved
@sandersn
Copy link
Member

The error diffs on #52328 are already pretty small. But long-term this is a good idea.

@jakebailey
Copy link
Member Author

Yeah, I expected them to be huge and I thought my browser was just lagging when I clicked on it... nope, it was actually that short!

@jakebailey jakebailey merged commit 1447819 into microsoft:main Jan 21, 2023
@jakebailey jakebailey deleted the elide-lib-dts-line-info branch January 21, 2023 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants