From b413de153c13757e95ed117d687b5e7b10a0a709 Mon Sep 17 00:00:00 2001 From: Alex Ma Date: Fri, 11 Jun 2021 12:35:18 -0700 Subject: [PATCH] Localization option added to Kusto and MSSQL (#15674) * added environment language need to test * added environment language, need to test if it works * added locale change to code * added Kusto localization for its ServiceLayer * removed extra space * removed console log and moved onto one line * removed quotes --- extensions/kusto/src/utils.ts | 2 ++ extensions/mssql/src/utils.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/extensions/kusto/src/utils.ts b/extensions/kusto/src/utils.ts index 8f48991d93..f291de5906 100644 --- a/extensions/kusto/src/utils.ts +++ b/extensions/kusto/src/utils.ts @@ -60,6 +60,8 @@ export function getLogFileName(prefix: string, pid: number): string { export function getCommonLaunchArgsAndCleanupOldLogFiles(logPath: string, fileName: string, executablePath: string): string[] { let launchArgs: string[] = []; + launchArgs.push(`--locale`, vscode.env.language); + launchArgs.push('--log-file'); let logFile = path.join(logPath, fileName); launchArgs.push(logFile); diff --git a/extensions/mssql/src/utils.ts b/extensions/mssql/src/utils.ts index 9eee2dfc27..e1a22e6103 100644 --- a/extensions/mssql/src/utils.ts +++ b/extensions/mssql/src/utils.ts @@ -94,6 +94,8 @@ export function getLogFileName(prefix: string, pid: number): string { export function getCommonLaunchArgsAndCleanupOldLogFiles(logPath: string, fileName: string, executablePath: string): string[] { let launchArgs = []; + launchArgs.push(`--locale`, vscode.env.language); + launchArgs.push('--log-file'); let logFile = path.join(logPath, fileName); launchArgs.push(logFile);