Skip to content

Commit

Permalink
PR: Flatten folding regions (#893)
Browse files Browse the repository at this point in the history
  • Loading branch information
andfoy committed Dec 11, 2020
1 parent ec7b0ca commit 7d7f6a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyls/python_ls.py
Expand Up @@ -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'])
Expand Down

0 comments on commit 7d7f6a4

Please sign in to comment.