Skip to content

Surrounding selection with quotes #7159

@nemanjapesic

Description

@nemanjapesic
  • Issue Type: Bug
  • Extension Name: vim
  • Extension Version: 1.21.8
  • OS Version: Windows_NT x64 10.0.19043
  • VS Code version: 1.61.1

This used to work before but now is acting broken.

Select some keyword, or for example when using clg snippet (it creates console.log(object) and selects word 'object'.
Press ' or SHIFT + '
Results: The selected word gets surrounded with quotes but the problem is that the selection is lost and the insert cursor is placed between penultimate and the last letter which is weird. Continuing to type creates a result like 'objecnewly typed textt'

Expected behavior: The selected word gets surrounded with quotes and remains selected. Continuing to type replaces the selection with newly typed characters.

VSCode: microsoft/vscode#133995 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions