MCPcopy Create free account
hub / github.com/catppuccin/catppuccin / ToggleHighlightChangesCommand

Class ToggleHighlightChangesCommand

samples/python1.py:802–815  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

800
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

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…