File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
ui-tests/tests/jupyter_scheduler.spec.ts-snapshots Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -303,11 +303,11 @@ function activatePlugin(
303303 commands . addCommand ( CommandIDs . createJobCurrentNotebook , {
304304 execute : async ( ) => {
305305 eventLogger ( 'notebook-header.create-job' ) ;
306- // Get the current notebook's name and path
307- const contentsModel =
308- notebookTracker . currentWidget ?. context ?. contentsModel ;
309- const filePath = contentsModel ?. path ?? '' ;
310- const fileName = contentsModel ?. name ?? '' ;
306+ // Get the current notebook's path and name
307+ const widget = fileBrowserTracker . currentWidget ;
308+ const filePath =
309+ getSelectedFilePath ( widget , app . serviceManager . contents ) ?? '' ;
310+ const fileName = getSelectedFileBaseName ( widget ) ?? '' ;
311311
312312 // Update the job form inside the notebook jobs widget
313313 const newCreateModel = emptyCreateJobModel ( ) ;
You can’t perform that action at this time.
0 commit comments