Skip to content

Commit

Permalink
Make Inline diff refresh run on worker thread
Browse files Browse the repository at this point in the history
  • Loading branch information
stoivo committed Jun 29, 2019
1 parent 7c208dc commit 5a3a6f7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/commands/inline_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,10 @@ class GsInlineDiffRefreshCommand(TextCommand, GitCommand):
are not supported in `cached` mode.
"""

def run(self, edit):
def run(self, **kwargs):
sublime.set_timeout_async(lambda: self.run_async(**kwargs), 0)

def run_async(self, edit):
file_path = self.file_path
in_cached_mode = self.view.settings().get("git_savvy.inline_diff_view.in_cached_mode")
ignore_eol_arg = (
Expand Down

0 comments on commit 5a3a6f7

Please sign in to comment.