logic: record language for files

This commit is contained in:
mlangkabel
2018-12-12 15:50:29 +01:00
parent d3d5b961ff
commit 92f4a9e056
13 changed files with 66 additions and 35 deletions
@@ -103,6 +103,7 @@ void JavaParser::buildIndex(
{
m_currentFilePath = sourceFilePath;
m_currentFileId = m_client->recordFile(sourceFilePath, true);
m_client->recordFileLanguage(m_currentFileId, L"java");
// remove tabs because they screw with javaparser's location resolver
std::string fileContent = utility::replace(textAccess->getText(), "\t", " ");