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

Method assembleCodeByCurrentFile

src/plugins/chat/copilot.cpp:218–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218QString 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
228void Copilot::showLineChatTip(const QString &fileName, int line)
229{

Callers

nothing calls this directly

Calls 1

currentFileMethod · 0.45

Tested by

no test coverage detected