Home > Blockchain >  Visual Studio Code 1.67.1 - Fails to provide any choices when using snippets
Visual Studio Code 1.67.1 - Fails to provide any choices when using snippets

Time:05-13

results: failed choices in VSC

snapshot.code-snippets (code)

"Wait4widget": {
    "scope": "javascript",
    "prefix": "wait4widget",
    "body": [
        "await AWS2Page.hoverclickandload${1|lov,popup,subpanel,cmdstack,page,graphicpage|}(page, ${TM_SELECTED_TEXT:JSHandle});"
    ],
    "description": "Add a hover, click, and wait for loading widgets (Ctrl F2)"
},

==================

Issue: in a prior release the snippet with the "non-space" between the text 'load' and $ supported the 6 choices, now I get a dropdown that indicates "no suggestions." and it enters the 1st choice of "lov". If I add a space between the 'load' and the $, it provides the choices (but the space is not desired)

ideas?

thanks

CodePudding user response:

It looks like this regression has been recently reported in these two github issues:

Snippet expansion regression in 1.67
Snippet choices lost

and the location of the bug is known. It'll probably be fixed pretty quickly but "may" not make it for the next recovery release (see https://github.com/microsoft/vscode/milestone/189?closed=1) so you may have to wait until v1.68 unless you use the Insiders Build.

But you should add your finding that a space right before the ${<choice>... fixes it to the second issue, it might be helpful info.

  • Related