diff --git a/core/fileaction.py b/core/fileaction.py index b55480faf5..7d1e57999d 100755 --- a/core/fileaction.py +++ b/core/fileaction.py @@ -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: