mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
Improve commands picker (#28184)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user