From ee1f308dd0d4f2918231fb9dbb55bd95d448c2c9 Mon Sep 17 00:00:00 2001 From: Lawrence Grant Date: Thu, 4 Aug 2016 02:17:22 -0700 Subject: [PATCH] Release prep, version bump. Updates to the readme. Added util.inspect to output results. --- README.md | 23 ++++++----------------- package.json | 6 +++--- src/cqlExecutor.ts | 2 +- 3 files changed, 10 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index c44dae8..76098dd 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,8 @@ This is an extension for working with Cassandra CQL. This extension supports syn - Snippets (SELECT, CREATE TABLE|KEYSPACE|TRIGGER|TYPE|INDEX, UPDATE) - CQL Statement Execution - Keybinding for CQL Statement Execution + - Scanning for objects + - View schema ###CQL Statement Execution **Execute SQL Statement:** @@ -33,26 +35,13 @@ If your Cassandra endpoint is at 127.0.0.1:9042 (or localhost), then there is no "contactPoints": ["127.0.0.1"], "hosts": ["127.0.0.1"] }` - -### Other - - Task List: - - ~~Execute Statements~~ (done) - - ~~Configure extension~~ (done) - - Context for Intellisense *(some)* - - ~~Better Internal Structure~~ (done) - - Symbols functionality - - Document - - Workspace - - ~~Search Cassandra for symbols~~ - - ~~Better Syntax Highlighting~~ (done) - - Move this task list Issues - + - **cql.resultStyle** *(object)*: Configures where and how you will view results. There are two options: + - format: *json* or *tabular* + - location: If set to *output* results are routed to the CQL Output window instead of a pane. ### For more information * [project on github](https://github.com/lawrencekgrant/vscode-cql) -*(Table and Column names come from CREATE scripts that have been opened.)* - ### Build Status [![Build Status](https://travis-ci.org/lawrencekgrant/vscode-cql.svg?branch=master)](https://travis-ci.org/lawrencekgrant/vscode-cql) -# **Enjoy!** \ No newline at end of file +# **Enjoy with care** \ No newline at end of file diff --git a/package.json b/package.json index 284a50d..365c537 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "cql", "displayName": "cql", "description": "Cassandra CQL extension for VS Code.", - "version": "0.5.1", + "version": "0.6.0", "publisher": "LawrenceGrant", "author": { "name": "Lawrence Grant" @@ -116,10 +116,10 @@ "description": "Connection object for connecting to cassandra" }, "cql.resultStyle": { - "type": "string", + "type": "object", "default": { "format": "json", - "location": "sideview" + "location": "pane" } } } diff --git a/src/cqlExecutor.ts b/src/cqlExecutor.ts index 7b685ac..9d3db73 100644 --- a/src/cqlExecutor.ts +++ b/src/cqlExecutor.ts @@ -69,7 +69,7 @@ export function registerAll() : vscode.Disposable[] { //I like that.. I may keep function showResults(error, results) { if(vscode.workspace.getConfiguration("cql")["resultStyle"].location == "output") { outputChannel.appendLine("Results:"); - outputChannel.appendLine(JSON.stringify(error ? error : currentResults)); + outputChannel.appendLine(util.inspect(error ? error : currentResults, {depth: 64})); outputChannel.appendLine(new Date().toTimeString()); outputChannel.show(); } else {