mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-04 07:15:54 +01:00
More restrictive regex for rename
This commit is contained in:
@@ -235,7 +235,7 @@ export class UpdateImportsOnFileRenameHandler {
|
||||
|
||||
// Workaround for https://github.com/Microsoft/TypeScript/issues/24968
|
||||
const textChanges = edit.textChanges.map((change): Proto.CodeEdit => {
|
||||
const match = change.newText.match(/\/[^\/]+$/g);
|
||||
const match = change.newText.match(/\w\/[^\/]+$/g);
|
||||
if (!match) {
|
||||
return change;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user