Browse Source

Adds error logging

main
Eric Amodio 7 years ago
parent
commit
675050d923
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/commands/common.ts

+ 2
- 0
src/commands/common.ts View File

@ -1,6 +1,7 @@
'use strict';
import { commands, Disposable, TextEditor, TextEditorEdit, Uri, window, workspace } from 'vscode';
import { BuiltInCommands } from '../constants';
import { Logger } from '../logger';
import { Telemetry } from '../telemetry';
export type Commands = 'gitlens.closeUnchangedFiles' | 'gitlens.copyMessageToClipboard' | 'gitlens.copyShaToClipboard' |
@ -148,6 +149,7 @@ export async function openEditor(uri: Uri, pinned: boolean = false) {
return window.showTextDocument(document, (window.activeTextEditor && window.activeTextEditor.viewColumn) || 1, true);
}
catch (ex) {
Logger.error(ex, 'openEditor');
return undefined;
}
}

Loading…
Cancel
Save