From e1b8d6d77c3fa3589eabddb72531f1709a3011d0 Mon Sep 17 00:00:00 2001 From: Jason Poon Date: Sat, 5 Jan 2019 22:09:28 -0800 Subject: [PATCH] fix: stop logging for unresolved promise for the promise. closes #3333, #3329, #3328 --- extension.ts | 4 ---- src/mode/modeHandler.ts | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/extension.ts b/extension.ts index 267022b4dc8..dc23893cd82 100644 --- a/extension.ts +++ b/extension.ts @@ -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}.`); -}); diff --git a/src/mode/modeHandler.ts b/src/mode/modeHandler.ts index d0f89cb596f..dec523cc494 100644 --- a/src/mode/modeHandler.ts +++ b/src/mode/modeHandler.ts @@ -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; }