本文整理汇总了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]));
}