Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
ShowHoverInfo
action has just been added to the 2023.3 wave of releases (233.8745 and above). This action will show a combined tooltip of highlighting info and quick documentation, exactly the same as shown when hovering over a code element. This can be mapped to keys, such asnmap gh <Action>(ShowHoverInfo)
.This PR adds a safe workaround for 2023.1 and 2023.2. It adds a
VimShowHoverInfo
action that will defer toShowHoverInfo
if it exists, and calls an appropriate platform API if not. This API is intended to show the tooltip in response to anEditorMouseEvent
, so this action simply creates a fake instance for the location of the text caret.It also bumps the
since-build
value inplugin.xml
to match 2023.1 RTM, to allow using this platform API (it was previously on an earlier 231 build).Fixes VIM-2106