We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0298f6 commit e083f70Copy full SHA for e083f70
1 file changed
docs/vanilla.md
@@ -38,9 +38,10 @@ const driverRef = new PythonEditorFrameDriver(
38
{
39
controllerId: 'YOUR APP NAME HERE',
40
initialProjects: async () => [pythonProject],
41
- onWorkspaceLoaded: (e) => console.log('Workspace loaded'),
42
- onWorkspaceSync: (e) => console.log('Workspace ready to sync'),
43
- onWorkspaceSave: (e) => console.log('Workspace save'),
+ onWorkspaceSave: (e) => {
+ // Set project as project changes in the editor.
+ setSavedProject(e.project);
44
+ },
45
},
46
() => iframe
47
);
0 commit comments