Improve commands picker (#28184)

This commit is contained in:
Benjamin Pasero
2017-06-07 15:27:50 +02:00
committed by GitHub
parent b83ec1a0e1
commit 67107455b0
26 changed files with 603 additions and 370 deletions

View File

@@ -8,7 +8,7 @@
import * as sinon from 'sinon';
import { TPromise } from 'vs/base/common/winjs.base';
import * as types from 'vs/base/common/types';
import { LinkedMap } from 'vs/base/common/map';
import { SimpleMap } from 'vs/base/common/map';
import { InstantiationService } from 'vs/platform/instantiation/common/instantiationService';
import { ServiceCollection } from 'vs/platform/instantiation/common/serviceCollection';
import { ServiceIdentifier } from 'vs/platform/instantiation/common/instantiation';
@@ -20,12 +20,12 @@ interface IServiceMock<T> {
export class TestInstantiationService extends InstantiationService {
private _servciesMap: LinkedMap<ServiceIdentifier<any>, any>;
private _servciesMap: SimpleMap<ServiceIdentifier<any>, any>;
constructor(private _serviceCollection: ServiceCollection = new ServiceCollection()) {
super(_serviceCollection);
this._servciesMap = new LinkedMap<ServiceIdentifier<any>, any>();
this._servciesMap = new SimpleMap<ServiceIdentifier<any>, any>();
}
public get<T>(service: ServiceIdentifier<T>): T {