MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / onAppendLinkFileFromEditor

Method onAppendLinkFileFromEditor

ChatView/ChatRootView.cpp:1007–1020  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1005}
1006
1007void ChatRootView::onAppendLinkFileFromEditor(Core::IEditor *editor)
1008{
1009 if (isChatEditor(editor)) {
1010 return;
1011 }
1012
1013 if (auto document = editor->document(); document && isSyncOpenFiles()) {
1014 QString filePath = document->filePath().toFSPathString();
1015 if (!m_linkedFiles.contains(filePath) && !shouldIgnoreFileForAttach(document->filePath())) {
1016 m_linkedFiles.append(filePath);
1017 emit linkedFilesChanged();
1018 }
1019 }
1020}
1021
1022void ChatRootView::onEditorCreated(Core::IEditor *editor, const Utils::FilePath &filePath)
1023{

Callers

nothing calls this directly

Calls 4

isChatEditorFunction · 0.85
documentMethod · 0.80
appendMethod · 0.80
filePathMethod · 0.45

Tested by

no test coverage detected