"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const fs = require("fs");
const vscode_uri_1 = require("vscode-uri");
function handler(uri, encoding) {
    return new Promise((resolve, reject) => {
        fs.readFile(vscode_uri_1.URI.parse(uri).fsPath, { encoding }, (err, buf) => {
            err ? reject(err) : resolve(buf.toString());
        });
    });
}
exports.default = handler;
//# sourceMappingURL=file.js.map