Skip to content

Commit

Permalink
[plugin] fix executeCommand arguments passing
Browse files Browse the repository at this point in the history
Signed-off-by: Sven Efftinge <sven.efftinge@typefox.io>
  • Loading branch information
svenefftinge committed Nov 12, 2019
1 parent 1d23511 commit cff5bb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/plugin-ext/src/hosted/node/plugin-host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ process.on('unhandledRejection', (reason: any, promise: Promise<any>) => {
if (index >= 0) {
promise.catch(err => {
unhandledPromises.splice(index, 1);
console.error(`Promise rejection not handled in one second: ${err}`);
if (err.stack) {
console.error(`Promise rejection not handled in one second: ${err} , reason: ${reason}`);
if (err && err.stack) {
console.error(`With stack trace: ${err.stack}`);
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class CommandRegistryMainImpl implements CommandRegistryMain, Disposable
}

// tslint:disable-next-line:no-any
$executeCommand<T>(id: string, ...args: any[]): PromiseLike<T | undefined> {
$executeCommand<T>(id: string, args: any[]): PromiseLike<T | undefined> {
return this.delegate.executeCommand(id, ...args);
}

Expand Down

0 comments on commit cff5bb5

Please sign in to comment.