mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
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:
@@ -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);
|
||||
|
||||
@@ -12,7 +12,7 @@ import {MainContext, MainThreadTelemetryShape} from './extHostProtocol';
|
||||
|
||||
export class RemoteTelemetryService implements ITelemetryService {
|
||||
|
||||
serviceId: any;
|
||||
_serviceBrand: any;
|
||||
|
||||
private _name: string;
|
||||
private _proxy: MainThreadTelemetryShape;
|
||||
|
||||
Reference in New Issue
Block a user