Use vscode log path (#6599)

* use vscode log file

* remove log

* remove sqltools output log and add command to open log
This commit is contained in:
Anthony Dresser
2019-08-12 11:44:27 -07:00
committed by GitHub
parent 2d2b61a001
commit d733525f2c
8 changed files with 56 additions and 30 deletions

View File

@@ -70,7 +70,7 @@ export class CredentialStore {
private _client: SqlOpsDataClient;
private _config: IConfig;
constructor(baseConfig: IConfig) {
constructor(private logPath: string, baseConfig: IConfig) {
if (baseConfig) {
this._config = JSON.parse(JSON.stringify(baseConfig));
this._config.executableFiles = ['MicrosoftSqlToolsCredentials.exe', 'MicrosoftSqlToolsCredentials'];
@@ -97,7 +97,7 @@ export class CredentialStore {
}
private generateServerOptions(executablePath: string): ServerOptions {
let launchArgs = Utils.getCommonLaunchArgsAndCleanupOldLogFiles('credentialstore', executablePath);
let launchArgs = Utils.getCommonLaunchArgsAndCleanupOldLogFiles(this.logPath, 'credentialstore.log', executablePath);
return { command: executablePath, args: launchArgs, transport: TransportKind.stdio };
}
}