-
Notifications
You must be signed in to change notification settings - Fork 645
Auto-complete fails in snippet completion #2474
Comments
#2469 this issue seems like your problem. And it has a temporary solution--revert the version of vscode-go |
I think this is different, this only happens during a snippet's execution |
0.9.2 is normal, 0.10.x has problems, and now auto-complete input lowercase will not match first. |
Thanks for reporting @tj and @imkos Can you share any Go related settings that you may have added/edited? Also, please try the latest beta version of this extension which has the fix for #2469 and let me know how it makes any difference here. |
I tried this version (0.10.2-beta.1) and it seems that the recovery is as good as the 0.9.2 version.
|
@ramya-rao-a looks like it's still happening in the latest beta, and my tabSize seems to be stuck at 8 rather than 2 now. Here's all my settings at the moment: {
"window.zoomLevel": 0,
"editor.tabSize": 2,
"editor.minimap.enabled": false,
"editor.folding": false,
"editor.hover.delay": 150,
"editor.renderIndentGuides": false,
"editor.renderControlCharacters": false,
"editor.renderLineHighlight": "none",
"window.titleBarStyle": "custom",
"telemetry.enableTelemetry": false,
"go.addTags": {
"tags": "json",
"options": "",
"promptForTags": false,
"transform": "snakecase"
},
"go.gotoSymbol.includeGoroot": true,
"emmet.showExpandedAbbreviation": "never",
"go.testOnSave": false,
"go.testTimeout": "15s",
"editor.multiCursorModifier": "ctrlCmd",
"editor.formatOnPaste": false,
"editor.formatOnSave": false,
"workbench.statusBar.visible": false,
"workbench.activityBar.visible": false,
"workbench.iconTheme": null,
"workbench.colorTheme": "Supernova",
"editor.scrollBeyondLastLine": false,
"git.enableSmartCommit": true,
"city-lights-icons-vsc.hidesExplorerArrows": false,
"editor.find.seedSearchStringFromSelection": false,
"editor.codeLens": false,
"go.autocompleteUnimportedPackages": true,
"explorer.confirmDragAndDrop": false,
"editor.cursorBlinking": "solid",
"workbench.startupEditor": "newUntitledFile",
"emmet.showAbbreviationSuggestions": false,
"go.useLanguageServer": true,
"go.formatTool": "goreturns",
"[go]": {
"editor.formatOnSave": true,
"editor.snippetSuggestions": "top",
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
},
"gopls": {
"usePlaceholders": true,
"enhancedHover": true,
},
"atomKeymap.promptV3Features": true,
"scm.diffDecorations": "none"
} |
@tj The tab size should be back to normal in the beta update(0.10.2-beta.2) that I just released Your settings look fine. Can you share a small code sample where I can try and replicate your issue? |
@tj On second thoughts your issue is definitely different from #2469 Please go to |
Looks like I have |
The defer issue is golang/go#29313. |
hmm ok interesting about I see the same behaviour with snippets, maybe that's the only VScode fault. For example typing |
I think this is still a |
@stamblerre ahh that makes sense, my snippet goes to the right-hand side first and then left, but you're right, for that moment it's not valid Go, that's probably it I'll try tweaking the snippet |
That did the trick, adjusting the snippet to have a placeholder is fine now. Closing this one, sorry for the noise! |
Not noise at all! Filed golang/go#31907 so that we can ultimately handle more broken cases. Thank you! |
I'm not sure if this is a VScode-level problem or something specific to Go / the language server but I think this used to work.
The text was updated successfully, but these errors were encountered: