Small fixes

This commit is contained in:
Thorsten Muerell committed 2017-11-10 21:50:26 +01:00
1 parent 85add9bb6b
commit da12eb698d
2 files changed
+3 -7

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@ export class BlockDetector {
}
} else {
while (!endLine.text.match(/;/) && endLine.lineNumber < doc.lineCount-1) {
endLine = this.editor.document.lineAt(startLine.lineNumber+1)
endLine = this.editor.document.lineAt(endLine.lineNumber+1)
}
}
+2 -6
View File
@@ -6,6 +6,7 @@ export class TextDocumentContentProvider implements vscode.TextDocumentContentPr
public provideTextDocumentContent(uri: vscode.Uri): string {
if (!this._data) return this.errorSnippet();
if (this._data['rows'].length == 0) return this.errorSnippet();
let styles = `<style>
table {
@@ -74,12 +75,7 @@ export class TextDocumentContentProvider implements vscode.TextDocumentContentPr
<body>
<table>
<tr>
<th>ID</th>
<th>Name</th>
</tr>
<tr>
<td>1</td>
<td>Foobar</td>
<td>No results found!</td>
</tr>
</table>
</body>`;