[ide-mode] Send the cursor and selected text from the IDE server (#4621)

This commit is contained in:
christine betts
2025-07-24 19:54:41 +00:00
committed by GitHub
parent f9930c2d36
commit 4e376c0447
4 changed files with 27 additions and 3 deletions

View File

@@ -47,11 +47,19 @@ export class RecentFilesManager {
this.add(newUri);
}
});
const selectionWatcher = vscode.window.onDidChangeTextEditorSelection(
() => {
this.fireWithDebounce();
},
);
context.subscriptions.push(
editorWatcher,
deleteWatcher,
closeWatcher,
renameWatcher,
selectionWatcher,
);
}