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

Method openFileInEditor

ChatView/FileItem.cpp:20–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18{}
19
20void FileItem::openFileInEditor()
21{
22 if (m_filePath.isEmpty()) {
23 return;
24 }
25
26 Utils::FilePath filePathObj = Utils::FilePath::fromString(m_filePath);
27 Core::IEditor *editor = Core::EditorManager::openEditor(filePathObj);
28
29 if (!editor) {
30 LOG_MESSAGE(QString("Failed to open file in editor: %1").arg(m_filePath));
31 }
32}
33
34void FileItem::openFileInExternalEditor()
35{

Callers

nothing calls this directly

Calls 1

isEmptyMethod · 0.45

Tested by

no test coverage detected