mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -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:
@@ -150,6 +150,17 @@
|
|||||||
"Verbose"
|
"Verbose"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"mssql.trace.server": {
|
||||||
|
"type": "string",
|
||||||
|
"scope": "window",
|
||||||
|
"enum": [
|
||||||
|
"off",
|
||||||
|
"messages",
|
||||||
|
"verbose"
|
||||||
|
],
|
||||||
|
"default": "off",
|
||||||
|
"description": "%mssql.tracing.desc%"
|
||||||
|
},
|
||||||
"mssql.logRetentionMinutes": {
|
"mssql.logRetentionMinutes": {
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"default": 10080,
|
"default": 10080,
|
||||||
|
|||||||
@@ -65,6 +65,7 @@
|
|||||||
"mssql.query.ansiWarnings": "Enable SET ANSI_WARNINGS",
|
"mssql.query.ansiWarnings": "Enable SET ANSI_WARNINGS",
|
||||||
"mssql.query.ansiNulls": "Enable SET ANSI_NULLS",
|
"mssql.query.ansiNulls": "Enable SET ANSI_NULLS",
|
||||||
"mssql.query.alwaysEncryptedParameterization": "Enable Parameterization for Always Encrypted",
|
"mssql.query.alwaysEncryptedParameterization": "Enable Parameterization for Always Encrypted",
|
||||||
|
"mssql.tracing.desc": "Traces the communication between Azure Data Studio and SQL Tools Service to the SQL Tools Service output channel. WARNING: This may include sensitive information when verbose logging is enabled.",
|
||||||
"mssql.ignorePlatformWarning": "[Optional] Do not show unsupported platform warnings",
|
"mssql.ignorePlatformWarning": "[Optional] Do not show unsupported platform warnings",
|
||||||
|
|
||||||
"onprem.databaseProperties.recoveryModel": "Recovery Model",
|
"onprem.databaseProperties.recoveryModel": "Recovery Model",
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ export class SqlToolsServer {
|
|||||||
const installationComplete = Date.now();
|
const installationComplete = Date.now();
|
||||||
let serverOptions = await generateServerOptions(context.extensionContext.logPath, serverPath);
|
let serverOptions = await generateServerOptions(context.extensionContext.logPath, serverPath);
|
||||||
let clientOptions = getClientOptions(context);
|
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 processStart = Date.now();
|
||||||
const clientReadyPromise = this.client.onReady().then(() => {
|
const clientReadyPromise = this.client.onReady().then(() => {
|
||||||
const processEnd = Date.now();
|
const processEnd = Date.now();
|
||||||
@@ -196,28 +196,6 @@ function getClientOptions(context: AppContext): ClientOptions {
|
|||||||
ExecutionPlanServiceFeature,
|
ExecutionPlanServiceFeature,
|
||||||
TdeMigrationService.asFeature(context),
|
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