/*---------------------------------------------------------
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------*/
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
const vscode = require("vscode");
const FS = require("fs");
class Logger {
    debug(message) {
        // TODO: enable based on log level
        // vscode.debug.activeDebugConsole.appendLine(message);
    }
}
exports.Logger = Logger;
/**
 * Send to debug console.
 */
function writeToConsole(message) {
    vscode.debug.activeDebugConsole.appendLine(message);
}
exports.writeToConsole = writeToConsole;
/**
 * Copy attributes from fromObject to toObject.
 */
function extendObject(toObject, fromObject) {
    for (let key in fromObject) {
        if (fromObject.hasOwnProperty(key)) {
            toObject[key] = fromObject[key];
        }
    }
    return toObject;
}
exports.extendObject = extendObject;
function mkdirP(path) {
    return new Promise((resolve, reject) => {
        FS.mkdir(path, err => {
            if (err) {
                return reject(err);
            }
            resolve();
        });
    });
}
exports.mkdirP = mkdirP;

//# sourceMappingURL=../../../out/node/extension/utilities.js.map
