vscode-change-case icon indicating copy to clipboard operation
vscode-change-case copied to clipboard

Error shown for changing case with collapsed selection (caret)

Open mlewand opened this issue 8 years ago • 0 comments

If you execute command like extension.changeCase.upper with a collapsed selection, the extension will throw an exception that gets reported as an error: Running the contributed command:'extension.changeCase.upper' failed.

Repro steps:

  1. Open Visual Studio Code with change-case extension enabled.
  2. Create new file (ctrl/cmd+n).
  3. Press f1 to open up commands toolbox.
  4. Type Change case upper.
  5. Press enter to apply command.

Expected: No visible change happens, editor remains in tact.

Actual: Error is reported.

Might be caused by same bug as #12 though I'm not sure about repro steps in this ticket.

mlewand avatar Dec 15 '16 22:12 mlewand