66import { ITreeContextMenuEvent } from '../../../../../../base/browser/ui/tree/tree.js' ;
77import { RunOnceScheduler } from '../../../../../../base/common/async.js' ;
88import { URI } from '../../../../../../base/common/uri.js' ;
9- import * as nls from '../../../../../../nls.js' ;
10- import { ILocalizedString } from '../../../../../../platform/action/common/action.js' ;
119import { getFlatContextMenuActions } from '../../../../../../platform/actions/browser/menuEntryActionViewItem.js' ;
1210import { IMenuService , MenuId } from '../../../../../../platform/actions/common/actions.js' ;
1311import { ICommandService } from '../../../../../../platform/commands/common/commands.js' ;
@@ -25,7 +23,7 @@ import { IViewPaneOptions, ViewPane } from '../../../../../browser/parts/views/v
2523import { IViewDescriptorService } from '../../../../../common/views.js' ;
2624import { CONTEXT_VARIABLE_EXTENSIONID , CONTEXT_VARIABLE_INTERFACES , CONTEXT_VARIABLE_LANGUAGE , CONTEXT_VARIABLE_NAME , CONTEXT_VARIABLE_TYPE , CONTEXT_VARIABLE_VALUE } from '../../../../debug/common/debug.js' ;
2725import { IEmptyScope , INotebookScope , INotebookVariableElement , NotebookVariableDataSource } from './notebookVariablesDataSource.js' ;
28- import { NotebookVariableAccessibilityProvider , NotebookVariableRenderer , NotebookVariablesDelegate } from './notebookVariablesTree.js' ;
26+ import { NOTEBOOK_TITLE , NotebookVariableAccessibilityProvider , NotebookVariableRenderer , NotebookVariablesDelegate , REPL_TITLE } from './notebookVariablesTree.js' ;
2927import { getNotebookEditorFromEditorPane } from '../../notebookBrowser.js' ;
3028import { NotebookTextModel } from '../../../common/model/notebookTextModel.js' ;
3129import { ICellExecutionStateChangedEvent , IExecutionStateChangedEvent , INotebookExecutionStateService } from '../../../common/notebookExecutionStateService.js' ;
@@ -39,8 +37,6 @@ export type contextMenuArg = { source: string; name: string; type?: string; valu
3937export class NotebookVariablesView extends ViewPane {
4038
4139 static readonly ID = 'notebookVariablesView' ;
42- static readonly NOTEBOOK_TITLE : ILocalizedString = nls . localize2 ( 'notebook.notebookVariables' , "Notebook Variables" ) ;
43- static readonly REPL_TITLE : ILocalizedString = nls . localize2 ( 'notebook.ReplVariables' , "REPL Variables" ) ;
4440
4541 private tree : WorkbenchAsyncDataTree < INotebookScope | IEmptyScope , INotebookVariableElement > | undefined ;
4642 private activeNotebook : NotebookTextModel | undefined ;
@@ -151,11 +147,11 @@ export class NotebookVariablesView extends ViewPane {
151147 this . activeNotebook = notebookDocument ;
152148
153149 if ( isCompositeNotebookEditorInput ( editor . input ) ) {
154- this . updateTitle ( NotebookVariablesView . REPL_TITLE . value ) ;
155- this . accessibilityProvider . updateWidgetAriaLabel ( NotebookVariablesView . REPL_TITLE . value ) ;
150+ this . updateTitle ( REPL_TITLE . value ) ;
151+ this . accessibilityProvider . updateWidgetAriaLabel ( REPL_TITLE . value ) ;
156152 } else {
157- this . updateTitle ( NotebookVariablesView . NOTEBOOK_TITLE . value ) ;
158- this . accessibilityProvider . updateWidgetAriaLabel ( NotebookVariablesView . NOTEBOOK_TITLE . value ) ;
153+ this . updateTitle ( NOTEBOOK_TITLE . value ) ;
154+ this . accessibilityProvider . updateWidgetAriaLabel ( NOTEBOOK_TITLE . value ) ;
159155 }
160156
161157 if ( doUpdate ) {
0 commit comments