feat(loader): add a way to get the cwd's language config
Co-authored-by: Will Lillis <will.lillis24@gmail.com>
This commit is contained in:
parent
cc449ad965
commit
b3183363a2
1 changed files with 6 additions and 0 deletions
|
|
@ -1130,6 +1130,12 @@ impl Loader {
|
|||
}
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn get_language_configuration_in_current_path(&self) -> Option<&LanguageConfiguration> {
|
||||
self.language_configuration_in_current_path
|
||||
.map(|i| &self.language_configurations[i])
|
||||
}
|
||||
|
||||
pub fn find_language_configurations_at_path(
|
||||
&mut self,
|
||||
parser_path: &Path,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue