diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b4f138..ecfc1ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to the "frog" extension will be documented in this file. +## 0.0.24 + +- Better display of result set and values + ## 0.0.23 - Added commit and rollback buttons diff --git a/frog-runner.jar b/frog-runner.jar index 77b8af6..d21e0a1 100644 Binary files a/frog-runner.jar and b/frog-runner.jar differ diff --git a/package.json b/package.json index 0042d95..d82aa88 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "frog", "displayName": "Frog", "description": "The Oracle SQL workbench for VSCode", - "version": "0.0.23", + "version": "0.0.24", "publisher": "tmuerell", "engines": { "vscode": "^1.17.0" @@ -115,6 +115,11 @@ "type": "string", "default": "", "description": "Set the java home to use for the runner." + }, + "frog.resultSetStyles": { + "type": "string", + "default": "", + "description": "Set additional CSS styles for the result set viewer (Example: 'td { color: red; }')" } } } diff --git a/src/resultsetview.ts b/src/resultsetview.ts index 6344194..363fba3 100644 --- a/src/resultsetview.ts +++ b/src/resultsetview.ts @@ -7,13 +7,18 @@ 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(); + + const configuration = vscode.workspace.getConfiguration('frog') + const additionalStyles = configuration.get("resultSetStyles", "") let styles = `` const choosableLimits = [2,10,50] @@ -52,7 +65,7 @@ export class TextDocumentContentProvider implements vscode.TextDocumentContentPr text += this._data['columnDefinitions'].map((x) => `${x['name']}`).join('') text += '' text += this._data['rows'].map((r) => - '' + r['columns'].map((c) => '' + c['value'] + '').join('') + '' + '' + r['columns'].map((c) => '' + (c['value'] ? c['value'] : 'NULL') + '').join('') + '' ).join('') text += '' return text;