From 5fc567372c2ddf544b24eb667e4764fd61c29c91 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Wed, 12 Apr 2017 18:18:46 -0400 Subject: [PATCH] Fixes compile errors from Typescript upgrade --- src/commands/showQuickRepoStatus.ts | 2 ++ src/quickPicks/common.ts | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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); } }