Skip to content

Revert "test(editor): add end-to-end tests for linter output"#9982

Merged
Boshen merged 1 commit intomainfrom
revert-9979-03-22-test_editor_add_end-to-end_tests_for_linter_output
Mar 23, 2025
Merged

Revert "test(editor): add end-to-end tests for linter output"#9982
Boshen merged 1 commit intomainfrom
revert-9979-03-22-test_editor_add_end-to-end_tests_for_linter_output

Conversation

@Boshen
Copy link
Member

@Boshen Boshen commented Mar 23, 2025

Reverts #9979

@Boshen Boshen requested a review from camchenry March 23, 2025 11:20
@graphite-app
Copy link
Contributor

graphite-app bot commented Mar 23, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@github-actions github-actions bot added the A-editor Area - Editor and Language Server label Mar 23, 2025
@Boshen Boshen merged commit 71c74be into main Mar 23, 2025
25 of 26 checks passed
@Boshen Boshen deleted the revert-9979-03-22-test_editor_add_end-to-end_tests_for_linter_output branch March 23, 2025 11:20
@Boshen
Copy link
Member Author

Boshen commented Mar 23, 2025

Revert to make main stable.

@codspeed-hq
Copy link

codspeed-hq bot commented Mar 23, 2025

CodSpeed Instrumentation Performance Report

Merging #9982 will not alter performance

Comparing revert-9979-03-22-test_editor_add_end-to-end_tests_for_linter_output (a7cecff) with main (b4f3d00)

Summary

✅ 33 untouched benchmarks

graphite-app bot pushed a commit that referenced this pull request Mar 24, 2025
)

- fixes #9958
- reverts + fixes #9982

This PR fixes an issue where the "inverted diagnostics" (i.e., the hint spans converted into diagnostic reports) cause issues in VS Code because the spans are not labeled. This happens to be the case in `no-non-null-asserted-optional-chain`: there are two diagnostic spans, but neither is labeled. This ends up creating "empty" diagnostics which cause problems. So, the fix is to simply skip creating the full diagnostic report when the message content is empty. The better fix for the future is to ensure we always label spans, as this also results in more helpful error messages.

This also re-adds the testing code which was reverted previously. I've hopefully reduced the flakiness of these tests by replacing more of the file path content to a static value.
graphite-app bot pushed a commit that referenced this pull request Mar 24, 2025
)

- fixes #9958
- reverts + fixes #9982

This PR fixes an issue where the "inverted diagnostics" (i.e., the hint spans converted into diagnostic reports) cause issues in VS Code because the spans are not labeled. This happens to be the case in `no-non-null-asserted-optional-chain`: there are two diagnostic spans, but neither is labeled. This ends up creating "empty" diagnostics which cause problems. So, the fix is to simply skip creating the full diagnostic report when the message content is empty. The better fix for the future is to ensure we always label spans, as this also results in more helpful error messages.

This also re-adds the testing code which was reverted previously. I've hopefully reduced the flakiness of these tests by replacing more of the file path content to a static value.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-editor Area - Editor and Language Server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant