godotengine / godot-proposals

Godot Improvement Proposals (GIPs)
MIT License
1.1k stars 69 forks source link

Make the remote inspector remember property folding state across breakpoints #2810

Open NO-MEANINGS opened 3 years ago

NO-MEANINGS commented 3 years ago

Describe the project you are working on

a simple platformer demo for learning godot

Describe the problem or limitation you are having in your project

When running codes line by line, the inspector updates every time you press f11 / f10, which also makes all arrays and dictionaries collapsed. Then you have to expand them again. It can be really annoying if we need to expand the arrays and dictionaries every line.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

If the inspector can remember the expanding status of arrays and dictionaries we won't have to expand them every line.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

See #499. The idea for implementing them should be the same, may be?

If this enhancement will not be used often, can it be worked around with a few lines of script?

It will be frequently used.

Is there a reason why this should be core and not an add-on in the asset library?

I think this should be the default or at least a option built-in. Also, the issue #499 is similar in some ways. If that should be implemented by the editor but not an add-on, so is this.

YuriSizov commented 3 years ago

See #499. The idea for implementing them should be the same, may be?

It's a bit related, but in your case it's more of a bug. The cause is the same: the collapsed state (or any other states that controls there may have) is not stored between Inspector updates, and in Remote mode Inspector updates all the time.