mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-23 17:23:02 -05:00
Add config for enabling STS communication logging (#21591)
* Add config for enabling STS communication logging * Add warning to description
This commit is contained in:
@@ -58,7 +58,7 @@ export class SqlToolsServer {
|
||||
const installationComplete = Date.now();
|
||||
let serverOptions = await generateServerOptions(context.extensionContext.logPath, serverPath);
|
||||
let clientOptions = getClientOptions(context);
|
||||
this.client = new SqlOpsDataClient(Constants.serviceName, serverOptions, clientOptions);
|
||||
this.client = new SqlOpsDataClient('mssql', Constants.serviceName, serverOptions, clientOptions);
|
||||
const processStart = Date.now();
|
||||
const clientReadyPromise = this.client.onReady().then(() => {
|
||||
const processEnd = Date.now();
|
||||
@@ -196,28 +196,6 @@ function getClientOptions(context: AppContext): ClientOptions {
|
||||
ExecutionPlanServiceFeature,
|
||||
TdeMigrationService.asFeature(context),
|
||||
],
|
||||
outputChannel: new CustomOutputChannel()
|
||||
outputChannel: outputChannel
|
||||
};
|
||||
}
|
||||
|
||||
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 {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user