From 804fa88654b756a73ca065dc1bd1f50c2044ff00 Mon Sep 17 00:00:00 2001 From: Alberto Fanjul Date: Wed, 22 Apr 2020 23:54:19 +0200 Subject: [PATCH] Control Log json communications with vscode-client tooling --- package.json | 26 ++++++++++++++++++++++++++ src/client.ts | 5 ++--- 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index af74053..e557833 100644 --- a/package.json +++ b/package.json @@ -96,6 +96,32 @@ "type": "string", "description": "Binary name or path to language server", "default": "" + }, + "vala.trace.server": { + "scope": "window", + "type": "object", + "description": "Traces the communication between VS Code and the language server.", + "properties": { + "verbosity": { + "type": "string", + "description": "Controls the verbosity of the trace.", + "enum": [ + "off", + "message", + "verbose" + ], + "default": "off" + }, + "format": { + "type": "string", + "description": "Controls the output format of the trace.", + "enum": [ + "text", + "json" + ], + "default": "text" + } + } } } } diff --git a/src/client.ts b/src/client.ts index 9ca4746..335fe8b 100644 --- a/src/client.ts +++ b/src/client.ts @@ -40,15 +40,14 @@ export class ValaLanguageClient { options: { env: { ...process.env, - G_MESSAGES_DEBUG: 'all', - JSONRPC_DEBUG: 1 + G_MESSAGES_DEBUG: 'all' } }, transport: TransportKind.stdio } }; - this.ls = new LanguageClient('Vala Language Server', serverOptions, clientOptions) + this.ls = new LanguageClient('vala', 'Vala Language Server', serverOptions, clientOptions) this.ls.start() }