fear: Add hint-trigger for call code completion (#266)

This commit is contained in:
Petr Mironychev
2025-11-17 22:24:04 +01:00
committed by GitHub
parent 86c6930c5f
commit bcdec96d92
13 changed files with 565 additions and 54 deletions

View File

@ -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.";