x/tools/gopls: don't rename documentation in compiler directive comments #42331
Comments
This is the logic in rename that is meant to update doc comments. |
See #41191. These are file paths/globs on disk that are embedded at compile time into the binary. |
I don't think there's a reason to do any renames in a |
Thanks! It does sound like we can skip renaming in any comment that starts with |
Thank you for linking that--will do! |
Change https://golang.org/cl/267121 mentions this issue: |
What did you do?
I'm testing out the new embed package. I wrote:
Then I went to rename the variable to export it to test somewhere else.
What did you expect to see?
The variable is renamed; the comment is left unmodified.
What did you see instead?
I'm left with:
(Any name works,
static
->static2
works just the same.)Build info
The text was updated successfully, but these errors were encountered: