Skip to content

Commit a9ea169

Browse files
authored
remove usage of experiment service for global vs editor toolbar (microsoft#257920)
1 parent 83b34a3 commit a9ea169

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import { INotebookEditorDelegate } from '../notebookBrowser.js';
2424
import { NotebooKernelActionViewItem } from './notebookKernelView.js';
2525
import { ActionViewWithLabel, UnifiedSubmenuActionView } from '../view/cellParts/cellActionView.js';
2626
import { IEditorService } from '../../../../services/editor/common/editorService.js';
27-
import { IWorkbenchAssignmentService } from '../../../../services/assignment/common/assignmentService.js';
2827
import { NotebookOptions } from '../notebookOptions.js';
2928
import { IActionViewItem, IActionViewItemProvider } from '../../../../../base/browser/ui/actionbar/actionbar.js';
3029
import { disposableTimeout } from '../../../../../base/common/async.js';
@@ -265,7 +264,6 @@ export class NotebookEditorWorkbenchToolbar extends Disposable {
265264
@IMenuService private readonly menuService: IMenuService,
266265
@IEditorService private readonly editorService: IEditorService,
267266
@IKeybindingService private readonly keybindingService: IKeybindingService,
268-
@IWorkbenchAssignmentService private readonly experimentService: IWorkbenchAssignmentService,
269267
) {
270268
super();
271269

@@ -437,18 +435,6 @@ export class NotebookEditorWorkbenchToolbar extends Disposable {
437435
return;
438436
}
439437
}));
440-
441-
if (this.experimentService) {
442-
this.experimentService.getTreatment<boolean>('nbtoolbarineditor').then(treatment => {
443-
if (treatment === undefined) {
444-
return;
445-
}
446-
if (this._useGlobalToolbar !== treatment) {
447-
this._useGlobalToolbar = treatment;
448-
this._showNotebookActionsinEditorToolbar();
449-
}
450-
});
451-
}
452438
}
453439

454440
private _updateStrategy() {

0 commit comments

Comments
 (0)