|
|
@ -6,6 +6,7 @@ export class TextDocumentContentProvider implements vscode.TextDocumentContentPr
|
|
|
|
|
|
|
|
|
|
|
|
public provideTextDocumentContent(uri: vscode.Uri): string {
|
|
|
|
public provideTextDocumentContent(uri: vscode.Uri): string {
|
|
|
|
if (!this._data) return this.errorSnippet();
|
|
|
|
if (!this._data) return this.errorSnippet();
|
|
|
|
|
|
|
|
if (this._data['rows'].length == 0) return this.errorSnippet();
|
|
|
|
|
|
|
|
|
|
|
|
let styles = `<style>
|
|
|
|
let styles = `<style>
|
|
|
|
table {
|
|
|
|
table {
|
|
|
@ -74,12 +75,7 @@ export class TextDocumentContentProvider implements vscode.TextDocumentContentPr
|
|
|
|
<body>
|
|
|
|
<body>
|
|
|
|
<table>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<th>ID</th>
|
|
|
|
<td>No results found!</td>
|
|
|
|
<th>Name</th>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td>1</td>
|
|
|
|
|
|
|
|
<td>Foobar</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
|
</body>`;
|
|
|
|
</body>`;
|
|
|
|