-
Notifications
You must be signed in to change notification settings - Fork 646
Feature Request: Open Package in new window #1928
Comments
Is the expectation to see the contents of the package? Currently, when your cursor is on one of the packages in the import block, you can run You can also run |
Those are great, but neither does quiet what I hoped.
Ultimately the command would be Closest command I have found is "Go to Definition" contextual menu, which works on package contents, but not the package name itself. |
Keeping the cursor on the package in the import block and then calling |
I have been expecting this feature for a long long time, but it has never been implemented. In fact This is worth learning and reference. those great feature in 1. Tree View for External Libries 2. command-click to navigate to the import's source It is undeniable that goLand is a commercial software and does have a lot to learn. I also hope to use these features in vscode. |
Can you elaborate on this? Was the package under the main folder that you had already opened in VS Code? Or were you in a multi-root workspace set up and the package was one of the top level folders already opened? Cmd-click is reserved for the Go to definition feature in VS Code.
I still believe To open the package in a new window, we can definitely support a new command called say PRs are welcome if anyone wants to give this a try Code Pointers:
|
After a few months, can someone achieve this feature? Because of this feature, I had to use But I really like |
|
Looks like the upstream code has been merged. @stamblerre, Can you explain how this feature will work? We can close the issue after that |
This was already available via the I believe the ask is more towards the ability to open the folder to the package in the file explorer. If the package is not already part of the current workspace, then perhaps adding it to the workspace |
The original ask has been addressed by the use of language server i.e navigating to the source path and the web page
To open the package in a new folder is not a feature we will be investing anytime soon, but can be implemented independent of this package in a separate extension. |
Similar to the URL detection in VSCode's terminal, when hovering over a supported import string (eg "github.com/google/uuid") the string would become underlined with a tool tip to "Cmd + click open source" (or appropriate OS modifier key)
When clicked it would open the source import path. This could be new window, or just navigating to the source in the file tree view, depending on the project root.
Extra cool would be an option to open the appropriate web page (but that can get complicated if it is not a top level package in a repo)
The text was updated successfully, but these errors were encountered: