Skip to content

Commit

Permalink
fix #78274
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Jul 31, 2019
1 parent 85ddb90 commit 350a197
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/vs/workbench/api/common/extHostCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ export class ExtHostCommands implements ExtHostCommandsShape {
if (this._commands.has(id)) {
// we stay inside the extension host and support
// to pass any kind of parameters around
return this._executeContributedCommand<T>(id, args);
const res = this._executeContributedCommand<T>(id, args);
this._onDidExecuteCommand.fire({ command: id, arguments: args });
return res;

} else {
// automagically convert some argument types
Expand Down Expand Up @@ -170,7 +172,6 @@ export class ExtHostCommands implements ExtHostCommandsShape {

try {
const result = callback.apply(thisArg, args);
this._onDidExecuteCommand.fire({ command: id, arguments: args });
return Promise.resolve(result);
} catch (err) {
this._logService.error(err, id);
Expand Down

0 comments on commit 350a197

Please sign in to comment.