| 226 | } |
| 227 | |
| 228 | void 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 | |
| 244 | void Copilot::startInlineChat() |
| 245 | { |
nothing calls this directly
no test coverage detected