MCPcopy Create free account
hub / github.com/SpartanJ/eepp / tryHideTooltip

Method tryHideTooltip

src/tools/ecode/plugins/lsp/lspclientplugin.cpp:1676–1682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1674}
1675
1676void LSPClientPlugin::tryHideTooltip( UICodeEditor* editor, const Vector2i& position ) {
1677 if ( ( editor->hasDocument() && editor->getDocument().isLoading() ) ||
1678 !mCurrentHover.range.isValid() ||
1679 ( mCurrentHover.range.isValid() &&
1680 !mCurrentHover.range.contains( editor->resolveScreenPosition( position.asFloat() ) ) ) )
1681 hideTooltip( editor );
1682}
1683
1684void LSPClientPlugin::displayTooltip( UICodeEditor* editor, const LSPHover& resp,
1685 const Vector2f& position ) {

Callers

nothing calls this directly

Calls 7

getDocumentMethod · 0.80
resolveScreenPositionMethod · 0.80
hasDocumentMethod · 0.45
isLoadingMethod · 0.45
isValidMethod · 0.45
containsMethod · 0.45
asFloatMethod · 0.45

Tested by

no test coverage detected