Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix registration of tooltip only highlighter for ReSharper #2234

Merged
merged 3 commits into from
Dec 21, 2021

Conversation

citizenmatt
Copy link
Member

GUID references in a .asmdef file show a tooltip with the name of the referenced assembly definition. This INFO level highlighter was registered with TextEffect.TEXT, but should have been registered with TextEffect.NONE.

If registered with TEXT, then ReSharper requires non-default values for the highlighter attributes, and throws an exception when trying to use the attribute (e.g. by placing the caret on a GUID reference). If registered with an empty set of attributes, Rider will not pass the details to the front-end and the tooltip is not shown. This change uses NONE, so ReSharper ignores the text attributes, and adds one non-default attribute, so that Rider will still pass the highlighter to the frontend (but because it's set to NONE, it's ignored.

Resolves part of RSPL-6988.

@citizenmatt citizenmatt added the resharper-plugin Issues that apply to the ReSharper plugin only label Dec 21, 2021
@citizenmatt citizenmatt added this to the Rider 2021.3.2 milestone Dec 21, 2021
@citizenmatt citizenmatt self-assigned this Dec 21, 2021
@citizenmatt citizenmatt marked this pull request as ready for review December 21, 2021 09:35
@citizenmatt citizenmatt merged commit 5c67852 into net213 Dec 21, 2021
@citizenmatt citizenmatt deleted the net213-mte-resharper-fix branch December 21, 2021 10:15
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
resharper-plugin Issues that apply to the ReSharper plugin only
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant