Skip to content

Commit

Permalink
Update pylsp/plugins/rope_autoimport.py
Browse files Browse the repository at this point in the history
Co-authored-by: Carlos Cordoba <[email protected]>
  • Loading branch information
tkrabel-db and ccordoba12 authored Oct 27, 2023
1 parent 744b941 commit 4f3b848
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pylsp/plugins/rope_autoimport.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ def pylsp_code_actions(
key=lambda statement: statement["data"]["sortText"],
)
)

if len(results) > MAX_RESULTS_CODE_ACTIONS:
results = results[:MAX_RESULTS_CODE_ACTIONS]
code_actions.extend(results)
Expand Down

0 comments on commit 4f3b848

Please sign in to comment.