sublimelsp / LSP-gopls

Golang support for Sublime's LSP plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Autocomplete different results

quapo opened this issue · comments

Autocomple shows different results when using tab and not using tab.
Expected behaviour: Not pressing tab should show the same results as using tab before
Specs:

  • OS: Windows 10 Pro Build 19042.1288
  • Go version: go version go1.17.3 windows/amd64
  • Gopls version: golang.org/x/tools/gopls v0.7.3 golang.org/x/tools/gopls@v0.7.3 h1:Lru57ht8vtDMouRskFC085VAjBAZRAISd/lwvwOOV0Q=
  • Sublime version: SublimeText 4 version 4121
  • Plutign version: LSP-gopls v1.0.2

Example:
As a basic example we'll use the following code:

package main

import "fmt"

func main() {
    fmt.Println("Hello World")
}

when entering fmt (without pressing TAB) and entering a dot after it this autocomplete is shown:
image
when entering fmt (with pressing TAB) and entering a dot after it this autocomplete is shown:
image

Yeah like the original issue but not what was the last mentioned issue. I'll close this one and comment on the other one thank you @rwols