add refineServiceDecorator, https://github.com/microsoft/vscode/issues/117881
This commit is contained in:
parent
978b0d6ead
commit
31012ea2d4
1 changed files with 4 additions and 0 deletions
|
@ -155,6 +155,10 @@ export function createDecorator<T>(serviceId: string): ServiceIdentifier<T> {
|
|||
return id;
|
||||
}
|
||||
|
||||
export function refineServiceDecorator<T1, T extends T1>(serviceIdentifier: ServiceIdentifier<T1>): ServiceIdentifier<T> {
|
||||
return <ServiceIdentifier<T>>serviceIdentifier;
|
||||
}
|
||||
|
||||
/**
|
||||
* Mark a service dependency as optional.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue