// 'use strict'; // import * as vscode from 'vscode'; // import * as fs from "fs"; // import * as path from "path"; // import { ConfigurationEditorManager } from './configurationEditorManager'; // class ConfigurationProvider implements vscode.TextDocumentContentProvider { // public onDidChange?: vscode.Event; // public constructor(private _editorManager: ConfigurationEditorManager) { } // public provideTextDocumentContent(uri: vscode.Uri, _token: vscode.CancellationToken): vscode.ProviderResult { // // Figure out which client to attach this to // // tslint:disable-next-line:no-single-line-block-comment // let id = parseInt(uri.path.slice(1) /* remove '/' from beginning */, 10); // console.assert(id > 0); // let server = this._editorManager.findById(id); // if (server) { // let outPath = path.join(path.dirname(module.filename), "../.."); // let clientHtmlPath = path.join(outPath, "../resources/graphClient/graphClient.html"); // console.assert(fs.existsSync(clientHtmlPath), `Couldn't find ${clientHtmlPath}`); // let html = ` // // // // // // // // `; // return html; // } // return "This resource is no longer available."; // } // }