Repository navigation
Is there a way to disable hover in VS Code? #290
|
I like having the inlays available but the hover is super annoying especially when you're just thinking about the code or hovering over a function call to see its docstring. Is there any way to disable it? Or better yet to make hover restricted to the function signature? |
Replies: 1 comment 3 replies
|
Not right now, as far as I can tell. The LSP settings that exist are Looking at the source, the server answers hover for any line between a function's first and last line, and the hover range covers the whole function. So hovering a call inside the body brings it up too: complexipy/crates/complexipy-lsp/src/analysis.rs Lines 169 to 185 in 07e49d0 A hover on/off option, or limiting it to the |
Not right now, as far as I can tell. The LSP settings that exist are
lsp.inlay-hints,lsp.per-line-hintsandlsp.diagnostics(incomplexipy.tomlor[tool.complexipy.lsp]), and the VS Code extension itself only hascomplexipy.server.path. Nothing turns hover off:https://github.com/rohaquinlop/complexipy/blob/07e49d010797fd5e4b8a52c5479265421874680c/docs/editors.md#configuration
Looking at the source, the server answers hover for any line between a function's first and last line, and the hover range covers the whole function. So hovering a call inside the body brings it up too:
complexipy/crates/complexipy-lsp/src/analysis.rs
Lines 169 to 185 in 07e49d0