Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

IDE formatter / code inspection

127 views
Skip to first unread message

Mark Diener

unread,
Apr 30, 2024, 12:13:30 PM4/30/24
to golang-dev
Quick question for anybody on the core team.

What source code directory controls the reflection of errors and ability to inspect code
when you are inside an IDE like visual studio code?

no golang has an extension inside visual studio code, but it must get its content and intelligence from the compiler and other support utlities.

What drives the content of the developer assist popups like function/parameter/return  inspection while you are editing code?

gofmt will cause code to re-format according to industry accepted patterns.  does it also drive the display of developer inspection popups?


Carla Pfaff

unread,
Apr 30, 2024, 2:33:35 PM4/30/24
to golang-dev
That's gopls, the LSP language server for Go: https://pkg.go.dev/golang.org/x/tools/gopls 

Nick White

unread,
Apr 30, 2024, 4:16:53 PM4/30/24
to Mark Diener, golang-dev
Hi Mark,

On Tue, Apr 30, 2024 at 09:13:30AM -0700, Mark Diener wrote:
> Quick question for anybody on the core team.

This question is off-topic for the list, so if you want to ask
further or get followups then post to the go-nuts list instead:
https://groups.google.com/group/golang-nuts

While I haven't used one of those IDEs, vscode's golang addon (at
least) is MIT licensed and well documented, so you can see how it
works for yourself:
https://github.com/golang/vscode-go
https://github.com/golang/vscode-go/wiki/tools

Nick
Reply all
Reply to author
Forward
0 new messages