Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
manateelazycat committed Oct 29, 2024
1 parent b5e92d6 commit ae40b36
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/fileaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,15 @@ def try_completion(self, position, before_char, prefix, version=None):
self.send_server_request(lsp_server, "completion", lsp_server, position, before_char, prefix, version)

# Send workspace symbol completion request.
self.send_server_request(lsp_server, "completion_workspace_symbol", lsp_server, prefix)
if lsp_server.workspace_symbol_provider:
self.send_server_request(lsp_server, "completion_workspace_symbol", lsp_server, prefix)
else:
# Send code completion request.
self.send_server_request(self.single_server, "completion", self.single_server, position, before_char, prefix, version)

# Send workspace symbol completion request.
self.send_server_request(self.single_server, "completion_workspace_symbol", self.single_server, prefix)
if self.single_server.workspace_symbol_provider:
self.send_server_request(self.single_server, "completion_workspace_symbol", self.single_server, prefix)

def try_formatting(self, start, end, *args, **kwargs):
if self.multi_servers:
Expand Down

0 comments on commit ae40b36

Please sign in to comment.