From 7d7f6a47b9487b29bd8a07776dcf5425e0877d6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Andr=C3=A9s=20Margffoy=20Tuay?= Date: Thu, 10 Dec 2020 22:31:57 -0500 Subject: [PATCH] PR: Flatten folding regions (#893) --- pyls/python_ls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyls/python_ls.py b/pyls/python_ls.py index 3717756d..0a11aa9b 100644 --- a/pyls/python_ls.py +++ b/pyls/python_ls.py @@ -287,7 +287,7 @@ def signature_help(self, doc_uri, position): return self._hook('pyls_signature_help', doc_uri, position=position) def folding(self, doc_uri): - return self._hook('pyls_folding_range', doc_uri) + return flatten(self._hook('pyls_folding_range', doc_uri)) def m_text_document__did_close(self, textDocument=None, **_kwargs): workspace = self._match_uri_to_workspace(textDocument['uri'])