fix regression with delegation commant

This commit is contained in:
Johannes Rieken
2016-05-03 10:15:23 +02:00
parent 75d4d244ab
commit 53ea821d88

View File

@@ -499,8 +499,7 @@ export namespace Command {
let _idPool = 1;
export function initialize(commands: ExtHostCommands) {
return commands.registerCommand(_delegateId, (args: [string]) => {
const [id] = args;
return commands.registerCommand(_delegateId, (id: string) => {
const command = _cache[id];
if (!command) {
// handle already disposed delegations graceful