Skip to content
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

Disable inlay hints (in .clangd project config) by default (IEP-1260) #991

Open
powerbroker opened this issue Jun 15, 2024 · 2 comments
Open

Comments

@powerbroker
Copy link

powerbroker commented Jun 15, 2024

LSP Editor, used for C/C++ files of ESP-IDF project shows inlay hints, e.g. parameter names in function invocations.

looks and behaves suxy: they appears with a delay, they reside within editor area but are NOT EDITABLE and they VIOLATE language syntax.

moreover, there is no option to prohibit such annoying staff in Eclipse settings. the only way to get rid of them is '.clang' file in project root or 'config.yaml' in user home folder - https://clangd.llvm.org/config#files.
since affecting global level through user home is bad idea, the

InlayHints:
Enabled: No

inside project's '.clangd' file is a lifesaver.

To Reproduce
just open C/C++ file with some function call in LSP Editor of Eclipse.
enjoy appearing of parameter names before parameters in function invocations and in places like them after some delay.

Expected behavior
all-the-text within editor area is fully editable. no syntax-breaking (even visually) inline constructs appear: what-you-see-is-what-you(=compiler)-get.
everyone who needs this feature may ENABLE it, e.g. somewhere in Eclipse preferences.

Screenshots
image

note separate area for line numbers on the left and for color markers on the right - each one for different kinds of hints. it would be logically correct to place such hints within e.g. tooltips, but never inside text editing area.

Espressif-IDE Product Information:
Operating System: windows 11
Java Runtime Version: 21.0.3+9-LTS
Eclipse Version: 4.32.0.v20240601-0610
Eclipse CDT Version: 11.6.0.202403071917
IDF Eclipse Plugin Version: 3.0.0.202406051940
ESP-IDF v5.2.1-dirty
Python set for IDF_PYTHON_ENV: Python 3.9.16

@github-actions github-actions bot changed the title Disable inlay hints (in .clangd project config) by default Disable inlay hints (in .clangd project config) by default (IEP-1260) Jun 15, 2024
@IJeffray
Copy link

IJeffray commented Aug 9, 2024

YES! This has been infuriating me since it was introduced. It's an awful feature and I'm boggled there's no UI preference to disable this - so THANK YOU for explaining how to at least hack the .clangd file and get rid of this.

@mmrein
Copy link

mmrein commented Nov 21, 2024

+1 for disable by default.

Also thanks for the hint on how to disable, uh, hints.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants