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

Method Copilot

src/plugins/chat/copilot.cpp:23–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21using namespace dpfservice;
22
23Copilot::Copilot(QObject *parent)
24 : QObject(parent)
25{
26 editorService = dpfGetService(EditorService);
27 if (!editorService) {
28 qFatal("Editor service is null!");
29 }
30
31 QAction *lineChatAct = new QAction(tr("Inline Chat"), this);
32 lineChatCmd = ActionManager::instance()->registerAction(lineChatAct, "Chat.InlineChat");
33 lineChatCmd->setDefaultKeySequence(Qt::CTRL + Qt::Key_T);
34 connect(lineChatAct, &QAction::triggered, this, &Copilot::startInlineChat);
35}
36
37QString Copilot::selectedText() const
38{

Callers

nothing calls this directly

Calls 3

connectFunction · 0.85
registerActionMethod · 0.80
setDefaultKeySequenceMethod · 0.80

Tested by

no test coverage detected