本文整理匯總了TypeScript中vs/base/parts/ipc/node/ipc.IChannel.call方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript IChannel.call方法的具體用法?TypeScript IChannel.call怎麽用?TypeScript IChannel.call使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類vs/base/parts/ipc/node/ipc.IChannel
的用法示例。
在下文中一共展示了IChannel.call方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: _resolveAuthority
private _resolveAuthority(authority: string): Thenable<ResolvedAuthority> {
if (authority.indexOf('+') >= 0) {
return this.channel.call('resolveAuthority', [authority]);
} else {
const [host, strPort] = authority.split(':');
const port = parseInt(strPort, 10);
return Promise.resolve({ authority, host, port });
}
}
示例2: uninstall
uninstall(extension: ILocalExtension, force = false): Promise<void> {
return Promise.resolve(this.channel.call('uninstall', [extension!, force]));
}
示例3: getLanguageIds
getLanguageIds(type?: LanguageType): Thenable<string[]> {
return this.channel.call('getLanguageIds', type);
}
示例4: dispatchKeybinding
dispatchKeybinding(windowId: number, keybinding: string): TPromise<void> {
return TPromise.wrap(this.channel.call('dispatchKeybinding', [windowId, keybinding]));
}
示例5: capturePage
capturePage(windowId: number): TPromise<string> {
return TPromise.wrap(this.channel.call('capturePage', windowId));
}
示例6: writeInTerminal
writeInTerminal(selector: string, text: string): TPromise<void> {
return TPromise.wrap(this.channel.call('writeInTerminal', [selector, text]));
}
示例7: typeInEditor
typeInEditor(selector: string, text: string): TPromise<void> {
return TPromise.wrap(this.channel.call('typeInEditor', [selector, text]));
}
示例8: isActiveElement
isActiveElement(selector: string): TPromise<boolean> {
return TPromise.wrap(this.channel.call('isActiveElement', selector));
}
示例9: getTitle
getTitle(windowId: number): TPromise<string> {
return TPromise.wrap(this.channel.call('getTitle', [windowId]));
}
示例10: setValue
setValue(windowId: number, selector: string, text: string): TPromise<void> {
return TPromise.wrap(this.channel.call('setValue', [windowId, selector, text]));
}