From e13b88e4bd4d3f0caa3a94296147b5cad0a714c7 Mon Sep 17 00:00:00 2001 From: loczek <30776250+loczek@users.noreply.github.com> Date: Sat, 27 Sep 2025 11:01:04 +0200 Subject: [PATCH] snippets: Fix `configure snippets` not opening on remote workspaces (#38790) Release Notes: - Fixed `snippets: configure snippets` action not working on remote workspaces --- crates/snippets_ui/src/snippets_ui.rs | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/crates/snippets_ui/src/snippets_ui.rs b/crates/snippets_ui/src/snippets_ui.rs index 7f2689f0be7a805e6b80a9b7c320cdaa13cc46ac..cfe41144ba955f34ac527f605940835015e1d218 100644 --- a/crates/snippets_ui/src/snippets_ui.rs +++ b/crates/snippets_ui/src/snippets_ui.rs @@ -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(); }) })