-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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 File from Integrated Terminal in Current Instance #118718
Comments
(Experimental duplicate detection) |
No, not covered in existing issues.
Denis
…On Thu, Mar 11, 2021 at 8:11 AM vscodebot[bot] ***@***.***> wrote:
(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already
covered by an existing one, like:
- Some Editor changes should be specific to an Instance (#50892)
<https://www.github.com/microsoft/vscode/issues/50892>
- Can't open more than one instance of vscode (#6112)
<https://www.github.com/microsoft/vscode/issues/6112>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#118718 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AITL3MS526YLGM36S4XE5E3TDC6QPANCNFSM4ZAICQXQ>
.
|
How do you open a file from Integrated Terminal of an inactive window? |
Why open in the last active window? It should open in the current window.
For me using the switch --reuse-window or no switch has the same effect.
Normal?
Say I open a project in instance A and a second project in instance B.
In the interminal terminal of instance A I do 'code -r fileA' the file will
open in the last active window (project B) even though it is for project A.
Doesn't make sense.
If I ctrl-click (open selected) of fileA it opens in project A. This is
what I want, but there are things I can do from command line but not with
ctrl-click. Like a bash function that finds the selected file and opens it
once the directory is found.
…On Thu, Mar 11, 2021 at 10:10 PM Simon Chan ***@***.***> wrote:
... should be able to open a file from the command line in the current
instance
... --reuse-window opens the file in the last active window
How do you open a file from Integrated Terminal of an inactive window?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#118718 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AITL3MT7VCPM2RDYNRG64CTTDGA2RANCNFSM4ZAICQXQ>
.
|
Any progress on this? Is it clear what I am asking for? Thanks in advance. |
It's a regression that was caused by moving the terminal process under the main process: |
From the Integrated Terminal, one should be able to open a file from the command line in the current instance (when running multiple instances of vs code).
Currently the --reuse-window opens the file in the last active window but this is not the wanted behavior. The wanted behavior is much like when ctrl-clicking on a file in the integrated terminal; it opens in the current instance of code.
I have multiple instances of VS code running - one for each projects. Using --reuse-window opens the file in an instance of code that is not related to the project.
The text was updated successfully, but these errors were encountered: