src/Tools/VSCode/src/vscode_resources.scala
changeset 65114 200b787ceb51
parent 65113 6058e7d31fe6
child 65115 93a0683e075a
equal deleted inserted replaced
65113:6058e7d31fe6 65114:200b787ceb51
   118   {
   118   {
   119     state.change(st =>
   119     state.change(st =>
   120       {
   120       {
   121         val model = st.models.getOrElse(file, Document_Model.init(session, node_name(file)))
   121         val model = st.models.getOrElse(file, Document_Model.init(session, node_name(file)))
   122         val model1 = (model.update_text(text) getOrElse model).external(false)
   122         val model1 = (model.update_text(text) getOrElse model).external(false)
   123         st.copy(
   123         st.update_models(Some(file -> model1))
   124           models = st.models + (file -> model1),
       
   125           pending_input = st.pending_input + file,
       
   126           pending_output = st.pending_output ++
       
   127             (if (model.node_visible == model1.node_visible) None else Some(file)))
       
   128       })
   124       })
   129   }
   125   }
   130 
   126 
   131   def close_model(file: JFile): Boolean =
   127   def close_model(file: JFile): Boolean =
   132     state.change_result(st =>
   128     state.change_result(st =>