| 216 | } |
| 217 | |
| 218 | QString Copilot::assembleCodeByCurrentFile(const QString &code) |
| 219 | { |
| 220 | auto filePath = editorService->currentFile(); |
| 221 | auto fileType = support_file::Language::id(filePath); |
| 222 | |
| 223 | QString result; |
| 224 | result = "```" + fileType + "\n" + code + "```"; |
| 225 | return result; |
| 226 | } |
| 227 | |
| 228 | void Copilot::showLineChatTip(const QString &fileName, int line) |
| 229 | { |
nothing calls this directly
no test coverage detected