atom-community / atom-community/ide-python

Improper folding in outline view

Open
#108 3 comments 1 reaction 0 assignees View on GitHub
pyls upstream issue
Dominant language
JavaScript
Stars
238
Forks
40
PR merge metrics
No merged PRs in 30d

Description

I'm having some issues with the folding of functions/symbols in the outline view.

This appears to be triggered when I have lines of code that are too long and split into multiple lines. Variables that appear after this in a function do not get folded into the function in the outline view, and are instead given a new line.

![screen shot 2018-05-10 at 3 29 45 pm](https://user-images.githubusercontent.com/1795161/39897436-0adeb0b6-5467-11e8-800a-d92598030c8c.png)
![screen shot 2018-05-10 at 3 29 59 pm](https://user-images.githubusercontent.com/1795161/39897444-0e5940ee-5467-11e8-8773-104afe60b785.png)

Contributor guide

Open the contributing guide

Research direction

The issue concerns folding functions and symbols in Atom's outline view when a long statement spans multiple lines. Start by reproducing the reported case and inspect how the outline view places variables that follow the split statement; done means those variables remain nested under their function rather than appearing as separate outline entries.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, python
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.