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

chore: print diagnostics using relative paths #5009

Merged
merged 5 commits into from
Feb 4, 2025

Conversation

ematipico
Copy link
Member

Summary

Closes #3946

Test Plan

Updated the snapshots. CI should stay green

@github-actions github-actions bot added A-CLI Area: CLI A-Core Area: core A-Project Area: project labels Feb 1, 2025
@ematipico ematipico changed the title chore: print diagnostics using relative paths chore: print diagnostics using relative paths Feb 1, 2025
@github-actions github-actions bot added A-Tooling Area: internal tools A-Linter Area: linter L-CSS Language: CSS labels Feb 1, 2025
Copy link

codspeed-hq bot commented Feb 1, 2025

CodSpeed Performance Report

Merging #5009 will not alter performance

Comparing chore/use-relative-paths (d2a2ed5) with next (93dda40)

Summary

✅ 94 untouched benchmarks

@ematipico ematipico force-pushed the chore/use-relative-paths branch from a366d42 to 9dd8cfd Compare February 3, 2025 11:28
@ematipico ematipico force-pushed the chore/use-relative-paths branch from e12dece to 31d7015 Compare February 3, 2025 11:38
@ematipico ematipico requested review from Conaclos and a team February 3, 2025 11:38
@github-actions github-actions bot added L-JavaScript Language: JavaScript and super languages L-JSON Language: JSON and super languages and removed L-CSS Language: CSS labels Feb 3, 2025
Comment on lines 454 to +464
pub enum FsErrorKind {
/// File not found
CantReadFile(String),
CantReadFile,
/// Unknown file type
UnknownFileType,
/// Dereferenced (broken) symbolic link
DereferencedSymlink(String),
DereferencedSymlink,
/// Too deeply nested symbolic link expansion
DeeplyNestedSymlinkExpansion(String),
DeeplyNestedSymlinkExpansion,
/// Invalid UTF-8 characters in path.
NonUtf8Path(PathBuf),
NonUtf8Path,
Copy link
Member Author

Choose a reason for hiding this comment

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

The String in these variants were the file path, but we already have this information in the location(resource) of the diagnostic itself. It was redundant information

@github-actions github-actions bot added the A-Diagnostic Area: diagnostocis label Feb 3, 2025
@ematipico ematipico merged commit 2cdbc17 into next Feb 4, 2025
13 checks passed
@ematipico ematipico deleted the chore/use-relative-paths branch February 4, 2025 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-CLI Area: CLI A-Core Area: core A-Diagnostic Area: diagnostocis A-Linter Area: linter A-Project Area: project A-Tooling Area: internal tools L-JavaScript Language: JavaScript and super languages L-JSON Language: JSON and super languages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant