Repository navigation
Fix source marker formatting - #10491
Merged
Merged
Conversation
Code diagnostics correctly renders Fix duplicate gutter markers Fix RMarkdown visual mode marker tooltips
4 tasks done
Contributor
Author
|
Merging to fix the automated test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
Fixes #10430 and #10062
The gutter would show duplicate issues and the duplicate would be incorrectly formatted. RMarkdown files in visual mode literally rendered the HTML in the tooltip. The issues would manifest after code diagnostics had run and the R session was restarted.
Approach
For duplicate gutter issues, this came from adding the custom source markers to the gutter. Code diagnostics already had the issues and they would be added a second time to the lint result. Adding a flag to the marker set that it is a diagnostic issue allows a check to prevent adding it to lint items returned.
For the formatting issues with tooltips, a flag was added to
VirtualConsoleto render the text as HTML. This allowed the HTML entities to show up properly in the tooltips. If the source editor was in visual mode then it would not apply any formatting since the tooltip sets the text using atitleattribute.The session restart wrote the source markers to file so they could be reloaded. The file now writes the marker set flag that indicates the markers are diagnostic issues. Upon read, it sets the flag again so the linter can only retrieve the custom source markers.
Automated Tests
An existing test covers the visual mode tooltip.
QA Notes
See #10430 for reproduction steps.
Checklist
NEWS.md