added vscode extensions
This commit is contained in:
parent
7cde0829be
commit
26e2a50441
316 changed files with 37301 additions and 0 deletions
22
.vscode/extensions/wix.vscode-import-cost-2.15.0/out/logger.js
vendored
Normal file
22
.vscode/extensions/wix.vscode-import-cost-2.15.0/out/logger.js
vendored
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue