smit
5dc3c237eb
workspace: Do not reuse window for sub directory (only for root directory and sub files) ( #24560 )
...
Closes #10232
Context:
We have three ways to open files or dirs in Zed: `zed`, `zed --new`, and
`zed --add`. `--new` forces the project to open in a new window, while
`--add` forces it to open in an existing window (even if the dir isn’t a
subdir of an existing project or the file isn’t part of it).
Using just `zed` tries to open it in an existing window based on similar
logic of `--add`, but if no related project is found the dir, opens in a
new window.
Problem:
Right now, subdirs that are part of an existing project open in the
existing window when using `zed`. By default, subdirs should open in a
new window instead. If someone wants to open it in the existing window,
they can explicitly use `--add`. After this PR, only root dir and files
will focus on existing window, when `zed ` is used.
Fix:
For the `zed` case, we’ve filtered out subdirs in the logic that assigns
them to an existing window.
Release Notes:
- Fixed an issue where subdirectories of an already opened project, when
opened via the terminal, would open in the existing project instead of a
new window.
2025-02-13 03:37:39 +05:30
..
2025-01-27 04:00:27 +00:00
2025-02-01 06:19:29 +00:00
2025-01-26 03:02:45 +00:00
2025-02-10 20:57:25 +00:00
2025-02-10 20:57:25 +00:00
2025-02-10 00:16:12 +00:00
2025-02-01 06:19:29 +00:00
2025-01-26 03:02:45 +00:00
2025-02-05 14:30:09 +00:00
2025-01-26 03:02:45 +00:00
2025-01-26 03:02:45 +00:00
2025-01-26 03:02:45 +00:00
2025-01-26 23:37:34 +00:00
2025-02-06 08:05:41 +00:00
2025-01-27 04:00:27 +00:00
2025-02-12 19:46:42 +00:00
2025-01-31 23:25:58 +00:00
2025-02-04 10:24:35 -08:00
2025-02-06 02:09:24 -07:00
2025-02-12 07:32:17 -08:00
2025-01-17 17:39:22 +01:00
2025-02-12 19:46:42 +00:00
2025-02-11 20:16:59 +00:00
2025-01-17 17:39:22 +01:00
2025-02-11 04:55:40 +00:00
2025-02-11 04:55:40 +00:00
2025-02-11 20:16:59 +00:00
2025-02-11 20:16:59 +00:00
2025-01-26 23:37:34 +00:00
2025-01-26 03:02:45 +00:00
2025-02-07 22:06:37 +00:00
2025-01-26 03:02:45 +00:00
2025-01-27 13:40:59 -05:00
2025-02-07 12:33:35 +01:00
2025-01-26 03:02:45 +00:00
2025-02-12 20:59:11 +00:00
2025-01-26 23:37:34 +00:00
2025-02-07 11:30:53 -05:00
2025-01-17 17:39:22 +01:00
2025-02-05 18:17:19 +00:00
2025-02-10 10:52:27 -08:00
2025-02-06 00:09:37 +00:00
2025-02-12 16:23:23 +00:00
2025-02-10 20:57:25 +00:00
2025-02-10 16:12:01 -08:00
2025-02-06 17:14:39 -06:00
2025-02-04 15:29:10 -05:00
2025-01-30 23:53:36 -07:00
2025-02-05 14:30:09 +00:00
2025-02-12 19:46:42 +00:00
2025-01-26 03:02:45 +00:00
2025-02-12 15:37:17 -05:00
2025-02-03 13:18:50 -07:00
2025-02-07 11:18:18 -05:00
2025-02-11 19:18:54 +00:00
2025-02-05 14:30:09 +00:00
2025-01-31 02:00:55 +00:00
2025-01-26 03:02:45 +00:00
2025-02-12 07:32:17 -08:00
2025-02-11 20:16:59 +00:00
2025-01-26 03:02:45 +00:00
2025-02-10 22:28:56 -03:00
2025-02-12 16:23:23 +00:00
2025-01-26 23:37:34 +00:00
2025-01-26 03:02:45 +00:00
2025-02-12 15:56:31 +00:00
2025-01-26 23:37:34 +00:00
2025-02-07 11:18:18 -05:00
2025-02-10 00:16:12 +00:00
2025-02-07 02:14:57 +00:00
2025-01-28 19:04:21 -05:00
2025-02-10 20:57:25 +00:00
2025-02-11 13:06:45 -05:00
2025-01-26 23:37:34 +00:00
2025-01-26 03:02:45 +00:00
2025-01-17 17:39:22 +01:00
2025-01-31 22:28:11 +00:00
2025-02-05 21:23:46 -06:00
2025-02-06 18:37:50 -08:00
2025-02-03 16:38:45 +00:00
2025-01-17 17:39:22 +01:00
2025-01-17 17:39:22 +01:00
2025-02-11 20:46:21 +00:00
2025-02-12 19:46:42 +00:00
2025-01-30 08:56:02 -08:00
2025-01-27 04:00:27 +00:00
2025-01-26 03:02:45 +00:00
2025-02-05 16:45:38 -05:00
2025-01-27 04:00:27 +00:00
2025-02-09 21:29:29 +00:00
2025-02-10 15:52:09 +00:00
2025-02-09 16:51:37 -07:00
2025-02-07 21:17:07 +05:30
2025-02-05 14:30:09 +00:00
2025-02-13 03:37:39 +05:30
2025-02-11 20:16:59 +00:00
2025-02-05 14:30:09 +00:00
2025-02-10 20:57:25 +00:00
2025-02-12 19:46:42 +00:00
2025-02-05 14:30:09 +00:00
2025-02-05 14:30:09 +00:00
2025-02-01 06:19:29 +00:00
2025-01-26 23:37:34 +00:00
2025-02-12 19:46:42 +00:00
2025-02-11 20:16:59 +00:00
2025-02-12 07:32:17 -08:00
2025-01-26 03:02:45 +00:00
2025-02-04 15:29:10 -05:00
2025-02-06 00:09:37 +00:00
2025-01-31 01:22:10 +00:00
2025-02-07 21:17:07 +05:30
2025-02-10 10:52:27 -08:00
2025-01-17 17:39:22 +01:00
2025-01-26 03:02:45 +00:00
2025-02-12 06:47:08 +05:30
2025-01-26 03:02:45 +00:00
2025-01-26 03:02:45 +00:00
2025-01-28 10:37:48 +01:00
2025-01-27 04:00:27 +00:00
2025-01-26 03:02:45 +00:00
2025-02-05 14:30:09 +00:00
2025-01-26 03:02:45 +00:00
2025-02-11 20:16:59 +00:00
2025-01-17 17:39:22 +01:00
2025-02-12 19:46:42 +00:00
2025-02-07 22:06:37 +00:00
2025-01-26 03:02:45 +00:00
2025-02-07 21:17:07 +05:30
2025-01-26 03:02:45 +00:00
2025-02-05 14:30:09 +00:00
2025-01-17 17:39:22 +01:00
2025-02-06 02:09:24 -07:00
2025-02-01 06:19:29 +00:00
2025-02-10 00:16:12 +00:00
2025-01-27 18:11:15 -08:00
2025-02-12 14:25:01 +00:00
2025-02-07 11:30:53 -05:00
2025-01-31 01:22:10 +00:00
2025-02-11 23:45:37 +00:00
2025-01-17 17:39:22 +01:00
2025-02-10 00:16:12 +00:00
2025-01-27 04:00:27 +00:00
2025-02-12 14:17:00 -05:00
2025-01-26 03:02:45 +00:00
2025-02-09 13:25:03 -05:00
2025-02-07 20:08:09 +00:00
2025-02-05 14:30:09 +00:00
2025-02-11 11:35:59 -07:00
2025-01-26 03:02:45 +00:00
2025-02-11 20:16:59 +00:00
2025-02-13 03:37:39 +05:30
2025-02-13 03:37:39 +05:30
2025-02-12 19:28:29 +05:30
2025-02-08 03:27:58 +00:00
2025-02-12 15:56:31 +00:00