From d997fd8ea510f364719b51dc5d8a77b0fcf1b3d3 Mon Sep 17 00:00:00 2001 From: Ryan Cumming Date: Tue, 25 Jun 2019 21:36:55 +1000 Subject: Fix comparison of Code Action edit lengths This happened to work because we always produce a single edit but this is obviously dubious. --- editors/code/src/commands/cargo_watch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editors/code/src') diff --git a/editors/code/src/commands/cargo_watch.ts b/editors/code/src/commands/cargo_watch.ts index a662f7cc8..126a8b1b3 100644 --- a/editors/code/src/commands/cargo_watch.ts +++ b/editors/code/src/commands/cargo_watch.ts @@ -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; } -- cgit v1.2.3