Ver código fonte

Fixes compile errors from Typescript upgrade

main
Eric Amodio 7 anos atrás
pai
commit
5fc567372c
2 arquivos alterados com 4 adições e 2 exclusões
  1. +2
    -0
      src/commands/showQuickRepoStatus.ts
  2. +2
    -2
      src/quickPicks/common.ts

+ 2
- 0
src/commands/showQuickRepoStatus.ts Ver arquivo

@ -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 Ver arquivo

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

Carregando…
Cancelar
Salvar