Преглед изворни кода

Fixes compile errors from Typescript upgrade

main
Eric Amodio пре 7 година
родитељ
комит
5fc567372c
2 измењених фајлова са 4 додато и 2 уклоњено
  1. +2
    -0
      src/commands/showQuickRepoStatus.ts
  2. +2
    -2
      src/quickPicks/common.ts

+ 2
- 0
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');

+ 2
- 2
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<TextEditor | undefined> {
async open(pinned: boolean = false): Promise<{} | undefined> {
return openEditor(this.uri, pinned);
}
}

Loading…
Откажи
Сачувај