Include command id in error message

This commit is contained in:
Simon Friis Vindum
2017-08-24 10:42:12 +02:00
committed by GitHub
parent 936fc3fdd9
commit e70616c810

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