Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Completions show package names when they shouldn't #2478

Closed
Divni opened this issue Apr 26, 2019 · 5 comments
Closed

Completions show package names when they shouldn't #2478

Divni opened this issue Apr 26, 2019 · 5 comments

Comments

@Divni
Copy link

Divni commented Apr 26, 2019

Steps to Reproduce:

  1. Start typing os.Rena
  2. See the following:

image

It should not be showing me package names when my caret is positioned after the dot.

If I press ESC and continue typing the completions show up as expected:

image

@rusenask
Copy link

I have started noticing this as well, most of the time those random suggestions are in the top for me so I actually have to scroll up and down to find something meaningful :D

@lixiangzhong
Copy link

lixiangzhong commented Apr 28, 2019

this issue also bothers me. when "go.useLanguageServer": false

@ramya-rao-a
Copy link
Contributor

ramya-rao-a commented Apr 29, 2019

Thanks for reporting @Divni, @rusenask and @lixiangzhong

This is coming from the "auto complete unimported packages" feature. Until we have a fix for this, one workaround is to stop packages from appearing in suggestions entirely by disabling the setting go.autocompleteUnimportedPackages in your settings.

To fix this issue though, we need to pre-empt this feature when there is a . preceding the current word

PRs are most welcome to fix this bug
Code pointers:

@ramya-rao-a
Copy link
Contributor

@Divni, @rusenask and @lixiangzhong The same issue is being tracked in #2469. I have pushed a fix for the same. Please try the latest beta version of this extension which has the fix for this and let me know how it goes.

@Divni
Copy link
Author

Divni commented Apr 30, 2019

@ramya-rao-a That fixed it, thanks!

@Divni Divni closed this as completed Apr 30, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Jun 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants