Skip to content

Commit 7d7f6a4

Browse files
authored
PR: Flatten folding regions (#893)
1 parent ec7b0ca commit 7d7f6a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyls/python_ls.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def signature_help(self, doc_uri, position):
287287
return self._hook('pyls_signature_help', doc_uri, position=position)
288288

289289
def folding(self, doc_uri):
290-
return self._hook('pyls_folding_range', doc_uri)
290+
return flatten(self._hook('pyls_folding_range', doc_uri))
291291

292292
def m_text_document__did_close(self, textDocument=None, **_kwargs):
293293
workspace = self._match_uri_to_workspace(textDocument['uri'])

0 commit comments

Comments
 (0)