debt - remove unused code
This commit is contained in:
parent
6280dcb558
commit
4732c39198
|
@ -517,10 +517,6 @@ export class TestQuickOpenService implements QuickOpenService.IQuickOpenService
|
|||
return TPromise.as(null);
|
||||
}
|
||||
|
||||
refresh(): Promise {
|
||||
return TPromise.as(true);
|
||||
}
|
||||
|
||||
show(prefix?: string, options?: any): Promise {
|
||||
if (this.callback) {
|
||||
this.callback(prefix);
|
||||
|
|
|
@ -32,10 +32,7 @@ import {QuickOpenHandler, QuickOpenHandlerDescriptor, IQuickOpenRegistry, Extens
|
|||
import errors = require('vs/base/common/errors');
|
||||
import {IWorkbenchEditorService} from 'vs/workbench/services/editor/common/editorService';
|
||||
import {IPickOpenEntry, IInputOptions, IQuickOpenService, IPickOptions, IShowOptions} from 'vs/workbench/services/quickopen/common/quickOpenService';
|
||||
import {IViewletService} from 'vs/workbench/services/viewlet/common/viewletService';
|
||||
import {IStorageService} from 'vs/platform/storage/common/storage';
|
||||
import {IConfigurationService} from 'vs/platform/configuration/common/configuration';
|
||||
import {IEventService} from 'vs/platform/event/common/event';
|
||||
import {IInstantiationService} from 'vs/platform/instantiation/common/instantiation';
|
||||
import {IMessageService, Severity} from 'vs/platform/message/common/message';
|
||||
import {ITelemetryService} from 'vs/platform/telemetry/common/telemetry';
|
||||
|
@ -87,10 +84,7 @@ export class QuickOpenController extends WorkbenchComponent implements IQuickOpe
|
|||
private visibilityChangeTimeoutHandle: number;
|
||||
|
||||
constructor(
|
||||
@IEventService private eventService: IEventService,
|
||||
@IStorageService private storageService: IStorageService,
|
||||
@IWorkbenchEditorService private editorService: IWorkbenchEditorService,
|
||||
@IViewletService private viewletService: IViewletService,
|
||||
@IMessageService private messageService: IMessageService,
|
||||
@ITelemetryService private telemetryService: ITelemetryService,
|
||||
@IWorkspaceContextService private contextService: IWorkspaceContextService,
|
||||
|
@ -431,18 +425,6 @@ export class QuickOpenController extends WorkbenchComponent implements IQuickOpe
|
|||
}, 100 /* to prevent flashing, we accumulate visibility changes over a timeout of 100ms */);
|
||||
}
|
||||
|
||||
public refresh(input?: string): TPromise<void> {
|
||||
if (!this.quickOpenWidget.isVisible()) {
|
||||
return TPromise.as(null);
|
||||
}
|
||||
|
||||
if (input && this.previousValue !== input) {
|
||||
return TPromise.as(null);
|
||||
}
|
||||
|
||||
return this.show(this.previousValue);
|
||||
}
|
||||
|
||||
public show(prefix?: string, options?: IShowOptions): TPromise<void> {
|
||||
let quickNavigateConfiguration = options ? options.quickNavigateConfiguration : void 0;
|
||||
|
||||
|
|
|
@ -95,13 +95,6 @@ export interface IQuickOpenService {
|
|||
*/
|
||||
show(prefix?: string, options?: IShowOptions): TPromise<void>;
|
||||
|
||||
/**
|
||||
* Refreshes the quick open control. No-op, if the control is hidden.
|
||||
* If an input is provided, then the operation will only succeed if that same input is still
|
||||
* in the quick open control.
|
||||
*/
|
||||
refresh(input?: string): TPromise<void>;
|
||||
|
||||
/**
|
||||
* A convenient way to bring up quick open as a picker with custom elements. This bypasses the quick open handler
|
||||
* registry and just leverages the quick open widget to select any kind of entries.
|
||||
|
|
Loading…
Reference in a new issue