forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmockClasses.ts
More file actions
46 lines (44 loc) · 1.29 KB
/
mockClasses.ts
File metadata and controls
46 lines (44 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import * as vscode from 'vscode';
export class MockOutputChannel implements vscode.OutputChannel {
public name: string;
public output: string;
public isShown: boolean;
constructor(name: string) {
this.name = name;
this.output = '';
}
public append(value: string) {
this.output += value;
}
public appendLine(value: string) { this.append(value); this.append('\n'); }
// tslint:disable-next-line:no-empty
public clear() { }
public show(preservceFocus?: boolean): void;
public show(column?: vscode.ViewColumn, preserveFocus?: boolean): void;
// tslint:disable-next-line:no-any
public show(x?: any, y?: any): void {
this.isShown = true;
}
public hide() {
this.isShown = false;
}
// tslint:disable-next-line:no-empty
public dispose() { }
}
export class MockStatusBarItem implements vscode.StatusBarItem {
public alignment: vscode.StatusBarAlignment;
public priority: number;
public text: string;
public tooltip: string;
public color: string;
public command: string;
// tslint:disable-next-line:no-empty
public show(): void {
}
// tslint:disable-next-line:no-empty
public hide(): void {
}
// tslint:disable-next-line:no-empty
public dispose(): void {
}
}