Skip to content

Snippet tab stop selection issue #96545

@0x7FFFFFFFFFFFFFFF

Description

@0x7FFFFFFFFFFFFFFF
  • VSCode Version:
    Version: 1.45.0-insider
    Commit: 4bd2068
    Date: 2020-04-29T05:33:59.143Z
    Electron: 7.2.2
    Chrome: 78.0.3904.130
    Node.js: 12.8.1
    V8: 7.8.279.23-electron.0

  • OS Version:
    OS: Windows_NT x64 10.0.19035

Steps to Reproduce:

  1. Create a snippet with the following code.
{
    "my test 1": {
        "scope": "",
        "prefix": [
            "test1"
        ],
        "body": [
            "${1:{}${2:fff}${1/[\\{]/}/}"
        ],
        "description": "my test 1"
    }
}
  1. Invoke the snippet and this is what happened.

Expected behavior:

  • Invoke the snippet, tab stop 1 (both {) is selected
  • Press tab, last { changed to } and selection moved to fff

Actual behavior:

  • Invoke the snippet, tab stop 1 (both {) is selected
  • Press tab, last { changed to } and selection moved to fff}

Does this issue occur when all extensions are disabled?: Yes

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bughelp wantedIssues identified as good community contribution opportunitiesinsiders-releasedPatch has been released in VS Code InsiderssnippetsverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions