tooltip for double click.

This commit is contained in:
rebornix 2021-08-10 13:41:11 -07:00
parent e477d7f364
commit a5cc64cd6a
2 changed files with 4 additions and 7 deletions

View file

@ -716,13 +716,11 @@ export class CodeCellRenderer extends AbstractCellRenderer implements IListRende
expandIcon.classList.add(...CSSIcon.asClassNameArray(Codicon.more));
const keybinding = this.keybindingService.lookupKeybinding(EXPAND_CELL_OUTPUT_COMMAND_ID);
let title = localize('cellExpandOutputButtonLabel', "Expand Cell Output");
if (keybinding) {
title += ` (${keybinding.getLabel()})`;
placeholder.title = localize('cellExpandOutputButtonLabelWithDoubleClick', "Double click to expand cell output ({0})", keybinding.getLabel());
cellOutputCollapseContainer.title = localize('cellExpandOutputButtonLabel', "Expand Cell Output (${0})", keybinding.getLabel());
}
cellOutputCollapseContainer.title = title;
DOM.hide(cellOutputCollapseContainer);
const expand = () => {

View file

@ -278,12 +278,11 @@ export class CodeCell extends Disposable {
this.templateData.cellInputCollapsedContainer.appendChild(element);
const expandIcon = DOM.$('span.expandInputIcon');
const keybinding = this.keybindingService.lookupKeybinding(EXPAND_CELL_INPUT_COMMAND_ID);
let title = localize('cellExpandInputButtonLabel', "Expand Cell Input");
if (keybinding) {
title += ` (${keybinding.getLabel()})`;
element.title = localize('cellExpandInputButtonLabelWithDoubleClick', "Double click to expand cell input ({0})", keybinding.getLabel());
expandIcon.title = localize('cellExpandInputButtonLabel', "Expand Cell Input ({0})", keybinding.getLabel());
}
expandIcon.title = title;
expandIcon.classList.add(...CSSIcon.asClassNameArray(Codicon.more));
element.appendChild(expandIcon);