feat(loader): add language_for_configuration
This commit is contained in:
parent
23b03d9f4a
commit
0dc1044d0d
1 changed files with 7 additions and 0 deletions
|
|
@ -605,6 +605,13 @@ impl Loader {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn language_for_configuration(
|
||||
&self,
|
||||
configuration: &LanguageConfiguration,
|
||||
) -> Result<Language> {
|
||||
self.language_for_id(configuration.language_id)
|
||||
}
|
||||
|
||||
fn language_for_id(&self, id: usize) -> Result<Language> {
|
||||
let (path, language, externals) = &self.languages_by_id[id];
|
||||
language
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue