diff options
author | Ryan Cumming <[email protected]> | 2019-06-25 12:36:55 +0100 |
---|---|---|
committer | Ryan Cumming <[email protected]> | 2019-06-25 12:36:55 +0100 |
commit | d997fd8ea510f364719b51dc5d8a77b0fcf1b3d3 (patch) | |
tree | 69c3a2f08085ce856352beeae13014dbb2e459a3 /editors | |
parent | 6d6cb25cf46a2327d6cb2278385763abfa7a95a0 (diff) |
Fix comparison of Code Action edit lengths
This happened to work because we always produce a single edit but this
is obviously dubious.
Diffstat (limited to 'editors')
-rw-r--r-- | editors/code/src/commands/cargo_watch.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
212 | const leftEditEntries = left.edit.entries(); | 212 | const leftEditEntries = left.edit.entries(); |
213 | const rightEditEntries = right.edit.entries(); | 213 | const rightEditEntries = right.edit.entries(); |
214 | 214 | ||
215 | if (leftEditEntries.length !== leftEditEntries.length) { | 215 | if (leftEditEntries.length !== rightEditEntries.length) { |
216 | return false; | 216 | return false; |
217 | } | 217 | } |
218 | 218 | ||