-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[Bug]: -r opens wrong file in wrong instance #5709
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
Comments
Probably the second tab is opened after the first tab so code-server favored it over the first one. |
Yeah, I imagined this was the case, but vscode automatically opens the file in the correct instance. |
I opened up 2 |
Thank you both for your insight! If the behavior is the same in vscode, then we could classify it as an upstream issue. Let me know if we should close this! |
Just to clarify, I believe @danog means that he's using the VS Code integrated terminal. When inside the integrated terminal, |
Actually no I opened the files in a separate terminal, and I could've sworn this worked/was recently fixed in vscode, will try again tomorrow |
Checked, this works just fine in vscode. |
If I understand correctly, the A possible solution: Extend
Basically:
Happy to make a PR to get this to work :) |
That sounds like a lovely solution and PRs are definitely welcome. Just to check, we are talking about the behavior when running |
Correct. |
Is there an existing issue for this?
OS/Web Information
code-server --version
: 4.7.1 b562d4a with Code 1.71.2Steps to Reproduce
a
andb
in two tabsa
, runcode-server -r a.php
Expected
The first tab opens
a/a.php
Actual
The second tab opens
b/a.php
Logs
No response
Screenshot/Video
No response
Does this issue happen in VS Code or GitHub Codespaces?
Are you accessing code-server over HTTPS?
Notes
No response
The text was updated successfully, but these errors were encountered: