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:
@@ -212,7 +212,7 @@ export class CargoWatchProvider
|
|||||||
const leftEditEntries = left.edit.entries();
|
const leftEditEntries = left.edit.entries();
|
||||||
const rightEditEntries = right.edit.entries();
|
const rightEditEntries = right.edit.entries();
|
||||||
|
|
||||||
if (leftEditEntries.length !== leftEditEntries.length) {
|
if (leftEditEntries.length !== rightEditEntries.length) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user