mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:38:12 +00:00
HackStudio: Use Syntax::Language instead of our own one
The one behavior difference here is that the statusbar used to display "Unknown" for unknown file types, and "Markdown" for md, but we now display "Plain Text" for all file types without syntax highlighters.
This commit is contained in:
parent
ffce6cc977
commit
08c1effc04
9 changed files with 35 additions and 160 deletions
|
@ -226,7 +226,7 @@ void ConnectionToServerWrapper::show_crash_notification() const
|
|||
}
|
||||
|
||||
ConnectionToServerWrapper::ConnectionToServerWrapper(DeprecatedString const& language_name, Function<NonnullRefPtr<ConnectionToServer>()> connection_creator)
|
||||
: m_language(language_from_name(language_name))
|
||||
: m_language(Syntax::language_from_name(language_name).value())
|
||||
, m_connection_creator(move(connection_creator))
|
||||
{
|
||||
create_connection();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue