summaryrefslogtreecommitdiffstats
path: root/src/test/tools/MockTextEditorEdit.ts
blob: e7511825960ca844ea939b7a886848a4808f5007 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import * as vscode from "vscode";

export default class MockTextEditorEdit implements vscode.TextEditorEdit {
    public text: string;
    public replace(location: vscode.Position | vscode.Range | vscode.Selection, value: string): void {
        this.text = value;
    }
    public insert(location: vscode.Position, value: string): void {
        throw new Error("Method not implemented.");
    }
    public delete(location: vscode.Range | vscode.Selection): void {
        throw new Error("Method not implemented.");
    }
    public setEndOfLine(endOfLine: vscode.EndOfLine): void {
        throw new Error("Method not implemented.");
    }

}