From 302e8305ef8c400e4df822596f9e5f10453e8a7e Mon Sep 17 00:00:00 2001 From: Chris LaFreniere <40371649+chlafreniere@users.noreply.github.com> Date: Tue, 10 Dec 2019 21:08:28 -0800 Subject: [PATCH] add titles to collapse expand button (#8607) --- .../contrib/notebook/browser/cellViews/collapse.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sql/workbench/contrib/notebook/browser/cellViews/collapse.component.ts b/src/sql/workbench/contrib/notebook/browser/cellViews/collapse.component.ts index 4bc08acac8..26fb2a86f5 100644 --- a/src/sql/workbench/contrib/notebook/browser/cellViews/collapse.component.ts +++ b/src/sql/workbench/contrib/notebook/browser/cellViews/collapse.component.ts @@ -7,6 +7,7 @@ import 'vs/css!./code'; import { OnInit, Component, Input, ElementRef, ViewChild, SimpleChange, OnChanges } from '@angular/core'; import { CellView } from 'sql/workbench/contrib/notebook/browser/cellViews/interfaces'; import { ICellModel } from 'sql/workbench/contrib/notebook/browser/models/modelInterfaces'; +import { localize } from 'vs/nls'; export const COLLAPSE_SELECTOR: string = 'collapse-component'; @@ -27,6 +28,8 @@ export class CollapseComponent extends CellView implements OnInit, OnChanges { } ngOnInit() { + this.collapseCellButtonElement.nativeElement.title = localize('collapseCellContents', "Collapse code cell contents"); + this.expandCellButtonElement.nativeElement.title = localize('expandCellContents', "Expand code cell contents"); } ngOnChanges(changes: { [propKey: string]: SimpleChange }) {