snippets: Fix configure snippets not opening on remote workspaces (#38790)

Release Notes:

- Fixed `snippets: configure snippets` action not working on remote
workspaces
This commit is contained in:
loczek
2025-09-27 11:01:04 +02:00
committed by GitHub
parent e1e9f78dc3
commit e13b88e4bd
+13 -9
View File
@@ -221,15 +221,19 @@ impl PickerDelegate for ScopeSelectorDelegate {
workspace.update_in(cx, |workspace, window, cx| {
workspace
.open_abs_path(
snippets_dir().join(scope_file_name.with_extension()),
OpenOptions {
visible: Some(OpenVisible::None),
..Default::default()
},
window,
cx,
)
.with_local_workspace(window, cx, |workspace, window, cx| {
workspace
.open_abs_path(
snippets_dir().join(scope_file_name.with_extension()),
OpenOptions {
visible: Some(OpenVisible::None),
..Default::default()
},
window,
cx,
)
.detach();
})
.detach();
})
})