Skip to content

Commit

Permalink
Merge pull request #3336 from VSCodeVim/process_rejection
Browse files Browse the repository at this point in the history
fix: stop logging for unresolved promise for the process.
  • Loading branch information
jpoon authored Jan 6, 2019
2 parents da2a3e7 + e1b8d6d commit 738bd95
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,3 @@ function handleContentChangedFromDisk(document: vscode.TextDocument): void {
modeHandler.vimState.historyTracker.clear();
});
}

process.on('unhandledRejection', function(reason: any, p: any) {
logger.error(`Unhandled rejection. Promise ${p}. Reason: ${reason}.`);
});
2 changes: 1 addition & 1 deletion src/mode/modeHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ export class ModeHandler implements vscode.Disposable {
this.vimState = await this.handleKeyEventHelper(key, this.vimState);
}
} catch (e) {
logger.error(`ModeHandler: error handling key=${key}. err=${e}.`);
logger.error(`ModeHandler: error handling key=${key}. err=${e}. stack=${e.stack}`);
throw e;
}

Expand Down

0 comments on commit 738bd95

Please sign in to comment.