-
Notifications
You must be signed in to change notification settings - Fork 30k
/
vscode.proposed.extensionLog.d.ts
64 lines (60 loc) · 2.01 KB
/
vscode.proposed.extensionLog.d.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
declare module 'vscode' {
/**
* A channel for containing log output.
*/
export interface LogOutputChannel extends OutputChannel {
/**
* Log the given trace message to the channel.
*
* Messages are only printed when the user has enabled trace logging.
*
* @param message trace message to log
*/
trace(message: string, ...args: any[]): void;
/**
* Log the given debug message to the channel.
*
* Messages are only printed when the user has enabled debug logging.
*
* @param message debug message to log
*/
debug(message: string, ...args: any[]): void;
/**
* Log the given info message to the channel.
*
* Messages are only printed when the user has enabled info logging.
*
* @param message info message to log
*/
info(message: string, ...args: any[]): void;
/**
* Log the given warning message to the channel.
*
* Messages are only printed when the user has enabled warn logging.
*
* @param message warning message to log
*/
warn(message: string, ...args: any[]): void;
/**
* Log the given error or error message to the channel.
*
* Messages are only printed when the user has enabled error logging.
*
* @param error Error or error message to log
*/
error(error: string | Error, ...args: any[]): void;
}
export namespace window {
/**
* Creates a new {@link LogOutputChannel log output channel} with the given name.
*
* @param name Human-readable string which will be used to represent the channel in the UI.
* @param options Options for the log output channel.
*/
export function createOutputChannel(name: string, options: { readonly log: true }): LogOutputChannel;
}
}