forked from microsoft/vscode-arduino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputChannel.ts
40 lines (30 loc) · 868 Bytes
/
outputChannel.ts
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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
import * as vscode from "vscode";
export const arduinoChannel = {
channel: vscode.window.createOutputChannel("Arduino"),
start(message: string) {
this.channel.appendLine(`[Starting] ${message}`);
},
end(message: string) {
this.channel.appendLine(`[Done] ${message}`);
},
warning(message: string) {
this.channel.appendLine(`[Warning] ${message}`);
},
error(message: string) {
this.channel.appendLine(`[Error] ${message}`);
},
info(message: string) {
this.channel.appendLine(message);
},
show() {
this.channel.show();
},
hide() {
this.channel.hide();
},
clear() {
this.channel.clear();
},
};