Closed de-vri-es closed 1 week ago
Thank you for your PR! Please change the configuration to inlayHint.position
, with inline
and eol
options.
Switched to use config
instead of _config
directly, should fix the test failure.
Attention: Patch coverage is 33.33333%
with 2 lines
in your changes missing coverage. Please review.
Project coverage is 98.49%. Comparing base (
e4abae7
) to head (4a59637
).
Files | Patch % | Lines |
---|---|---|
src/handler/inlayHint/buffer.ts | 33.33% | 2 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Hmm, can the test failure on nightly be related to this PR, or is it flaky? :o
Thanks! :partying_face:
I know this is a lot to ask but we used to be able to add an icon and color of the inlay hints in our cocconfig. Would it be possible to support those features as well?
You can configure the color by changing the CocInlayHint
, CocInlayHintType
and/or CocInlayHintParameter
syn/highlight groups (from :help coc-inlayHint
).
Icon I dunno.
I should probably make this an issue, but I'm not sure we want to support this.
In either case before (a long time ago), we used to have the following options.
"codeLens.separator": " ",
"codeLens.subseparator": " | ",
"inlayHint.typeSeparator": "‣ ",
"inlayHint.parameterSeparator": "‣ ",
@SeniorMars the separator configuration has been removed and has no plan to add back, because language server will add separator like :
with inlay hint, we don't want to do omitting/replacing work in client side.
This PR adds an option to move all inlay hints to after the original text.
Personally, I find hints inside the source code very distracting. And they make the code look much wider than it really is, which I personally do not like.
This option allows to restore the old behavior where all hints were displayed at the end of a line.