Fix comparison of Code Action edit lengths

This happened to work because we always produce a single edit but this
is obviously dubious.
This commit is contained in:
Ryan Cumming 2019-06-25 21:36:55 +10:00
parent 6d6cb25cf4
commit d997fd8ea5

View file

@ -212,7 +212,7 @@ export class CargoWatchProvider
const leftEditEntries = left.edit.entries();
const rightEditEntries = right.edit.entries();
if (leftEditEntries.length !== leftEditEntries.length) {
if (leftEditEntries.length !== rightEditEntries.length) {
return false;
}