| 89 | } |
| 90 | |
| 91 | ProgrammingLanguage 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 | |
| 101 | bool ContextManager::isSpecifyCompletion(const DocumentInfo &documentInfo) const |
| 102 | { |
nothing calls this directly
no outgoing calls
no test coverage detected