- VSCode Version: 1.3.0
- OS Version: Win10
Steps to Reproduce:
File contents:
- Start Global Search&Replace
CTRL+SHIFT+H
- For the search term use
let\s+(\w+)\s*=\s*require\s*\(\s*['"]([\w\.\-/]+)\s*['"]\s*\)\s*;
- For the replace term use
import * as $1 from '$2';
Issue:
When replacing, the file looks like this:
import * as $1 from '$2';
Expected
import * as fs from 'fs';
Note: This works using Local Search&Replace (CTRL+H).