@@ -50,6 +50,7 @@ import {
50
50
} from '../types' ;
51
51
import { NativeEditor } from './nativeEditor' ;
52
52
import { NativeEditorStorage } from './nativeEditorStorage' ;
53
+ import { NativeEditorSynchronizer } from './nativeEditorSynchronizer' ;
53
54
54
55
enum AskForSaveResult {
55
56
Yes ,
@@ -85,6 +86,7 @@ export class NativeEditorOldWebView extends NativeEditor {
85
86
@inject ( ICommandManager ) commandManager : ICommandManager ,
86
87
@inject ( INotebookExporter ) jupyterExporter : INotebookExporter ,
87
88
@inject ( IWorkspaceService ) workspaceService : IWorkspaceService ,
89
+ @inject ( NativeEditorSynchronizer ) synchronizer : NativeEditorSynchronizer ,
88
90
@inject ( INotebookEditorProvider ) editorProvider : INotebookEditorProvider ,
89
91
@inject ( IDataViewerProvider ) dataExplorerProvider : IDataViewerProvider ,
90
92
@inject ( IJupyterVariables ) jupyterVariables : IJupyterVariables ,
@@ -114,6 +116,7 @@ export class NativeEditorOldWebView extends NativeEditor {
114
116
commandManager ,
115
117
jupyterExporter ,
116
118
workspaceService ,
119
+ synchronizer ,
117
120
editorProvider ,
118
121
dataExplorerProvider ,
119
122
jupyterVariables ,
@@ -127,6 +130,7 @@ export class NativeEditorOldWebView extends NativeEditor {
127
130
switcher
128
131
) ;
129
132
asyncRegistry . push ( this ) ;
133
+ synchronizer . disable ( ) ;
130
134
}
131
135
public async load ( model : INotebookModel , webViewPanel : WebviewPanel ) : Promise < void > {
132
136
await super . load ( model , webViewPanel ) ;
@@ -263,7 +267,7 @@ export class NativeEditorOldWebView extends NativeEditor {
263
267
264
268
const defaultUri =
265
269
Array . isArray ( this . workspaceService . workspaceFolders ) &&
266
- this . workspaceService . workspaceFolders . length > 0
270
+ this . workspaceService . workspaceFolders . length > 0
267
271
? this . workspaceService . workspaceFolders [ 0 ] . uri
268
272
: undefined ;
269
273
fileToSaveTo = await this . applicationShell . showSaveDialog ( {
0 commit comments