Skip to content

Commit

Permalink
revert the language clent channel change (#21872)
Browse files Browse the repository at this point in the history
  • Loading branch information
alanrenmsft committed Feb 8, 2023
1 parent 680d121 commit 0f0960d
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion extensions/mssql/src/sqlToolsServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
}
}

0 comments on commit 0f0960d

Please sign in to comment.