Fix incomplete language names list being used for JSON schema
For now, since initializing the languages themselves is still async, create a parallel duplicated code path that is synchronous, and just provided the language names.
This commit is contained in:
parent
cd87c5552e
commit
4775d839d7
3 changed files with 25 additions and 4 deletions
|
@ -209,7 +209,7 @@ pub fn initialize_workspace(
|
|||
cx.emit(workspace::Event::PaneAdded(workspace.active_pane().clone()));
|
||||
|
||||
let theme_names = app_state.themes.list().collect();
|
||||
let language_names = app_state.languages.language_names();
|
||||
let language_names = &languages::LANGUAGE_NAMES;
|
||||
|
||||
workspace.project().update(cx, |project, cx| {
|
||||
let action_names = cx.all_action_names().collect::<Vec<_>>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue