| 67 | } |
| 68 | |
| 69 | void 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 | |
| 87 | void LanguageClientHandlerPrivate::initLspConnection() |
| 88 | { |