mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2025-11-22 02:22:44 -05:00
fear: Add hint-trigger for call code completion (#266)
This commit is contained in:
@ -146,7 +146,11 @@ public:
|
||||
requestAction.addOnTriggered(this, [this] {
|
||||
if (auto editor = TextEditor::TextEditorWidget::currentTextEditorWidget()) {
|
||||
if (m_qodeAssistClient && m_qodeAssistClient->reachable()) {
|
||||
m_qodeAssistClient->requestCompletions(editor);
|
||||
if (m_qodeAssistClient->isHintVisible()) {
|
||||
m_qodeAssistClient->hideHintAndRequestCompletion(editor);
|
||||
} else {
|
||||
m_qodeAssistClient->requestCompletions(editor);
|
||||
}
|
||||
} else
|
||||
qWarning() << "The QodeAssist is not ready. Please check your connection and "
|
||||
"settings.";
|
||||
|
||||
Reference in New Issue
Block a user