MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / initConnection

Method initConnection

src/plugins/codeeditor/lsp/languageclienthandler.cpp:69–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void LanguageClientHandlerPrivate::initConnection()
70{
71 connect(editor, &TextEditor::textChanged, this, [this] { textChangedTimer.start(); });
72 connect(editor, &TextEditor::cursorPositionChanged, this, [this] { positionChangedTimer.start(); });
73 connect(editor, &TextEditor::documentHovered, this, &LanguageClientHandlerPrivate::handleHoveredStart);
74 connect(editor, &TextEditor::documentHoverEnd, this, &LanguageClientHandlerPrivate::handleHoverEnd);
75 connect(editor, &TextEditor::requestFollowType, this, &LanguageClientHandlerPrivate::handleFollowTypeStart);
76 connect(editor, &TextEditor::followTypeEnd, this, &LanguageClientHandlerPrivate::handleFollowTypeEnd);
77 connect(editor, &TextEditor::indicatorClicked, this, &LanguageClientHandlerPrivate::handleIndicClicked);
78 connect(editor, &TextEditor::contextMenuRequested, this, &LanguageClientHandlerPrivate::handleShowContextMenu);
79 connect(editor, &TextEditor::fileClosed, this, &LanguageClientHandlerPrivate::handleFileClosed);
80 connect(&renamePopup, &RenamePopup::editingFinished, this, &LanguageClientHandlerPrivate::handleRename);
81 connect(&textChangedTimer, &QTimer::timeout, this, &LanguageClientHandlerPrivate::delayTextChanged);
82 connect(&positionChangedTimer, &QTimer::timeout, this, &LanguageClientHandlerPrivate::delayPositionChanged);
83 connect(languageWorker, &LanguageWorker::highlightToken, this, &LanguageClientHandlerPrivate::handleHighlightToken);
84 connect(ToolTip::instance(), &ToolTip::hidden, this, [this] { hoverCache.clean(); });
85}
86
87void LanguageClientHandlerPrivate::initLspConnection()
88{

Callers

nothing calls this directly

Calls 3

connectFunction · 0.85
startMethod · 0.45
cleanMethod · 0.45

Tested by

no test coverage detected