mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
Merge pull request #33064 from paldepind/master
Include command id in error message
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user