mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
debt: Replace custom Map object with Native Map
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
import * as sinon from 'sinon';
|
||||
import { TPromise } from 'vs/base/common/winjs.base';
|
||||
import * as types from 'vs/base/common/types';
|
||||
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 +19,12 @@ interface IServiceMock<T> {
|
||||
|
||||
export class TestInstantiationService extends InstantiationService {
|
||||
|
||||
private _servciesMap: SimpleMap<ServiceIdentifier<any>, any>;
|
||||
private _servciesMap: Map<ServiceIdentifier<any>, any>;
|
||||
|
||||
constructor(private _serviceCollection: ServiceCollection = new ServiceCollection()) {
|
||||
super(_serviceCollection);
|
||||
|
||||
this._servciesMap = new SimpleMap<ServiceIdentifier<any>, any>();
|
||||
this._servciesMap = new Map<ServiceIdentifier<any>, any>();
|
||||
}
|
||||
|
||||
public get<T>(service: ServiceIdentifier<T>): T {
|
||||
|
||||
Reference in New Issue
Block a user