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() }