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

Method onEditorAboutToClose

ChatView/ChatRootView.cpp:988–1005  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

986}
987
988void ChatRootView::onEditorAboutToClose(Core::IEditor *editor)
989{
990 if (isChatEditor(editor)) {
991 return;
992 }
993
994 if (auto document = editor->document(); document && isSyncOpenFiles()) {
995 QString filePath = document->filePath().toFSPathString();
996 m_linkedFiles.removeOne(filePath);
997 emit linkedFilesChanged();
998 }
999
1000 if (editor) {
1001 m_currentEditors.removeOne(editor);
1002 }
1003
1004 emit openFilesChanged();
1005}
1006
1007void ChatRootView::onAppendLinkFileFromEditor(Core::IEditor *editor)
1008{

Callers

nothing calls this directly

Calls 3

isChatEditorFunction · 0.85
documentMethod · 0.80
filePathMethod · 0.45

Tested by

no test coverage detected