Merge pull request #33064 from paldepind/master

Include command id in error message
This commit is contained in:
Johannes Rieken
2017-08-28 09:20:41 +02:00
committed by GitHub

View File

@@ -56,7 +56,7 @@ export class ExtHostCommands implements ExtHostCommandsShape {
}
if (this._commands.has(id)) {
throw new Error('command with id already exists');
throw new Error(`command '${id}' already exists`);
}
this._commands.set(id, { callback, thisArg, description });