Skip to content

Commit 0945f07

Browse files
committed
re microsoft#103454. notebook/comment/find.
1 parent f99ff58 commit 0945f07

8 files changed

Lines changed: 14 additions & 14 deletions

File tree

‎src/vs/workbench/contrib/codeEditor/browser/find/simpleFindReplaceWidget.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,13 +402,13 @@ export abstract class SimpleFindReplaceWidget extends Widget {
402402

403403
public hide(): void {
404404
if (this._isVisible) {
405-
dom.removeClass(this._domNode, 'visible-transition');
405+
this._domNode.classList.remove('visible-transition');
406406
this._domNode.setAttribute('aria-hidden', 'true');
407407
// Need to delay toggling visibility until after Transition, then visibility hidden - removes from tabIndex list
408408
setTimeout(() => {
409409
this._isVisible = false;
410410
this.updateButtons(this.foundMatch);
411-
dom.removeClass(this._domNode, 'visible');
411+
this._domNode.classList.remove('visible');
412412
}, 200);
413413
}
414414
}

‎src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,13 +235,13 @@ export abstract class SimpleFindWidget extends Widget {
235235

236236
public hide(): void {
237237
if (this._isVisible) {
238-
dom.removeClass(this._innerDomNode, 'visible-transition');
238+
this._innerDomNode.classList.remove('visible-transition');
239239
this._innerDomNode.setAttribute('aria-hidden', 'true');
240240
// Need to delay toggling visibility until after Transition, then visibility hidden - removes from tabIndex list
241241
setTimeout(() => {
242242
this._isVisible = false;
243243
this.updateButtons(this.foundMatch);
244-
dom.removeClass(this._innerDomNode, 'visible');
244+
this._innerDomNode.classList.remove('visible');
245245
}, 200);
246246
}
247247
}

‎src/vs/workbench/contrib/comments/browser/commentNode.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ export class CommentNode extends Disposable {
521521
if (!this._clearTimeout) {
522522
dom.addClass(this.domNode, 'focus');
523523
this._clearTimeout = setTimeout(() => {
524-
dom.removeClass(this.domNode, 'focus');
524+
this.domNode.classList.remove('focus');
525525
}, 3000);
526526
}
527527
}

‎src/vs/workbench/contrib/comments/browser/commentThreadWidget.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -721,8 +721,8 @@ export class ReviewZoneWidget extends ZoneWidget implements ICommentThreadWidget
721721
this._disposables.add(dom.addDisposableListener(this._reviewThreadReplyButton, 'focus', _ => this.expandReplyArea()));
722722

723723
this._commentEditor.onDidBlurEditorWidget(() => {
724-
if (this._commentEditor.getModel()!.getValueLength() === 0 && this._commentForm.classList.add('expand')) {
725-
dom.removeClass(this._commentForm, 'expand');
724+
if (this._commentEditor.getModel()!.getValueLength() === 0 && this._commentForm.classList.contains('expand')) {
725+
this._commentForm.classList.remove('expand');
726726
}
727727
});
728728
}

‎src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1771,15 +1771,15 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditor
17711771
}
17721772

17731773
toggleClassName(className: string) {
1774-
DOM.toggleClass(this._overlayContainer, className);
1774+
this._overlayContainer.classList.toggle(className);
17751775
}
17761776

17771777
addClassName(className: string) {
1778-
DOM.addClass(this._overlayContainer, className);
1778+
this._overlayContainer.classList.add(className);
17791779
}
17801780

17811781
removeClassName(className: string) {
1782-
DOM.removeClass(this._overlayContainer, className);
1782+
this._overlayContainer.classList.remove(className);
17831783
}
17841784

17851785

‎src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,9 +1083,9 @@ export class ListTopCellToolbar extends Disposable {
10831083

10841084
private updateClass() {
10851085
if (this.notebookEditor.viewModel?.length === 0) {
1086-
DOM.addClass(this.topCellToolbar, 'emptyNotebook');
1086+
this.topCellToolbar.classList.add('emptyNotebook');
10871087
} else {
1088-
DOM.removeClass(this.topCellToolbar, 'emptyNotebook');
1088+
this.topCellToolbar.classList.remove('emptyNotebook');
10891089
}
10901090
}
10911091

‎src/vs/workbench/contrib/notebook/browser/view/renderers/codeCell.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export class CodeCell extends Disposable {
233233

234234
e.removed.forEach(options => {
235235
if (options.className) {
236-
DOM.removeClass(templateData.rootContainer, options.className);
236+
templateData.rootContainer.classList.remove(options.className);
237237
}
238238

239239
if (options.outputClassName) {

‎src/vs/workbench/contrib/notebook/browser/view/renderers/markdownCell.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export class StatefulMarkdownCell extends Disposable {
115115

116116
e.removed.forEach(options => {
117117
if (options.className) {
118-
DOM.removeClass(templateData.rootContainer, options.className);
118+
templateData.rootContainer.classList.remove(options.className);
119119
}
120120
});
121121
}));

0 commit comments

Comments
 (0)