Remove un-needed cast

This commit is contained in:
Matt Bierner
2018-12-14 12:52:48 -08:00
parent 44cbf5afdc
commit bb8fc43f72

View File

@@ -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;
}