Skip to content

Commit

Permalink
Move text input to QuickInput (#48116)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrmarti committed Apr 23, 2018
1 parent 9e500bb commit a81269e
Show file tree
Hide file tree
Showing 4 changed files with 196 additions and 78 deletions.
3 changes: 2 additions & 1 deletion src/vs/platform/quickinput/common/quickInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import { createDecorator } from 'vs/platform/instantiation/common/instantiation';
import { TPromise } from 'vs/base/common/winjs.base';
import { IPickOptions, IPickOpenEntry } from 'vs/platform/quickOpen/common/quickOpen';
import { IPickOptions, IPickOpenEntry, IInputOptions } from 'vs/platform/quickOpen/common/quickOpen';
import { CancellationToken } from 'vs/base/common/cancellation';

export const IQuickInputService = createDecorator<IQuickInputService>('quickInputService');
Expand All @@ -16,4 +16,5 @@ export interface IQuickInputService {
_serviceBrand: any;

pick<T extends IPickOpenEntry>(picks: TPromise<T[]>, options?: IPickOptions, token?: CancellationToken): TPromise<T[]>;
input(options?: IInputOptions, token?: CancellationToken): TPromise<string>;
}
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,6 @@ export class MainThreadQuickOpen implements MainThreadQuickOpenShape {
};
}

return asWinJsPromise(token => this._quickOpenService.input(inputOptions, token));
return asWinJsPromise(token => this._quickInputService.input(inputOptions, token));
}
}
Loading

0 comments on commit a81269e

Please sign in to comment.