turn serviceId into _serviceBrand:any to follow common practive

see https://basarat.gitbooks.io/typescript/content/docs/tips/nominalTyping.html and 7b48a182c0/src/compiler/types.ts (L693-L698)
This commit is contained in:
Johannes Rieken
2016-07-07 12:09:53 +02:00
parent 1828d8a7bd
commit 2077cb3ff8
134 changed files with 239 additions and 247 deletions

View File

@@ -119,7 +119,7 @@ export class ExtHostExtensionService extends AbstractExtensionService<ExtHostExt
/**
* This class is constructed manually because it is a service, so it doesn't use any ctor injection
*/
constructor(threadService: IThreadService, telemetryService: ITelemetryService, args: { serviceId: any; workspaceStoragePath: string; }) {
constructor(threadService: IThreadService, telemetryService: ITelemetryService, args: { _serviceBrand: any; workspaceStoragePath: string; }) {
super(false);
this._threadService = threadService;
this._storage = new ExtHostStorage(threadService);

View File

@@ -12,7 +12,7 @@ import {MainContext, MainThreadTelemetryShape} from './extHostProtocol';
export class RemoteTelemetryService implements ITelemetryService {
serviceId: any;
_serviceBrand: any;
private _name: string;
private _proxy: MainThreadTelemetryShape;