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

Terminal links should support folders #29499

Closed
Tyriar opened this issue Jun 26, 2017 · 7 comments
Closed

Terminal links should support folders #29499

Tyriar opened this issue Jun 26, 2017 · 7 comments
Assignees
Labels
feature-request Request for new features or functionality on-testplan terminal General terminal issues that don't fall under another label terminal-links
Milestone

Comments

@Tyriar
Copy link
Member

Tyriar commented Jun 26, 2017

Clicking a link could open the folder in the explorer.

@Tyriar Tyriar added feature-request Request for new features or functionality help wanted Issues identified as good community contribution opportunities terminal General terminal issues that don't fall under another label labels Jun 26, 2017
@Tyriar Tyriar added this to the Backlog milestone Jun 26, 2017
@Tyriar Tyriar self-assigned this Jun 26, 2017
@zixu-zhao
Copy link

I will try it.

@ramya-rao-a
Copy link
Contributor

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
Copy link
Member Author

Tyriar commented 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
Copy link
Contributor

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
Copy link
Member Author

Tyriar commented 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
Copy link
Member Author

Tyriar commented Apr 14, 2020

This will land in tomorrow's build when you have terminal.integrated.experimentalLinkProvider set to true.

To verify:

  • Folder links inside the workspace should focus the folder in the explorer
  • Folder links outside the workspace should force open a new window

Note that activating a link of the folder just focuses the explorer, this behavior is being discussed in #95164

@github-actions github-actions bot locked and limited conversation to collaborators May 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality on-testplan terminal General terminal issues that don't fall under another label terminal-links
Projects
None yet
Development

No branches or pull requests

3 participants