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
Address #4165: provide a highlight group for the detailed diagnostic popup #4166
Conversation
As regards the test, I've searched for |
I guess search the tests for the option that makes this a popup? I'm not entirely sure we have tests for this tbh. |
Yep, though maybe 'Diagnostic' as it might not be an error (it might be a warning).
I dunno. Check vims docs. I'm never entirely sure. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM tbh
Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: 0 of 2 LGTMs obtained (waiting on @Aster89)
autoload/youcompleteme.vim
line 517 at r1 (raw file):
if !hlexists( 'YcmErrorPopup' ) if hlexists( 'ErrorMsg' )
is there a reason this wouldn't exist?
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #4166 +/- ##
==========================================
+ Coverage 88.82% 88.92% +0.09%
==========================================
Files 34 34
Lines 4395 4397 +2
==========================================
+ Hits 3904 3910 +6
+ Misses 491 487 -4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What else was to be done here?
Reviewable status: 0 of 2 LGTMs obtained (waiting on @puremourning)
autoload/youcompleteme.vim
line 517 at r1 (raw file):
Previously, puremourning (Ben Jackson) wrote…
is there a reason this wouldn't exist?
I don't remember anymore why I did it :'(
But I guess since |
Yeah I don't like the if unless we know why it's needed. Maybe ErrorMsg is optional? |
057ff8b
to
b2b9c9a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: 1 of 2 LGTMs obtained (waiting on @Aster89)
Looking at the other file, you were giving for granted that |
Don't you merge this? |
Sorry I had to click to approve the CI run |
Thanks for sending a PR! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 1 of 2 LGTMs obtained (waiting on @Aster89)
a discussion (no related file):
Please update docs.
@Aster89 The docs should be updated in the README.md too. Usually, YCM the README.md gets updated and then vimdocs get auto-generated with a script (and a bot). |
Good now? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r3, 1 of 1 files at r4, all commit messages.
Reviewable status: 0 of 2 LGTMs obtained (and 1 stale) (waiting on @Aster89 and @puremourning)
autoload/youcompleteme.vim
line 520 at r4 (raw file):
endif if s:PropertyTypeNotDefined( 'YcmErrorProperty' ) call prop_type_add( 'YcmErrorProperty', {
Is it just me or can YCM never reach this line?
The property type named YcmErrorProperty
was first defined on line 439.
Removed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 2 files at r1, 1 of 1 files at r5, all commit messages.
Reviewable status: 1 of 2 LGTMs obtained (and 1 stale) (waiting on @Aster89 and @puremourning)
…gnostic popup This seems to work, but I have a few questions - What tests should I look at to understand how to write one for this change? - Are you happy with the name `YcmErrorPopup`? - What should I set as `'priority'`, `'combine'`, `'override'`?
Hi, do I need to do anything else here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r3, 1 of 1 files at r4, 1 of 1 files at r5, all commit messages.
Reviewable status: 1 of 2 LGTMs obtained (and 1 stale) (waiting on @Aster89)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed all commit messages.
Reviewable status: complete! 2 of 2 LGTMs obtained (waiting on @Aster89)
Thanks for sending a PR! |
This seems to work, but I have a few questions
YcmErrorPopup
?'priority'
,'combine'
,'override'
?PR Prelude
Thank you for working on YCM! :)
Please complete these steps and check these boxes (by putting an
x
insidethe brackets) before filing your PR:
rationale for why I haven't.
actually perform all of these steps.
Why this change is necessary and useful
See #4165 and conversation on gitter.
This change is