MCPcopy
hub / github.com/catppuccin/catppuccin / generic_done

Method generic_done

samples/python1.py:241–256  ·  view source on GitHub ↗
(self, result)

Source from the content-addressed store, hash-verified

239 sublime.status_message(message + 'wef')
240
241 def generic_done(self, result):
242 self.log('generic_done', result)
243 if self.may_change_files and self.active_view() and self.active_view().file_name():
244 if self.active_view().is_dirty():
245 result = "WARNING: Current view is dirty.\n\n"
246 else:
247 # just asking the current file to be re-opened doesn't do anything
248 print("reverting")
249 position = self.active_view().viewport_position()
250 self.active_view().run_command('revert')
251 do_when(lambda: not self.active_view().is_loading(),
252 lambda: self.active_view().set_viewport_position(position, False))
253
254 if not result.strip():
255 return
256 self.panel(result)
257
258 def _output_to_view(self, output_file, output, clear=False,
259 syntax="Packages/Diff/Diff.tmLanguage"):

Callers

nothing calls this directly

Calls 5

logMethod · 0.95
active_viewMethod · 0.95
panelMethod · 0.95
run_commandMethod · 0.80
do_whenFunction · 0.70

Tested by

no test coverage detected