-
Notifications
You must be signed in to change notification settings - Fork 763
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
tools: merge gomodifytags
functionality into gopls
and use gopls
#2002
Comments
This PR moves the `gomodifytags` tool into its own package so it can be imported by other applications (i.e: `gopls`). It's currently delibaretly put under `internal`, as I want to make sure it meets the needs of others. related: golang/vscode-go#2002
This PR moves the `gomodifytags` tool into its package to be imported by other applications (i.e.: `gopls`). It's currently deliberately put under `internal`, as I want to make sure it meets the needs of others. related: golang/vscode-go#2002
@hyangah Hi 👋🏼 When I created It's currently inside an Let me know what you think and how you think we should proceed. For example, do we want to make |
Hi! Thanks a lot @fatih! cc @findleyr for API & gopls integration advice: Skimming through your PR, the new API will be like
Currently Gopls does the custom command integration within the x/tools/internal/lsp/command framework. Gopls manages the snapshot of the parsed file including the overlay treatment, and the framework allows the integrated tool to access data available in So, I think it would allow us more efficient integration if the API simply lets the caller handle read/parse/output part, takes For example, I think it's better to keep it under |
Thank you @fatih! I also only skimmed the PR, but have a couple thoughts:
|
From #1652
Function: modify tags on structs (go.add.tags, go.remove.tags commands)
Proposal:
gomodifytags
.gomodifytags
and reuse it from gopls? (cc @fatih)The text was updated successfully, but these errors were encountered: