getSelection method
Get the current selection in the active editor.
Implementation
Future<VscodeSelection?> getSelection() async {
final resp = await _protocol.sendRequest('vscode/getSelection', null);
if (resp.isSuccess && resp.result is Map<String, dynamic>) {
return VscodeSelection.fromJson(resp.result as Map<String, dynamic>);
}
return null;
}