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
43 lines (38 loc) · 986 Bytes
/
mockClasses.ts
File metadata and controls
43 lines (38 loc) · 986 Bytes
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
import * as vscode from 'vscode';
export class MockOutputChannel implements vscode.OutputChannel {
constructor(name: string) {
this.name = name;
this.output = '';
}
name: string;
output: string;
isShown: boolean;
append(value: string) {
this.output += value;
}
appendLine(value: string) { this.append(value); this.append('\n'); }
clear() { }
show(preservceFocus?: boolean): void;
show(column?: vscode.ViewColumn, preserveFocus?: boolean): void;
show(x?: any, y?: any): void {
this.isShown = true;
}
hide() {
this.isShown = false;
}
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;
show(): void {
}
hide(): void {
}
dispose(): void {
}
}