equal
deleted
inserted
replaced
109 |
109 |
110 |
110 |
111 /* input from client or file-system */ |
111 /* input from client or file-system */ |
112 |
112 |
113 private val delay_input: Standard_Thread.Delay = |
113 private val delay_input: Standard_Thread.Delay = |
114 Standard_Thread.delay_last(options.seconds("vscode_input_delay")) |
114 Standard_Thread.delay_last(options.seconds("vscode_input_delay"), channel.Error_Logger) |
115 { resources.flush_input(session) } |
115 { resources.flush_input(session) } |
116 |
116 |
117 private val delay_load: Standard_Thread.Delay = |
117 private val delay_load: Standard_Thread.Delay = |
118 Standard_Thread.delay_last(options.seconds("vscode_load_delay")) { |
118 Standard_Thread.delay_last(options.seconds("vscode_load_delay"), channel.Error_Logger) { |
119 val (invoke_input, invoke_load) = resources.resolve_dependencies(session, watcher) |
119 val (invoke_input, invoke_load) = resources.resolve_dependencies(session, watcher) |
120 if (invoke_input) delay_input.invoke() |
120 if (invoke_input) delay_input.invoke() |
121 if (invoke_load) delay_load.invoke |
121 if (invoke_load) delay_load.invoke |
122 } |
122 } |
123 |
123 |
145 |
145 |
146 |
146 |
147 /* output to client */ |
147 /* output to client */ |
148 |
148 |
149 private val delay_output: Standard_Thread.Delay = |
149 private val delay_output: Standard_Thread.Delay = |
150 Standard_Thread.delay_last(options.seconds("vscode_output_delay")) |
150 Standard_Thread.delay_last(options.seconds("vscode_output_delay"), channel.Error_Logger) |
151 { |
151 { |
152 if (session.current_state().stable_tip_version.isEmpty) delay_output.invoke() |
152 if (session.current_state().stable_tip_version.isEmpty) delay_output.invoke() |
153 else resources.flush_output(channel) |
153 else resources.flush_output(channel) |
154 } |
154 } |
155 |
155 |