mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-15 17:22:25 -05:00
* test for schemacompare * added schema compare to package.json * added arc for translation * added admin-tool-ext-win * added agent * added cms to list of extensions webpacked * removed dacpac * added import * added machine-learning * removed profiler * added server-report * added sql-assessment * added sql-migration * added sql-database-projects * added query-history * fixed and updated dependencies in extensions for webpacking. * fixed names of entry * fixed webpack for machine-learning * removed dependency external for dacpac * reduced externals for server-report * added back import * removed extension.webpack.config.js * removed useless handlebars function * added todo message
23 lines
933 B
TypeScript
23 lines
933 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
'use strict';
|
|
import * as vscode from 'vscode';
|
|
import * as Constants from './constants';
|
|
|
|
/**
|
|
* Helper to log messages to the developer console if enabled
|
|
* @param msg Message to log to the console
|
|
*/
|
|
export function logDebug(msg: any): void {
|
|
let config = vscode.workspace.getConfiguration(Constants.extensionConfigSectionName);
|
|
let logDebugInfo = config[Constants.configLogDebugInfo];
|
|
if (logDebugInfo === true) {
|
|
let currentTime = new Date().toLocaleTimeString();
|
|
let outputMsg = '[' + currentTime + ']: ' + msg ? msg.toString() : '';
|
|
console.log(outputMsg);
|
|
}
|
|
}
|