Skip to content

Commit d997fd8

Browse files
committed
Fix comparison of Code Action edit lengths
This happened to work because we always produce a single edit but this is obviously dubious.
1 parent 6d6cb25 commit d997fd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editors/code/src/commands/cargo_watch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ export class CargoWatchProvider
212212
const leftEditEntries = left.edit.entries();
213213
const rightEditEntries = right.edit.entries();
214214

215-
if (leftEditEntries.length !== leftEditEntries.length) {
215+
if (leftEditEntries.length !== rightEditEntries.length) {
216216
return false;
217217
}
218218

0 commit comments

Comments
 (0)