language-python icon indicating copy to clipboard operation
language-python copied to clipboard

toggle comment on folding procedures

Open zio-pietro opened this issue 7 years ago • 0 comments

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

  1. Write any python procedure definition (def line and procedure body)
  2. fold it so only def line is visible
  3. comment it - visible line is commented out
  4. unfold it - all body line are still uncommented opposite situation:
  5. as above
  6. comment all proc unfolded -> all lines (def line and body) are commented out
  7. fold it
  8. uncomment folded proc -> visible def line is uncommented
  9. 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

zio-pietro avatar May 05 '18 19:05 zio-pietro