You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are we talking about opening a new VS Code window for the folder link?
Or only supporting folders under current vscode workspace and revealing that in the explorer?
Maybe revealing in the explorer if it's in one of the root folders, otherwise launching a new VS Code window? I hadn't considered that before your comment 😄
The IWindowService doesn't have a way to open a new window. It has a way to open the picker to choose the folder to open in a new window
Similarly, there is a command to reveal active file in the explorer. But none that takes in a file/folder resource.
So this one is more that just a few lines of change.
#82010 is a proposed for what happens when you run the code <folder> cli where if the folder is a sub-folder of a folder that is already opened it will focus that window and focus/reveal the folder int he explorer. See #82010 (comment)
Activity
zixu-zhao commentedon Jun 27, 2017
I will try it.
Tyriar commentedon Jun 27, 2017
@ZZhaoTireless sure, you'll amend here to make the link active https://github.com/Microsoft/vscode/blob/1070a6a84a9e49f3513ac541d7f68cc449a890d8/src/vs/workbench/parts/terminal/electron-browser/terminalLinkHandler.ts#L239
Then find the service that allows you to focus in the explorer and call into it from https://github.com/Microsoft/vscode/blob/1070a6a84a9e49f3513ac541d7f68cc449a890d8/src/vs/workbench/parts/terminal/electron-browser/terminalLinkHandler.ts#L148
ramya-rao-a commentedon Jul 11, 2017
Are we talking about opening a new VS Code window for the folder link?
Or only supporting folders under current vscode workspace and revealing that in the explorer?
Tyriar commentedon Jul 11, 2017
Maybe revealing in the explorer if it's in one of the root folders, otherwise launching a new VS Code window? I hadn't considered that before your comment 😄
ramya-rao-a commentedon Jul 11, 2017
The IWindowService doesn't have a way to open a new window. It has a way to open the picker to choose the folder to open in a new window
Similarly, there is a command to reveal active file in the explorer. But none that takes in a file/folder resource.
So this one is more that just a few lines of change.
Tyriar commentedon Oct 7, 2019
#82010 is a proposed for what happens when you run the
code <folder>cli where if the folder is a sub-folder of a folder that is already opened it will focus that window and focus/reveal the folder int he explorer. See #82010 (comment)Tyriar commentedon Apr 14, 2020
This will land in tomorrow's build when you have
terminal.integrated.experimentalLinkProviderset to true.To verify:
Note that activating a link of the folder just focuses the explorer, this behavior is being discussed in #95164