-
Notifications
You must be signed in to change notification settings - Fork 762
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
Ability to add dependencies in go.mod to search #2080
Comments
@thedadams Do you mean VSCode's default search feature by the "search everywhere" functionality? Note: Our extension provides the symbol search feature and the results include all the third-party dependencies and standard libraries even when they are outside of the workspace). That's different from VSCode's pure text search or file name search. However, I think you can still achieve what you want: Most of all, keep in mind the source code of the third-party dependency is in the module cache (either your
If that does not meet your need, I recommend opening an issue in the VS Code project issue tracker. If VS Code allows extensions to contribute to the search/index space, we are happy to implement the info provider. In my test set up for Option2, I configured:
and in .gitignore, configured not to include modcache. |
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
Is your feature request related to a problem? Please describe.
When running a program and trying to find a particular log message, I often use the "search everywhere" functionality to find the log message. This is problematic when this log message comes from a dependency of my program. The search functionality will not find the log message.
Similarly, it is not easy to open a file in a dependent package. It would be great to user cmd-p (or ctrl-p) to open the file dialog and be able to open files in dependent packages.
Describe the solution you'd like
I would like the
vscode-go
extension to somehow add the dependent files to search and the file opening dialog.Describe alternatives you've considered
I understand that this may not be possible without scanning all dependencies on startup and holding them in memory (which may not even be possible). I also understand that the functionality I am looking for may not be possible with the vscode-go extension.
I will also add that there is a work-around here: to have a
vendor
file that contains all the dependencies of my program, but this would mean having multiple copies of the files on my hard driver (potentially one copy for every repo where a dependency exists) and would need to be manually updated every time a dependency changes.Additional context
This may not be a constructive comment, but Goland handles this very nicely. This functionality is probably the only reason I used Goland over VSCode and vscode-go.
The text was updated successfully, but these errors were encountered: