message: Extract editRange
diff: @@ -39,13 +39,7 @@ class VSCodeEditor implements Editor {
  );
  const edit = new vscode.WorkspaceEdit();
  - const allDocumentRange = new vscode.Range(
  - new vscode.Position(0, 0),
  - new vscode.Position(this.document.lineCount, 0)
  - );
  -
  - edit.set(this.document.uri, [new vscode.TextEdit(allDocumentRange, code)]);
  -
  + edit.set(this.document.uri, [new vscode.TextEdit(this.editRange, code)]);
  await vscode.workspace.applyEdit(edit);
  // Put cursor at correct position
  @@ -63,6 +57,13 @@ class VSCodeEditor implements Editor {
  }
  }
  + private get editRange(): vscode.Range {
  + return new vscode.Range(
  + new vscode.Position(0, 0),
  + new vscode.Position(this.document.lineCount, 0)
  + );
  + }
  +
  async readThenWrite(
  selection: Selection,
  getModifications: (code: Code) => Modification[],
  