add custom output channel (#1087)

This commit is contained in:
Anthony Dresser
2018-04-06 15:52:33 -07:00
committed by Karl Burtram
parent 1800d0baaf
commit 563e25f073

View File

@@ -56,7 +56,8 @@ export async function activate(context: vscode.ExtensionContext) {
...SqlOpsDataClient.defaultFeatures,
TelemetryFeature,
AgentServicesFeature
]
],
outputChannel: new CustomOutputChannel()
};
const installationStart = Date.now();
@@ -146,3 +147,23 @@ function generateHandleServerProviderEvent() {
// this method is called when your extension is deactivated
export function deactivate(): void {
}
class CustomOutputChannel implements vscode.OutputChannel {
name: string;
append(value: string): void {
console.log(value);
}
appendLine(value: string): void {
console.log(value);
}
clear(): void {
}
show(preserveFocus?: boolean): void;
show(column?: vscode.ViewColumn, preserveFocus?: boolean): void;
show(column?: any, preserveFocus?: any) {
}
hide(): void {
}
dispose(): void {
}
}