mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
Mark _serviceBrand properties using declare (#99312)
_serviceBrand is only used for typing and should not result in emit Also adds readonly
This commit is contained in:
@@ -12,7 +12,7 @@ import { Schemas } from 'vs/base/common/network';
|
||||
|
||||
class ExtensionResourceLoaderService implements IExtensionResourceLoaderService {
|
||||
|
||||
_serviceBrand: undefined;
|
||||
declare readonly _serviceBrand: undefined;
|
||||
|
||||
constructor(
|
||||
@IFileService private readonly _fileService: IFileService
|
||||
|
||||
@@ -12,7 +12,7 @@ export const IExtensionResourceLoaderService = createDecorator<IExtensionResourc
|
||||
* A service useful for reading resources from within extensions.
|
||||
*/
|
||||
export interface IExtensionResourceLoaderService {
|
||||
_serviceBrand: undefined;
|
||||
readonly _serviceBrand: undefined;
|
||||
|
||||
/**
|
||||
* Read a certain resource within an extension.
|
||||
|
||||
@@ -10,7 +10,7 @@ import { IExtensionResourceLoaderService } from 'vs/workbench/services/extension
|
||||
|
||||
export class ExtensionResourceLoaderService implements IExtensionResourceLoaderService {
|
||||
|
||||
_serviceBrand: undefined;
|
||||
declare readonly _serviceBrand: undefined;
|
||||
|
||||
constructor(
|
||||
@IFileService private readonly _fileService: IFileService
|
||||
|
||||
Reference in New Issue
Block a user