Skip to content

Commit 8296135

Browse files
committed
Update to latest pluto events interface
1 parent 947fe40 commit 8296135

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

julia-runtime/run.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,19 +128,19 @@ function event_listener(pe::Pluto.FileSaveEvent)
128128
@info "Overriden filesave event for" pe.path
129129
id = string(pe.notebook.notebook_id)
130130
oldContent = get(extensionData.textRepresentations, id, "")
131-
if oldContent != pe.fileContent
132-
whenNotebookUpdates(pe.path, pe.fileContent)
133-
extensionData.textRepresentations[id] = pe.fileContent
131+
if oldContent != pe.file_contents
132+
whenNotebookUpdates(pe.path, pe.file_contents)
133+
extensionData.textRepresentations[id] = pe.file_contents
134134
end
135135
end
136136

137137
# function event_listener(pe::Pluto.FileLocalChangeEvent)
138138
# @info "Overriden filesave event for" pe.path
139139
# id = string(pe.notebook.notebook_id)
140140
# oldContent = get(extensionData.textRepresentations, id, "")
141-
# if oldContent != pe.fileContent
142-
# whenNotebookUpdates(pe.path, pe.fileContent)
143-
# extensionData.textRepresentations[id] = pe.fileContent
141+
# if oldContent != pe.file_contents
142+
# whenNotebookUpdates(pe.path, pe.file_contents)
143+
# extensionData.textRepresentations[id] = pe.file_contents
144144
# end
145145
# end
146146

0 commit comments

Comments
 (0)