mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-28 07:40:30 -04:00
Revert "Revert "Merge from vscode ada4bddb8edc69eea6ebaaa0e88c5f903cbd43d8 (#5529)" (#5553)" (#5562)
This reverts commit c9a4f8f664.
This commit is contained in:
@@ -125,7 +125,7 @@ function storeServiceDependency(id: Function, target: Function, index: number, o
|
||||
/**
|
||||
* A *only* valid way to create a {{ServiceIdentifier}}.
|
||||
*/
|
||||
export function createDecorator<T>(serviceId: string): { (...args: any[]): void; type: T; } {
|
||||
export function createDecorator<T>(serviceId: string): ServiceIdentifier<T> {
|
||||
|
||||
if (_util.serviceIds.has(serviceId)) {
|
||||
return _util.serviceIds.get(serviceId)!;
|
||||
|
||||
@@ -221,7 +221,7 @@ export class InstantiationService implements IInstantiationService {
|
||||
// Return a proxy object that's backed by an idle value. That
|
||||
// strategy is to instantiate services in our idle time or when actually
|
||||
// needed but not when injected into a consumer
|
||||
const idle = new IdleValue(() => this._createInstance(ctor, args, _trace));
|
||||
const idle = new IdleValue(() => this._createInstance<T>(ctor, args, _trace));
|
||||
return <T>new Proxy(Object.create(null), {
|
||||
get(_target: T, prop: PropertyKey): any {
|
||||
return idle.getValue()[prop];
|
||||
|
||||
Reference in New Issue
Block a user