-
Notifications
You must be signed in to change notification settings - Fork 648
import code completion is... too complete #572
Comments
The autocomplete for unimported packages shouldnt appear when part of import statements like this. This is a bug |
Same thing happens in the package statement as well |
Once microsoft/vscode#18485 is implemented, we can stop suggesting the unimported packages when the cursor is inside a string or comment or import block etc. |
Re-opening as the current fix will not work for multi line imports |
The latest update (0.6.56) to the Go extension has the fix for package statement and single line imports. Multi line imports still has the issue |
Now that there is active development on an official language server for Go via gopls which will provide the auto-completion feature as well, there is no further planned work in the auto-completion feature that is coming directly out of the extension. This issue is being closed in favor of having the auto-completion feature from the language server which will not have the same problem. For more on language server integration with this extension, please see Go language server To go a feature request for gopls, use the Go issue tracker |
Smoke testing, Windows
type
import fmt
, code completion appearsPressing enter here now results in an extra "import fmt":
The text was updated successfully, but these errors were encountered: