mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-12 01:20:13 +03:00
Display json parsing errors when loading syntaxes.
Do not list not-visible syntax languages with "ft".
This commit is contained in:
@@ -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() );
|
||||
|
||||
Reference in New Issue
Block a user