Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open with + Zed session restore = same project opened twice #5919

Closed
1 task done
rkusa opened this issue Feb 5, 2023 · 1 comment
Closed
1 task done

Open with + Zed session restore = same project opened twice #5919

rkusa opened this issue Feb 5, 2023 · 1 comment
Assignees
Labels
defect [core label] workspace Feedback for workspace management, layout, interactions, etc

Comments

@rkusa
Copy link

rkusa commented Feb 5, 2023

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

You usually only want each project (folder) opened once (so only in one Zed window). I've confirmed this assumption by

  1. Open project X
  2. Open "Recent projects"
  3. Select project X again
    → not opened in a second window, as it was already opened

However, in the following scenario, the same project is opened twice:

  1. Open project X
  2. Quit Zed (without closing the project X window)
  3. Use Open with to open project X in Zed, eg. via open -a /Applications/Zed.app projextX
    → Zed now restores the previous session, but also opens a new window for project X, which leads to the same project being opened twice

Interestingly, this is not the case if I run zed projectX instead of open -a /Applications/Zed.app projextX.

I've personally noticed this because I tend to open my projects via Raycast quicklinks (which is the Open with in this case):

Screenshot_2023-01-26_at_09 00 30

Environment

Zed: v0.71.3 (stable)
OS: macOS 13.2.0
Memory: 16 GiB
Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.

No response

@rkusa rkusa added defect [core label] triage Maintainer needs to classify the issue labels Feb 5, 2023
@JosephTLyons JosephTLyons added workspace Feedback for workspace management, layout, interactions, etc and removed triage Maintainer needs to classify the issue labels Feb 6, 2023
@mikayla-maki mikayla-maki self-assigned this Feb 13, 2023
@mikayla-maki
Copy link
Contributor

This will be fixed in a few releases :)

@JosephTLyons JosephTLyons transferred this issue from zed-industries/community Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect [core label] workspace Feedback for workspace management, layout, interactions, etc
Projects
None yet
Development

No branches or pull requests

3 participants