mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-16 09:35:40 -05:00
Fixes compile errors from Typescript upgrade
This commit is contained in:
@@ -29,6 +29,8 @@ export class ShowQuickRepoStatusCommand extends ActiveEditorCachedCommand {
|
||||
if (pick instanceof CommandQuickPickItem) {
|
||||
return pick.execute();
|
||||
}
|
||||
|
||||
return undefined;
|
||||
}
|
||||
catch (ex) {
|
||||
Logger.error(ex, 'ShowQuickRepoStatusCommand');
|
||||
|
||||
@@ -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<TextEditor | undefined> {
|
||||
async open(pinned: boolean = false): Promise<{} | undefined> {
|
||||
return openEditor(this.uri, pinned);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user