language-python
language-python copied to clipboard
toggle comment on folding procedures
Prerequisites
- [ ] Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: http://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: http://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
Selecting whole procedure (def line and body) and commenting/uncommenting it works only on unfolded source text. When folded, only def line is commented/uncommented
Steps to Reproduce
- Write any python procedure definition (def line and procedure body)
- fold it so only def line is visible
- comment it - visible line is commented out
- unfold it - all body line are still uncommented opposite situation:
- as above
- comment all proc unfolded -> all lines (def line and body) are commented out
- fold it
- uncomment folded proc -> visible def line is uncommented
- unfold it -> all body lines are still commented out
Expected behavior: Comment/uncomment act on all procedure lines if folded, not only on visible line
Actual behavior: See step to reproduce
Reproduces how often: every time
Versions
Atom : 1.26.0 Electron: 1.7.11 Chrome : 58.0.3029.110 Node : 7.9.0 language-python: 0.49.4
Ubuntu 14.04
Additional Information
None