%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : www.kowitt.ac.th / Your IP : 216.73.216.118 Web Server : Microsoft-IIS/7.5 System : Windows NT SERVER02 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.6.31 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Program Files/Microsoft VS Code/resources/app/extensions/markdown-language-features/out/ |
Upload File : |
"use strict"; /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ Object.defineProperty(exports, "__esModule", { value: true }); const vscode = require("vscode"); const lazy_1 = require("./util/lazy"); var Trace; (function (Trace) { Trace[Trace["Off"] = 0] = "Off"; Trace[Trace["Verbose"] = 1] = "Verbose"; })(Trace || (Trace = {})); (function (Trace) { function fromString(value) { value = value.toLowerCase(); switch (value) { case 'off': return Trace.Off; case 'verbose': return Trace.Verbose; default: return Trace.Off; } } Trace.fromString = fromString; })(Trace || (Trace = {})); function isString(value) { return Object.prototype.toString.call(value) === '[object String]'; } class Logger { constructor() { this.outputChannel = lazy_1.lazy(() => vscode.window.createOutputChannel('Markdown')); this.updateConfiguration(); } log(message, data) { if (this.trace === Trace.Verbose) { this.appendLine(`[Log - ${(new Date().toLocaleTimeString())}] ${message}`); if (data) { this.appendLine(Logger.data2String(data)); } } } updateConfiguration() { this.trace = this.readTrace(); } appendLine(value) { return this.outputChannel.value.appendLine(value); } readTrace() { return Trace.fromString(vscode.workspace.getConfiguration().get('markdown.trace', 'off')); } static data2String(data) { if (data instanceof Error) { if (isString(data.stack)) { return data.stack; } return data.message; } if (isString(data)) { return data; } return JSON.stringify(data, undefined, 2); } } exports.Logger = Logger; //# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/0f080e5267e829de46638128001aeb7ca2d6d50e/extensions\markdown-language-features\out/logger.js.map