renameSymbol method
Renames a symbol at the given position across the workspace.
Returns a workspace edit containing all required text changes.
Implementation
Future<Map<String, dynamic>> renameSymbol(
String filePath,
int line,
int character,
String newName,
) async {
final response = await _sendRequest(
method: 'textDocument/rename',
params: {..._commonParams(filePath, line, character), 'newName': newName},
);
return response['result'] ?? {};
}