question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

It looks like https://github.com/llvm/llvm-project/commit/3137ca80b9ef99359a4adf77512925c2edc461b9 stopped inlay hints from working for me. editor.inlayHints.enabled is on of course. But there are no textDocument/inlayHint messages. If I comment out https://github.com/clangd/vscode-clangd/blob/dc6518fb0af230c73aa309ef9086e37a49c7e35f/src/inlay-hints.ts#L59 they come back, but based on the clangd/inlayHints protocol of course.

Can anyone confirm this behavior?

System information

Output of clangd --version: clangd version 15.0.0 Features: linux Platform: x86_64-unknown-linux-gnu Editor/LSP plugin: VSCode 1.67.2 / 0.1.17

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
HighCommander4commented, May 25, 2022

Can anyone confirm this behavior?

Yes, I see the same.

I think the issue may be that the code to send the textDocument/inlayHint requests only appeared in vscode-languageclient version 8.0.0-next.14, but vscode-clangd only requires version 7.1.0-next.1.

0reactions
Trass3rcommented, Oct 14, 2022

True they did look better in the past iirc. Now they look confusingly similar to selected/highlighted text in the dark theme.

Edit: improved it a lot via

   "workbench.colorCustomizations": {
        "editorInlayHint.foreground": "#a2a2a2c0",
        "editorInlayHint.background": "#00000000",
    },
Read more comments on GitHub >

github_iconTop Results From Across the Web

Inlay hints | IntelliJ IDEA Documentation - JetBrains
Inlay hints are special markers that appear in the editor and provide you with additional information about your code, like the names of...
Read more >
Make Inlay Type Hints in Python Appear/Disappear - Jay Miller
Customizing How Inlay Hints Present in Your Editor. Next in settings just search for "Inlay". You should find Editor › Inlay Hints: Enabled...
Read more >
Rust-Analyzer not showing toggle inlay hints - Reddit
Hi, I'm using VSCode: When I try to add a keybind for "toggle inlay hints", it's not actually an option. Futhermore, when I...
Read more >
VS Code Tip of the Week: Inlay hints configuration options
I'm a big fan of inlay hints, but sometimes they can get in the way. Matt goes through a few ways on how...
Read more >
Visual Studio Code, rust-analyzer: Cannot disable inlay hints
For some reason I cannot disable inlay hints. I know that this used to work for me previously. ... I'm not sure what...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found