replaceRange method

Future<BridgeResponse> replaceRange(
  1. VscodeRange range,
  2. String newText
)

Replace a range in the active editor.

Implementation

Future<BridgeResponse> replaceRange(VscodeRange range, String newText) {
  return _protocol.sendRequest('vscode/replaceRange', {
    'range': range.toJson(),
    'text': newText,
  });
}