getReferences method
Gets all references to a symbol at the specified position.
Returns a list of reference locations, or an empty list if none found.
Implementation
Future<List<dynamic>> getReferences(int line, int character) async {
final params = _commonParams(line, character);
params['context'] = {'includeDeclaration': true};
final response = await _sendRequest(
method: 'textDocument/references',
params: params,
);
if (response['result'] == null || response['result'].isEmpty) return [];
return response['result'];
}