You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable the overlay for escape analysis by[ setting ui.diagnostic.annotations to include escape ](https://github.com/golang/vscode-go/wiki/> settings#uidiagnosticannotations).
What did you expect to see?
This feature is no longer available as a Code Lens but as a Code Action, and the doc should be updated to say that.
The second point is incorrect, at least at the time of reporting this. Gopls v0.18.0 removed these configuration options. That change was later reverted, so from the next release (or whichever release includes the reverted change) this point should be correct once more.
This one I'm less sure about, but I believe the Code Action option makes this feature available to more editors than VS Code. If that's correct, the docs should be updated to reflect that.
seankhliao
changed the title
x/pkgsite: GC guide docs section on escape analysis outdated
x/website: GC guide docs section on escape analysis outdated
Mar 17, 2025
seankhliao
changed the title
x/website: GC guide docs section on escape analysis outdated
x/website: GC guide outdated reference to gopls settings
Mar 17, 2025
What is the URL of the page with the issue?
https://go.dev/doc/gc-guide#Escape_analysis
What is your user agent?
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:136.0) Gecko/20100101 Firefox/136.0
Screenshot
What did you do?
Read the GC guide docs on escape analysis.
What did you see happen?
The section on using VS Code to help understand the escape analysis emitted from the Go compiler doesn't reflect recent changes in gopls.
What did you expect to see?
CC @findleyr and @adonovan as requested.
The text was updated successfully, but these errors were encountered: