MCPcopy
hub / github.com/catppuccin/catppuccin / run

Method run

samples/python1.py:803–815  ·  view source on GitHub ↗
(self, edit)

Source from the content-addressed store, hash-verified

801
802class ToggleHighlightChangesCommand(sublime_plugin.TextCommand):
803 def run(self, edit):
804 setting_name = "highlight_changes"
805 settings = get_settings()
806 is_on = settings.get(setting_name)
807
808 if is_on:
809 # remove highlighting
810 [self.view.erase_regions(k) for k in ('inserted', 'changed', 'deleted')]
811 else:
812 self.view.run_command('hl_changes')
813
814 settings.set(setting_name, not is_on)
815 sublime.save_settings("Modific.sublime-settings")

Callers

nothing calls this directly

Calls 2

get_settingsFunction · 0.85
run_commandMethod · 0.80

Tested by

no test coverage detected