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

Method readContext

src/plugins/chat/chatmanager.cpp:504–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

502}
503
504QString ChatManager::readContext(const QString &path, int codeLine)
505{
506 auto editorSrv = dpfGetService(EditorService);
507 Edit::Range range;
508 range.start.line = qMax(0, codeLine - 3);
509 range.end.line = codeLine + 3;
510 return editorSrv->rangeText(path, range);
511}
512
513QString ChatManager::condaRootPath() const
514{

Callers

nothing calls this directly

Calls 1

rangeTextMethod · 0.45

Tested by

no test coverage detected