File tree 1 file changed +3
-3
lines changed
src/vs/workbench/contrib/notebook/browser
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -564,9 +564,9 @@ class NotebookFileTracker implements IWorkbenchContribution {
564
564
constructor (
565
565
@INotebookService private readonly _notebookService : INotebookService ,
566
566
@IEditorService private readonly _editorService : IEditorService ,
567
- @IWorkingCopyService workingCopyService : IWorkingCopyService ,
567
+ @IWorkingCopyService private readonly _workingCopyService : IWorkingCopyService ,
568
568
) {
569
- this . _dirtyListener = Event . debounce ( workingCopyService . onDidChangeDirty , ( ) => { } , 100 ) ( ( ) => {
569
+ this . _dirtyListener = Event . debounce ( _workingCopyService . onDidChangeDirty , ( ) => { } , 100 ) ( ( ) => {
570
570
const inputs = this . _createMissingNotebookEditors ( ) ;
571
571
this . _editorService . openEditors ( inputs ) ;
572
572
} ) ;
@@ -580,7 +580,7 @@ class NotebookFileTracker implements IWorkbenchContribution {
580
580
const result : IResourceEditorInput [ ] = [ ] ;
581
581
582
582
for ( const notebook of this . _notebookService . getNotebookTextModels ( ) ) {
583
- if ( notebook . isDirty && ! this . _editorService . isOpen ( { resource : notebook . uri } ) ) {
583
+ if ( this . _workingCopyService . isDirty ( notebook . uri . with ( { scheme : Schemas . vscodeNotebook } ) ) && ! this . _editorService . isOpen ( { resource : notebook . uri } ) ) {
584
584
result . push ( {
585
585
resource : notebook . uri ,
586
586
options : { inactive : true , preserveFocus : true , pinned : true }
You can’t perform that action at this time.
0 commit comments