Display json parsing errors when loading syntaxes.

Do not list not-visible syntax languages with "ft".
This commit is contained in:
Martín Lucas Golini
2025-04-28 21:47:01 -03:00
parent dbe674eecf
commit 8864bca9ee
2 changed files with 26 additions and 19 deletions

View File

@@ -936,6 +936,8 @@ UniversalLocator::openFileTypeModel( const std::string& pattern ) {
std::vector<std::string> fileTypeNames;
fileTypeNames.reserve( defs.size() );
for ( const auto& def : defs ) {
if ( !def.isVisible() )
continue;
if ( pattern.empty() || String::startsWith( String::toLower( def.getLanguageName() ),
String::toLower( pattern ) ) )
fileTypeNames.push_back( def.getLanguageName() );