Fixed some bugs

This commit is contained in:
Thorsten Muerell
2018-10-06 21:09:42 +02:00
parent 5bb64db2fe
commit 917d77fa84
4 changed files with 4 additions and 3 deletions

3
.gitignore vendored
View File

@@ -2,4 +2,5 @@ out
node_modules
.vscode-test/
*.vsix
**/.DS_Store
**/.DS_Store
npm-debug.log

Binary file not shown.

View File

@@ -2,7 +2,7 @@
"name": "frog",
"displayName": "Frog",
"description": "The Oracle SQL workbench for VSCode",
"version": "0.0.26",
"version": "0.0.28",
"publisher": "tmuerell",
"engines": {
"vscode": "^1.17.0"

View File

@@ -65,7 +65,7 @@ export class TextDocumentContentProvider implements vscode.TextDocumentContentPr
text += this._data['columnDefinitions'].map((x) => `<th>${x['name']}</th>`).join('')
text += '</tr>'
text += this._data['rows'].map((r) =>
'<tr>' + r['columns'].map((c) => '<td class="' + (c['value'] ? 'value-value' : 'value-null') + '">' + (c['value'] ? c['value'] : 'NULL') + '</td>').join('') + '</tr>'
'<tr>' + r['columns'].map((c) => '<td class="' + (c['value'] == null ? 'value-null' : 'value-value') + '">' + (c['value'] == null ? 'NULL' : c['value']) + '</td>').join('') + '</tr>'
).join('')
text += '</table></body>'
return text;