本文整理汇总了TypeScript中vs/base/common/keybindingLabels.UserSettingsLabelProvider类的典型用法代码示例。如果您正苦于以下问题:TypeScript UserSettingsLabelProvider类的具体用法?TypeScript UserSettingsLabelProvider怎么用?TypeScript UserSettingsLabelProvider使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了UserSettingsLabelProvider类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: getUserSettingsLabel
public getUserSettingsLabel(): string {
let firstPart = this._getUserSettingsLabelForKeybinding(this._firstPart);
let chordPart = this._getUserSettingsLabelForKeybinding(this._chordPart);
let result = UserSettingsLabelProvider.toLabel(this._firstPart, firstPart, this._chordPart, chordPart, this._os);
return (result ? result.toLowerCase() : result);
}
示例2:
.map(k => UserSettingsLabelProvider.toLabel(OS, [k], (keybinding) => ScanCodeUtils.toString(keybinding.scanCode)));
示例3: getUserSettingsLabel
public getUserSettingsLabel(): string | null {
return UserSettingsLabelProvider.toLabel(this._os, this._parts, (keybinding) => this._getUserSettingsLabel(keybinding));
}