refactor: move event to selection change manager

This commit is contained in:
Jacob Kim 2025-08-01 10:37:14 -07:00
parent b784a2913a
commit 6a0eaa472c

View file

@ -125,9 +125,13 @@ export class GhostTextAcceptanceTracker {
manager.registerListener(
"ghostTextTracker",
async (e, state) => {
if (!state.document || !state.cursorPosition) {
return false;
}
const wasGhostTextAccepted = this.checkGhostTextWasAccepted(
e.textEditor.document,
e.selections[0].active,
state.document,
state.cursorPosition,
);
if (wasGhostTextAccepted) {