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

Method getDocumentLanguage

context/ContextManager.cpp:91–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91ProgrammingLanguage ContextManager::getDocumentLanguage(const DocumentInfo &documentInfo) const
92{
93 if (!documentInfo.document) {
94 LOG_MESSAGE("Error: Document is not available for" + documentInfo.filePath);
95 return Context::ProgrammingLanguage::Unknown;
96 }
97
98 return Context::ProgrammingLanguageUtils::fromMimeType(documentInfo.mimeType);
99}
100
101bool ContextManager::isSpecifyCompletion(const DocumentInfo &documentInfo) const
102{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected