You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open the Search tab and add the following search (ensure "Use Regular Expression" is enabled):
foo\n(bar) baz
Open the replace dropdown and use the following replace:
$1 baz
Run "Replace All"
Expected: File text is replaced with bar baz
Actual: File text is replaced with $1 baz
What's odd is that this only happens for the actual Search tab. If I do the exact same search and replace inline for the file, it replaces the capture group correctly.
Also, the Search tab replaces capture groups properly when there's no newline. This bug only happens when the match contains a newline.
VS Code version: Code 1.38.0 (3db7e09, 2019-09-03T21:47:00.464Z)
OS version: Darwin x64 18.7.0
Extensions: none
The text was updated successfully, but these errors were encountered:
Issue Type: Bug
Expected: File text is replaced with
bar baz
Actual: File text is replaced with
$1 baz
What's odd is that this only happens for the actual Search tab. If I do the exact same search and replace inline for the file, it replaces the capture group correctly.
Also, the Search tab replaces capture groups properly when there's no newline. This bug only happens when the match contains a newline.
VS Code version: Code 1.38.0 (3db7e09, 2019-09-03T21:47:00.464Z)
OS version: Darwin x64 18.7.0
Extensions: none
The text was updated successfully, but these errors were encountered: