Переглянути джерело

Changes for upcoming TypeScript 3.7

main
Eric Amodio 5 роки тому
джерело
коміт
829a4b50b0
4 змінених файлів з 10 додано та 10 видалено
  1. +0
    -1
      src/git/git.ts
  2. +1
    -2
      src/quickpicks/commitQuickPick.ts
  3. +7
    -5
      src/quickpicks/commonQuickPicks.ts
  4. +2
    -2
      src/quickpicks/repoStatusQuickPick.ts

+ 0
- 1
src/git/git.ts Переглянути файл

@ -11,7 +11,6 @@ import { run, RunOptions } from './shell';
import { GitBranchParser, GitLogParser, GitReflogParser, GitStashParser } from './parsers/parsers';
import { GitFileStatus } from './models/file';
export type GitLocation = GitLocation;
export * from './models/models';
export * from './parsers/parsers';
export * from './remotes/provider';

+ 1
- 2
src/quickpicks/commitQuickPick.ts Переглянути файл

@ -1,6 +1,6 @@
'use strict';
import * as paths from 'path';
import { commands, TextDocumentShowOptions, TextEditor, Uri, window } from 'vscode';
import { commands, QuickPickItem, TextDocumentShowOptions, TextEditor, Uri, window } from 'vscode';
import {
Commands,
CopyMessageToClipboardCommandArgs,
@ -32,7 +32,6 @@ import {
getQuickPickIgnoreFocusOut,
KeyCommandQuickPickItem,
OpenInSearchCommitsViewQuickPickItem,
QuickPickItem,
RevealInRepositoriesViewQuickPickItem
} from './commonQuickPicks';
import { OpenRemotesCommandQuickPickItem } from './remotesQuickPick';

+ 7
- 5
src/quickpicks/commonQuickPicks.ts Переглянути файл

@ -8,6 +8,13 @@ import { KeyMapping, Keys } from '../keyboard';
import { ReferencesQuickPick, ReferencesQuickPickItem } from './referencesQuickPick';
import { GlyphChars } from '../constants';
declare module 'vscode' {
interface QuickPickItem {
onDidSelect?(): void;
onDidPressKey?(key: Keys): Promise<void>;
}
}
export function getQuickPickIgnoreFocusOut() {
return !configuration.get('advanced', 'quickPick', 'closeOnFocusOut');
}
@ -47,11 +54,6 @@ function _getInfiniteCancellablePromise(cancellation: CancellationTokenSource) {
});
}
export interface QuickPickItem extends QuickPickItem {
onDidSelect?(): void;
onDidPressKey?(key: Keys): Promise<void>;
}
export class CommandQuickPickItem implements QuickPickItem {
label!: string;
description!: string;

+ 2
- 2
src/quickpicks/repoStatusQuickPick.ts Переглянути файл

@ -1,6 +1,6 @@
'use strict';
import * as paths from 'path';
import { commands, TextDocumentShowOptions, TextEditor, window } from 'vscode';
import { commands, QuickPickItem, TextDocumentShowOptions, TextEditor, window } from 'vscode';
import {
Commands,
DiffWithPreviousCommandArgs,
@ -23,7 +23,7 @@ import {
} from '../git/gitService';
import { Keys } from '../keyboard';
import { Iterables, Strings } from '../system';
import { CommandQuickPickItem, getQuickPickIgnoreFocusOut, QuickPickItem } from './commonQuickPicks';
import { CommandQuickPickItem, getQuickPickIgnoreFocusOut } from './commonQuickPicks';
export class OpenStatusFileCommandQuickPickItem extends CommandQuickPickItem {
readonly status: GitStatusFile;

Завантаження…
Відмінити
Зберегти