Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Feature request: Add import folder to workspace #1733

Closed
freman opened this issue Jun 15, 2018 · 3 comments
Closed

Feature request: Add import folder to workspace #1733

freman opened this issue Jun 15, 2018 · 3 comments

Comments

@freman
Copy link
Contributor

freman commented Jun 15, 2018

I'm not sure how feasible this one is but it's something I'm constantly doing.

It'd be super cool if you could select an import, right click it, and add folder to workspace.

@ramya-rao-a
Copy link
Contributor

PRs are welcome for this feature

References:

  • The Go: Get Package is an example of a command that acts on the import statement.
  • vscode.workspace.updateWorkspaceFolders can help in adding folder to workspace

@freman
Copy link
Contributor Author

freman commented Jun 20, 2018

So, I'll be the first to admin, I've never used typescript before and my abuse of it is probably a reflection but I have a patch #1745 that is a start in a direction. It's not vendor aware but realistically your vendors are already in your workspace.

Happy for tips to further develop it?

@ramya-rao-a
Copy link
Contributor

ramya-rao-a commented Jul 26, 2018

This feature is now out in the latest update (0.6.85) to the Go extension.

One can now select the complete import statement or part of the import to add the folder corresponding to the imported package to current workspace.

@vscodebot vscodebot bot locked and limited conversation to collaborators Aug 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants