Skip to content

Commit

Permalink
Don't over-escape text edits (#152350)
Browse files Browse the repository at this point in the history
Fixes #152272
  • Loading branch information
mjbvz authored Jun 16, 2022
1 parent 37b410c commit cb18a48
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/vs/workbench/contrib/bulkEdit/browser/bulkTextEdits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,7 @@ class EditorEditTask extends ModelEditTask {

} else {
this._edits = this._edits
.sort((a, b) => Range.compareRangesUsingStarts(a.range, b.range))
.map(edit => ({ ...edit, text: edit.text && SnippetParser.escape(edit.text) }));
.sort((a, b) => Range.compareRangesUsingStarts(a.range, b.range));
this._editor.executeEdits('', this._edits);
}
}
Expand Down

0 comments on commit cb18a48

Please sign in to comment.