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

Add go-{browse-{freesymbols,doc,assembly},rename} #439

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

adonovan
Copy link
Contributor

These four helper functions provide convenient ways to access gopls server functionality without the user needing to worry about how their LSP client does things. They should work for eglot and lsp-mode (though I haven't tested the latter).

Updates dominikh/go-mode.el/#436

Copy link
Owner

@dominikh dominikh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only a minor bikeshed, LGTM.

go-mode.el Outdated
(interactive)
(go-mode--code-action "source.freesymbols"))

(defun go-doc ()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something like go-browse-doc might fit better, both to distinguish it from the existing godoc and to make it more apparent that it'll open the documentation in a browser. WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something like go-browse-doc might fit better, both to distinguish it from the existing godoc and to make it more apparent that it'll open the documentation in a browser. WDYT?

My preference was to omit it for the sake of brevity, but I confess I wasn't aware of the existing godoc function, so I now see the potential for confusion. Done.

@adonovan adonovan changed the title Add go-{freesymbols,doc,assembly,rename} Add go-{freesymbols,browse-doc,assembly,rename} Jun 11, 2024
@adonovan
Copy link
Contributor Author

(Don't merge this yet: I've come around to using the go-browse-* naming for all the verbs that open a browser, so I'll update the PR to fix doc and assembly too.)

These four helper functions provide convenient ways to access
gopls server functionality without the user needing to worry
about how their LSP client does things. They should work for
eglot and lsp-mode (though I haven't tested the latter).

Updates dominikh/go-mode.el/dominikh#436
@adonovan adonovan changed the title Add go-{freesymbols,browse-doc,assembly,rename} Add go-{browse-{freesymbols,doc,assembly},rename} Jun 18, 2024
@adonovan
Copy link
Contributor Author

(Don't merge this yet: I've come around to using the go-browse-* naming for all the verbs that open a browser, so I'll update the PR to fix doc and assembly too.)

Done. Please take another look.

@adonovan
Copy link
Contributor Author

We're planning to release gopls/v0.16 today, and its release notes will mention these new functions; it would be great if we could merge this PR soon. Do let me know if there's anything you need from me.

@dominikh dominikh merged commit 636d36e into dominikh:master Jun 20, 2024
1 check passed
@dominikh
Copy link
Owner

@adonovan Sorry for the delay. It's been merged to master now. Do you need a tagged release, or are people used to installing from master?

@adonovan
Copy link
Contributor Author

@adonovan Sorry for the delay. It's been merged to master now. Do you need a tagged release, or are people used to installing from master?

No need to tag release; I have learned that Emacs users don't expect things to be easy. ;-)

Thanks.

@adonovan adonovan deleted the go-helpers branch June 21, 2024 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants