LSP
LSP copied to clipboard
Inlay Hints positions seems not accurate
In vi mode, if I press x here, the 7 will be removed, so now the cursor is on the 7, I guess it's inlay hints cause this

another thing is that are there any options that can disable inlay hints when in the insert mode?
when we were editing in insert mode, the inlay hint popup and cursor jumped with it too was annoying
maybe we need a feature that will disable inlay hints in the current line when editing, the function's args should be provided in a popup window by LSP's function signature, not the inlay hints
What language server is this?
I feel like this is talking about known issues with phantoms/inlay hints listed at https://github.com/sublimelsp/LSP/issues/2007
I see a couple of things reported here regarding inlay hints:
1
In vi mode, if I press x here, the 7 will be removed, so now the cursor is on the 7
That is how Sublime Texte phantoms(inlay hints) behaves. While it looks like that the cursor is on an inlay hint, it is actually on 7.

Here is one official answer from the devs of ST, regarding this behavior:
https://discord.com/channels/280102180189634562/280157067396775936/897071781762957313
2
when we were editing in insert mode, the inlay hint popup and cursor jumped with it too was annoying
I think that @jwortmann warned about this: https://github.com/sublimelsp/LSP/pull/2018#issuecomment-1224166187
3
maybe we need a feature that will disable inlay hints in the current line when editing, the function's args should be provided in a popup window by LSP, not the inlay hints
There will be a feature toggle inlay hints. (there is an open PR for that https://github.com/sublimelsp/LSP/pull/2033)
We cannot do anything regarding 1, you could open an issue at the ST repo https://github.com/sublimehq/sublime_text .
We could improve 2 as @jwortmann mentioned in his comment to increase the timeout.
For 3, there is no option to toggle inlay hints when going into insert mode. IMO that would likely distract users when doing that. However there will be an option to toggle inlay hints (via the command palette or via a keybinding).
What language server is this?
is clangd
oh, maybe we need to change the inlay hint's position to A in vi mode and B in insert mode?
just open a feature enhancement of question 1 to sublime's github repo.