mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-22 01:37:50 +00:00
[ide-mode] Send the cursor and selected text from the IDE server (#4621)
This commit is contained in:
@@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user