mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-23 19:59:37 +00:00
Remove un-needed cast
This commit is contained in:
@@ -250,10 +250,10 @@ class UpdateImportsOnFileRenameHandler {
|
||||
for (const edit of response.body) {
|
||||
// Workaround for https://github.com/Microsoft/vscode/issues/52675
|
||||
if (this.client.apiVersion.lt(API.v300)) {
|
||||
if ((edit as Proto.FileCodeEdits).fileName.match(/[\/\\]node_modules[\/\\]/gi)) {
|
||||
if (edit.fileName.match(/[\/\\]node_modules[\/\\]/gi)) {
|
||||
continue;
|
||||
}
|
||||
for (const change of (edit as Proto.FileCodeEdits).textChanges) {
|
||||
for (const change of edit.textChanges) {
|
||||
if (change.newText.match(/\/node_modules\//gi)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user