From 7e7cc0a9cf2b2f0ca05126a9aa18d92e23e0382f Mon Sep 17 00:00:00 2001 From: isidor Date: Mon, 15 Feb 2016 12:02:34 +0100 Subject: [PATCH] debug: null guard --- src/vs/workbench/parts/debug/node/rawDebugSession.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/parts/debug/node/rawDebugSession.ts b/src/vs/workbench/parts/debug/node/rawDebugSession.ts index bb0c332875a..da4e92ec8d1 100644 --- a/src/vs/workbench/parts/debug/node/rawDebugSession.ts +++ b/src/vs/workbench/parts/debug/node/rawDebugSession.ts @@ -34,6 +34,7 @@ export class RawDebugSession extends v8.V8Protocol implements debug.IRawDebugSes private adapter: Adapter ) { super(); + this.capablities = {}; } private initServer(): TPromise { @@ -67,7 +68,7 @@ export class RawDebugSession extends v8.V8Protocol implements debug.IRawDebugSes public initialize(args: DebugProtocol.InitializeRequestArguments): TPromise { return this.send('initialize', args).then(response => { - this.capablities = response.body || { }; + this.capablities = response.body || this.capablities; return response; }); } -- GitLab