本文整理匯總了TypeScript中vs/platform/instantiation/common/instantiation.IInstantiationService.invokeFunction方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript IInstantiationService.invokeFunction方法的具體用法?TypeScript IInstantiationService.invokeFunction怎麽用?TypeScript IInstantiationService.invokeFunction使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類vs/platform/instantiation/common/instantiation.IInstantiationService
的用法示例。
在下文中一共展示了IInstantiationService.invokeFunction方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: run
public run(): TPromise<void> {
return this._instantiationService.invokeFunction((accessor) => {
this._actual.run(accessor, this.editor);
return TPromise.as(void 0);
});
}
示例2: enabled
public get enabled():boolean {
return this._instantiationService.invokeFunction((accessor) => {
return this._actual.enabled(accessor, this.editor);
});
}
示例3: isSupported
public isSupported():boolean {
return this._instantiationService.invokeFunction((accessor) => {
return this._actual.supported(accessor, this.editor);
});
}
示例4: isSupported
public isSupported(forceEditorTextFocus:boolean):boolean {
return this._instantiationService.invokeFunction((accessor) => {
return this._actual.supported(accessor, this._editor, forceEditorTextFocus);
});
}