19 Commits
Author SHA1 Message Date
Pavel Karateev 85c6eee402 PY-75714 Fold single line match case clauses
Merge-request: IJ-MR-144163
Merged-by: Pavel Karateev <Pavel.Karateev@jetbrains.com>

GitOrigin-RevId: 352d1111988371b6edd9fa1af71b345dbb7aee38
2024-10-02 15:01:14 +00:00
Mikhail Golubev c685dbd6aa PY-49174 Add a missing test counterpart for Jupyter, remove redundant indent in test data
GitOrigin-RevId: f8975cc051cdeff7d0708e3031e9f64e8e175a06
2024-08-26 10:38:00 +00:00
somethingnew179 2bf033e420 PY-49174 make Match and Case expressions folding
GitOrigin-RevId: c9b1b37a762ec0879eb2b7653ae14b34ae97dfc0
2024-08-26 10:38:00 +00:00
Mikhail Khorkov d34338e85d PY-39406 Make multiline string with prefix be folded with the prefix
GitOrigin-RevId: e1fa6861d85916a0862fefc7342a34d3b0905281
2021-01-17 14:10:47 +00:00
Mikhail Khorkov 5b224d630e PY-19425 Fix collapse/expand docstring action
Fix Collapse/Expand docstring menu action for Python files.

GitOrigin-RevId: afab71575bbb6fdc8e160138e9b4c3387ff0ad88
2020-02-05 11:32:10 +00:00
Mikhail Golubev 180ba23034 PY-31154 Don't build folding regions for empty statement lists
Because such empty PSI elements lead to cryptic problems related to
broken invalidation of regions in the editor. Besides, it just doesn't
make much sense to offer folding for them in the first place.
2018-10-11 18:52:32 +03:00
Mikhail Golubev be3e4ba742 PY-17017 Add a test on actual custom folding of such trailing blocks 2017-10-02 15:20:24 +03:00
liana.bakradze 3a4c1d4575 PY-18928 fix multiline comments folding to handle custom folding regions correctly 2016-03-25 19:29:53 +03:00
Liana Bakradze 6147fb39c5 changed the policy of defining long blocks 2015-11-27 12:30:11 +03:00
Liana Bakradze e0e34283a3 PY-16724 Multiline comments folding 2015-11-27 12:30:10 +03:00
Liana Bakradze 9d3ee02fd8 PY-12356 Support folding of multi-line dict/list/etc. literals 2015-11-27 12:30:09 +03:00
Liana Bakradze 0e28b40135 removed invalid symbol in testdata 2015-11-27 12:30:08 +03:00
Liana Bakradze 9a15bf3b54 PY-5558 Provide folding for if/while and other code blocks 2015-11-27 12:30:06 +03:00
Dmitry Jemerov 6bb86279d1 optimize imports sorts them according to PEP-8 (PY-2367) 2012-10-02 20:04:45 +02:00
Dmitry Jemerov b5f3c01804 fix case (2) 2012-02-14 20:17:28 +01:00
Dmitry Jemerov 12911d7cde fix case (1) 2012-02-14 20:17:27 +01:00
Rustam.Vishnyakov 0ce203caac Python custom folding enabled 2012-02-03 13:28:17 +04:00
Dmitry Jemerov 2edd245dda implement folding for docstrings and "collapse by default | method bodies" option (PY-2068) 2011-07-05 16:17:34 +02:00
Dmitry Jemerov 5ef49c4eab don't include whitespace after statement list in fold region (PY-2544) 2010-12-19 15:38:42 +03:00