chore: Fix several style lints (#17488)
It's not comprehensive enough to start linting on `style` group, but hey, it's a start. Release Notes: - N/A
This commit is contained in:
parent
93249fc82b
commit
e6c1c51b37
361 changed files with 3530 additions and 3587 deletions
|
@ -25,6 +25,7 @@ pub struct ProjectSettings {
|
|||
///
|
||||
/// The following settings can be overridden for specific language servers:
|
||||
/// - initialization_options
|
||||
///
|
||||
/// To override settings for a language, add an entry for that language server's
|
||||
/// name to the lsp value.
|
||||
/// Default: null
|
||||
|
@ -335,16 +336,13 @@ impl SettingsObserver {
|
|||
event: &WorktreeStoreEvent,
|
||||
cx: &mut ModelContext<Self>,
|
||||
) {
|
||||
match event {
|
||||
WorktreeStoreEvent::WorktreeAdded(worktree) => cx
|
||||
.subscribe(worktree, |this, worktree, event, cx| match event {
|
||||
worktree::Event::UpdatedEntries(changes) => {
|
||||
this.update_local_worktree_settings(&worktree, changes, cx)
|
||||
}
|
||||
_ => {}
|
||||
})
|
||||
.detach(),
|
||||
_ => {}
|
||||
if let WorktreeStoreEvent::WorktreeAdded(worktree) = event {
|
||||
cx.subscribe(worktree, |this, worktree, event, cx| {
|
||||
if let worktree::Event::UpdatedEntries(changes) = event {
|
||||
this.update_local_worktree_settings(&worktree, changes, cx)
|
||||
}
|
||||
})
|
||||
.detach()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue