Skip to content

Commit 66fd3a4

Browse files
committed
notify: ack. when range format runs
1 parent 2867a45 commit 66fd3a4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pylsp_isort/plugin.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,12 @@ def pylsp_format_document(
4444

4545

4646
@hookimpl(hookwrapper=True)
47-
def pylsp_format_range(config: Config, document: Document, range: Range) -> Generator:
47+
def pylsp_format_range(
48+
config: Config, workspace: Workspace, document: Document, range: Range
49+
) -> Generator:
4850
outcome = yield
49-
_format(outcome, config, document, range)
51+
with workspace.report_progress("format: isort"):
52+
_format(outcome, config, document, range)
5053

5154

5255
def _format(

0 commit comments

Comments
 (0)