Skip to content

Can't seem to get code lenses to work with gopls #3121

Answered by muirdm
jtl5770 asked this question in Q&A
Discussion options

You must be logged in to vote

There aren't very many code lenses. Here you can see most of the lenses are for go.mod files. For regular files you can opt in to "gc_details", and there is one for go generate commands and cgo. Also, there is a code lens called "test" you can opt in to that lets you run individual tests (not sure why it isn't documented).

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jtl5770
Comment options

Answer selected by jtl5770
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants