From e385f7ac8e61301cd27214c963c0d90ca98477cc Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Thu, 16 Jun 2022 08:39:01 -0700 Subject: [PATCH] Don't over-escape text edits Fixes #152272 --- src/vs/workbench/contrib/bulkEdit/browser/bulkTextEdits.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/vs/workbench/contrib/bulkEdit/browser/bulkTextEdits.ts b/src/vs/workbench/contrib/bulkEdit/browser/bulkTextEdits.ts index 047600a391210..c63d63003c636 100644 --- a/src/vs/workbench/contrib/bulkEdit/browser/bulkTextEdits.ts +++ b/src/vs/workbench/contrib/bulkEdit/browser/bulkTextEdits.ts @@ -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); } }