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

Method showLineChatTip

src/plugins/chat/copilot.cpp:228–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228void Copilot::showLineChatTip(const QString &fileName, int line)
229{
230 auto keySequences = lineChatCmd->keySequences();
231 QStringList keyList;
232 for (const auto &key : keySequences) {
233 if (key.isEmpty())
234 continue;
235 keyList << key.toString();
236 }
237
238 if (!keyList.isEmpty()) {
239 QString msg = InlineChatWidget::tr(" Press %1 to inline chat").arg(keyList.join(','));
240 editorService->eOLAnnotate(fileName, lineChatTip, msg, line, Edit::TipAnnotation);
241 }
242}
243
244void Copilot::startInlineChat()
245{

Callers

nothing calls this directly

Calls 4

keySequencesMethod · 0.80
isEmptyMethod · 0.45
toStringMethod · 0.45
eOLAnnotateMethod · 0.45

Tested by

no test coverage detected