Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Code Editor/Code Folding    [ Add a report in this area ]  
Report #:  27287   Status: Reported
Problem with restoration of the region folding after IDE loading
Project:  Delphi Build #:   10.0.2166.2837
Version:    10.0 Submitted By:   Dimitry Timokhov
Report Type:  Minor failure / Design problem Date Reported:  4/12/2006 3:24:59 PM
Severity:    Serious / Highly visible problem Last Updated: 4/12/2006 3:26:05 PM
Platform:    All versions Internal Tracking #:  
Resolution: None  Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
When I have two regions in class declaration (interface part) I can fold one or both of them.

If I close project, NOT leave IDE and open project again then I'll see correct regions folding - region that I folded before project was closed is folded, region that I did not folded before project was close is not folded.

But if:
1. I fold one of region
2. leave IDE
3. start IDE
4. open project

I'll see that all regions are folded.
Steps to Reproduce:
1. Type this unit

unit UnitWithRegionError;
interface
type
   TClassWithRegionError = class
      {$REGION 'TAc'}
      public type TAc = (a01);
      {$ENDREGION}
      {$REGION 'TBc'}
      public type TBc = (b01);
      {$ENDREGION}
   end;
implementation
end.

2. Fold region named TAc.

3. Leave the IDE.

4. Start the IDE.

5. Open project with unit.

6.
Exp: only region named TAc is folded.
Act: both regions are folded.
Workarounds
None
Attachment
UnitWithRegionError.zip
Comments

None

Server Response from: ETNACODE01