@@ -56,20 +56,25 @@ export class NotebookStorageProvider implements INotebookStorageProvider {
56
56
public deleteBackup ( model : INotebookModel , backupId ?: string ) {
57
57
return this . storage . deleteBackup ( model , backupId ) ;
58
58
}
59
- public load ( file : Uri , contents ?: string , backupId ?: string ) : Promise < INotebookModel > ;
60
- // tslint:disable-next-line: unified-signatures
61
- public load ( file : Uri , contents ?: string , skipDirtyContents ?: boolean ) : Promise < INotebookModel > ;
59
+ public load ( file : Uri , contents ?: string , backupId ?: string , forVSCodeNotebook ?: boolean ) : Promise < INotebookModel > ;
60
+ public load (
61
+ file : Uri ,
62
+ contents ?: string ,
63
+ // tslint:disable-next-line: unified-signatures
64
+ skipDirtyContents ?: boolean ,
65
+ forVSCodeNotebook ?: boolean
66
+ ) : Promise < INotebookModel > ;
62
67
63
68
// tslint:disable-next-line: no-any
64
- public load ( file : Uri , contents ?: string , options ?: any ) : Promise < INotebookModel > {
69
+ public load ( file : Uri , contents ?: string , options ?: any , forVSCodeNotebook ?: boolean ) : Promise < INotebookModel > {
65
70
const key = file . toString ( ) ;
66
71
if ( ! this . storageAndModels . has ( key ) ) {
67
72
// Every time we load a new untitled file, up the counter past the max value for this counter
68
73
NotebookStorageProvider . untitledCounter = getNextUntitledCounter (
69
74
file ,
70
75
NotebookStorageProvider . untitledCounter
71
76
) ;
72
- const promise = this . storage . load ( file , contents , options ) ;
77
+ const promise = this . storage . load ( file , contents , options , forVSCodeNotebook ) ;
73
78
this . storageAndModels . set ( key , promise . then ( this . trackModel . bind ( this ) ) ) ;
74
79
}
75
80
return this . storageAndModels . get ( key ) ! ;
0 commit comments