Make language settings accessors take an arc dyn file
This commit is contained in:
parent
a2ab7c9eb9
commit
03a351fb26
10 changed files with 41 additions and 54 deletions
|
@ -16,7 +16,7 @@ pub fn init(cx: &mut AppContext) {
|
|||
|
||||
pub fn language_settings<'a>(
|
||||
language: Option<&str>,
|
||||
file: Option<&dyn File>,
|
||||
file: Option<&Arc<dyn File>>,
|
||||
cx: &'a AppContext,
|
||||
) -> &'a LanguageSettings {
|
||||
settings::get_local::<AllLanguageSettings>(
|
||||
|
@ -27,7 +27,7 @@ pub fn language_settings<'a>(
|
|||
}
|
||||
|
||||
pub fn all_language_settings<'a>(
|
||||
file: Option<&dyn File>,
|
||||
file: Option<&Arc<dyn File>>,
|
||||
cx: &'a AppContext,
|
||||
) -> &'a AllLanguageSettings {
|
||||
settings::get_local::<AllLanguageSettings>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue