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

Method getLanguageAndFileInfo

context/DocumentContextReader.cpp:111–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111QString DocumentContextReader::getLanguageAndFileInfo() const
112{
113 QString language = LanguageServerProtocol::TextDocumentItem::mimeTypeToLanguageId(m_mimeType);
114 QString fileExtension = QFileInfo(m_filePath).suffix();
115
116 return QString("Language: %1 (MIME: %2) filepath: %3(%4)\n\n")
117 .arg(language, m_mimeType, m_filePath, fileExtension);
118}
119
120CopyrightInfo DocumentContextReader::findCopyright()
121{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected