Skip to content

Commit

Permalink
Try to fix issue #744.
Browse files Browse the repository at this point in the history
  • Loading branch information
manateelazycat committed Oct 22, 2023
1 parent 0b30d95 commit b4c3867
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/fileaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,12 @@ def update_file(self, buffer_name, org_line_bias=None):
lsp_server.send_whole_change_notification(self.filepath, self.version, buffer_content)
self.version += 1

def try_completion(self, position, before_char, prefix, version):
def try_completion(self, position, before_char, prefix, version=None):
# If we call try_completion from Elisp side, Emacs don't know the version of FileAction.
# So we need fill version if it is None.
if version is None:
version = self.version

if self.multi_servers:
for lsp_server in self.multi_servers.values():
if lsp_server.server_info["name"] in self.multi_servers_info["completion"]:
Expand Down

0 comments on commit b4c3867

Please sign in to comment.