Kaynağa Gözat

Fixes compile errors from Typescript upgrade

main
Eric Amodio 7 yıl önce
ebeveyn
işleme
5fc567372c
2 değiştirilmiş dosya ile 4 ekleme ve 2 silme
  1. +2
    -0
      src/commands/showQuickRepoStatus.ts
  2. +2
    -2
      src/quickPicks/common.ts

+ 2
- 0
src/commands/showQuickRepoStatus.ts Dosyayı Görüntüle

@ -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 Dosyayı Görüntüle

@ -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);
}
}

Yükleniyor…
İptal
Kaydet