Skip to content

Commit 59362df

Browse files
committed
Fix: avoid sending an IDE cursor/scroll update in response to a Client cursor/scroll update.
1 parent cfefa47 commit 59362df

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

extensions/VSCode/src/extension.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,12 @@ export const activate = (context: vscode.ExtensionContext) => {
452452
cursor_position,
453453
),
454454
];
455-
ignore_selection_change = false;
455+
// I'd prefer to set `ignore_selection_change =
456+
// false` here, but even doing so after a
457+
// `setTimeout(..., 0)` doesn't work; evidently,
458+
// the event is generated at some later time.
459+
// Instead, depend on the event to always clear
460+
// this flag (a source of potential bugs).
456461
}
457462
await sendResult(id);
458463
break;

0 commit comments

Comments
 (0)