added vscode extensions

This commit is contained in:
tomit4 2021-11-05 11:26:45 -07:00
parent 7cde0829be
commit 26e2a50441
316 changed files with 37301 additions and 0 deletions

View file

@ -0,0 +1,22 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const vscode_1 = require("vscode");
class Logger {
constructor() {
this.debug = !!vscode_1.workspace.getConfiguration('importCost').debug;
}
init(context) {
this.context = context;
if (this.debug) {
this.channel = vscode_1.window.createOutputChannel('ImportCost');
context.subscriptions.push(this.channel);
}
}
log(text) {
if (this.debug) {
this.channel.appendLine(text);
}
}
}
exports.default = new Logger();
//# sourceMappingURL=logger.js.map