A few questions about BBEdit and Go's Language Server

113 views
Skip to first unread message

Nils Kassube

unread,
Jul 26, 2023, 2:16:41 PM7/26/23
to BBEdit Talk
Hi, 

I'm trying to use BBEdit for Go development with the LSP support. Most of the basic stuff like jumping to definitions worked out of the box.

However I'm missing an essential feature that's possible with VS Code's Go extension: smart suggestions without typing a letter, just based on the position in the source code. I do not mean Copilot like autocompletions. Just e.g. calling a Go function, cursor after the opening bracket and hitting Ctrl-Space in VS Code. Then I get suggestions for completions based on the types of the parameters. Is this possible with BBEdit and Go's LSP support? The Edit -> Complete menu item is greyed out. 

Also: the Show Parameter Help popup closes when I start typing parameters. Is it possible to keep it open while I'm still inside the parentheses? 

When I complete a function call name, it looks like this: 

scrapper.FetchShows(<# 1: #>)

The <# 1: #> is selected. In VS Code I see the parameters automatically when I type the opening parentheses. The current argument is also highlighted in the popup. 

Cheers,
Nils 

Rich Siegel

unread,
Jul 26, 2023, 2:45:35 PM7/26/23
to BBEdit Talk
These might all be good questions for Tech Support, particularly if you include a Zipped example folder which demonstrates the symptoms.

I would expect the "Complete" command on the Edit menu to be enabled when it's appropriate; currently this is done based on whether the character before the insertion point is a "completion trigger" according to the language server.

R.

Reply all
Reply to author
Forward
0 new messages