1
Vote

VS 2012 Outlining Errors

description

Gday, I'm using VS 2012 and cpython 3.3.
I've noted that there is no code outlining (the collapsible boxes) for if statements as well as it treating for loops strangely. When you add in a for loop it looks up in the document for something to attach it to.
Otherwise love the project, and without it I would probably do all of my scripting in javascript.

Screenshot details a small case displaying the problem. Adding and removing the import causes the following result.

With import:
Image

Without import, inlining moves by 1 row
Image

Cheers

comments

Zooba wrote Mar 21 at 4:07 PM

(Made some edits to include the images (yay! Markdown!) and change 'inlining' to 'outlining'.)

We'll look into the for loop case, and currently we only add outlining for top-level for/if/while blocks. Doing it for all of them becomes a performance issue, especially on large files, and when you end up with a "+" on every other line the value is reduced.

We may come up with some heuristic that makes it feasible, but for now we're focused on resolving issues rather than adding new sources of issues :)