From 0f0960d0e774e1ce903b79378addff96117c27a6 Mon Sep 17 00:00:00 2001 From: Alan Ren Date: Wed, 8 Feb 2023 11:24:10 -0800 Subject: [PATCH] revert the language clent channel change (#21872) --- extensions/mssql/src/sqlToolsServer.ts | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/extensions/mssql/src/sqlToolsServer.ts b/extensions/mssql/src/sqlToolsServer.ts index 1ad873545a49..ab6f0e2296e3 100644 --- a/extensions/mssql/src/sqlToolsServer.ts +++ b/extensions/mssql/src/sqlToolsServer.ts @@ -196,6 +196,28 @@ function getClientOptions(context: AppContext): ClientOptions { ExecutionPlanServiceFeature, TdeMigrationService.asFeature(context), ], - outputChannel: outputChannel + outputChannel: new CustomOutputChannel() }; } + +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 { + } + replace(_value: string): void { + } +}