forked from qt-creator/qt-creator
		
	Unify projectexplorer language IDs
We don't need two IDs for C++ and the QmlJS ID should look the same as as the others. Change-Id: Ib9747f6b36a90bb652951d85eec69666615670c4 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
		@@ -130,7 +130,7 @@ QList<Core::Id> BaseProjectPartBuilder::createProjectPartsForFiles(const QString
 | 
			
		||||
 | 
			
		||||
    if (cat.hasParts()) {
 | 
			
		||||
        // The ProjextExplorer does not distinguish between other versions than C++ and QML.
 | 
			
		||||
        languages += ProjectExplorer::Constants::LANG_CXX;
 | 
			
		||||
        languages += ProjectExplorer::Constants::CXX_LANGUAGE_ID;
 | 
			
		||||
 | 
			
		||||
        if (cat.hasCxxSources()) {
 | 
			
		||||
            createProjectPart(cat.cxxSources(),
 | 
			
		||||
 
 | 
			
		||||
@@ -972,7 +972,7 @@ ProjectPart::Ptr CppModelManager::fallbackProjectPart()
 | 
			
		||||
 | 
			
		||||
bool CppModelManager::isCppEditor(Core::IEditor *editor)
 | 
			
		||||
{
 | 
			
		||||
    return editor->context().contains(ProjectExplorer::Constants::LANG_CXX);
 | 
			
		||||
    return editor->context().contains(ProjectExplorer::Constants::CXX_LANGUAGE_ID);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool CppModelManager::isClangCodeModelActive() const
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user