Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
jwortmann committed Mar 9, 2024
1 parent 670ff23 commit 239d4af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugin/edit.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from .core.edit import parse_range
from .core.edit import parse_workspace_edit
from .core.logging import debug
from .core.protocol import TextEdit
from .core.protocol import WorkspaceEdit
Expand Down Expand Up @@ -35,7 +34,7 @@ def run(self, session_name: str, edit: WorkspaceEdit) -> None:
if not session:
debug('Could not find session', session_name, 'required to apply WorkspaceEdit')
return
session.apply_parsed_workspace_edits(parse_workspace_edit(edit))
sublime.set_timeout_async(lambda: session.apply_workspace_edit_async(edit))


class LspApplyDocumentEditCommand(sublime_plugin.TextCommand):
Expand Down

0 comments on commit 239d4af

Please sign in to comment.