mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
add custom output channel (#1087)
This commit is contained in:
committed by
Karl Burtram
parent
1800d0baaf
commit
563e25f073
@@ -56,7 +56,8 @@ export async function activate(context: vscode.ExtensionContext) {
|
|||||||
...SqlOpsDataClient.defaultFeatures,
|
...SqlOpsDataClient.defaultFeatures,
|
||||||
TelemetryFeature,
|
TelemetryFeature,
|
||||||
AgentServicesFeature
|
AgentServicesFeature
|
||||||
]
|
],
|
||||||
|
outputChannel: new CustomOutputChannel()
|
||||||
};
|
};
|
||||||
|
|
||||||
const installationStart = Date.now();
|
const installationStart = Date.now();
|
||||||
@@ -146,3 +147,23 @@ function generateHandleServerProviderEvent() {
|
|||||||
// this method is called when your extension is deactivated
|
// this method is called when your extension is deactivated
|
||||||
export function deactivate(): void {
|
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 {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user