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:
Amaan Qureshi 2025-01-03 04:10:59 -05:00 committed by Will Lillis
parent cc449ad965
commit b3183363a2

View file

@ -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,