diff --git a/src/commands/showQuickRepoStatus.ts b/src/commands/showQuickRepoStatus.ts index 8ed3262..0cbe692 100644 --- a/src/commands/showQuickRepoStatus.ts +++ b/src/commands/showQuickRepoStatus.ts @@ -29,6 +29,8 @@ export class ShowQuickRepoStatusCommand extends ActiveEditorCachedCommand { if (pick instanceof CommandQuickPickItem) { return pick.execute(); } + + return undefined; } catch (ex) { Logger.error(ex, 'ShowQuickRepoStatusCommand'); diff --git a/src/quickPicks/common.ts b/src/quickPicks/common.ts index 5fbde15..6d18a5e 100644 --- a/src/quickPicks/common.ts +++ b/src/quickPicks/common.ts @@ -1,5 +1,5 @@ 'use strict'; -import { CancellationTokenSource, commands, Disposable, QuickPickItem, QuickPickOptions, TextEditor, Uri, window, workspace } from 'vscode'; +import { CancellationTokenSource, commands, Disposable, QuickPickItem, QuickPickOptions, Uri, window, workspace } from 'vscode'; import { Commands, Keyboard, KeyboardScope, KeyMapping, openEditor } from '../commands'; import { IAdvancedConfig } from '../configuration'; import { GitCommit, GitLogCommit, GitStashCommit } from '../gitService'; @@ -91,7 +91,7 @@ export class OpenFileCommandQuickPickItem extends CommandQuickPickItem { return this.open(pinned); } - async open(pinned: boolean = false): Promise { + async open(pinned: boolean = false): Promise<{} | undefined> { return openEditor(this.uri, pinned); } }