Skip to content

Commit c965b11

Browse files
authored
Don't show tips in watermark if keys are unbound (microsoft#194337)
Dont show tips in watermark if keys unbound
1 parent 48cd067 commit c965b11

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/vs/workbench/browser/parts/editor/editorGroupWatermark.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,16 @@ export class EditorGroupWatermark extends Disposable {
141141
const update = () => {
142142
clearNode(box);
143143
selected.map(entry => {
144+
const keys = this.keybindingService.lookupKeybinding(entry.id);
145+
if (!keys) {
146+
return;
147+
}
144148
const dl = append(box, $('dl'));
145149
const dt = append(dl, $('dt'));
146150
dt.textContent = entry.text;
147151
const dd = append(dl, $('dd'));
148152
const keybinding = new KeybindingLabel(dd, OS, { renderUnboundKeybindings: true, ...defaultKeybindingLabelStyles });
149-
keybinding.set(this.keybindingService.lookupKeybinding(entry.id));
153+
keybinding.set(keys);
150154
});
151155
};
152156

0 commit comments

Comments
 (0)