You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Folding of functions/if statements etc. does not work properly in certain situations
Steps to reproduce
//folding works properly
void foo(){
int a;
int b;
}
//folding works properly
void foo1(int a, int b){
int c;
int d;
}
//folding not available
void foo2(int a,
int b){
int c;
int d;
}
//folding does not work properly
void foo3(int a,
int b,
int c){
int d;
int e;
}
//same issue with if statements
//folding works properly
void foo4(){
if(true){
int a;
int b;
}
}
bool foo6(int a, int b, int c){
return(true);
}
//folding works properly
void foo7(){
if(1 == 1 ||
2 == 2 ||
3 == 3){
int a;
int b;
}
}
//folding does not work properly when condition has function
void foo5(){
if(foo6(1,
2,
3) && 5==5){
int a;
int b;
}
}
Expected behavior
Folding should fold the entire respective code block
Actual behavior
Code from above unfolded:
Code from above folded
Environment
Build: 4098
Operating system and version: Windows 10 Build 19042
The text was updated successfully, but these errors were encountered:
I would expect a folding arrow in line 641 here. If I duplicate the line below, 642, then a folding arrow appears and pressing it folds until the current 645.
Description
Folding of functions/if statements etc. does not work properly in certain situations
Steps to reproduce
Expected behavior
Folding should fold the entire respective code block
Actual behavior
Code from above unfolded:
Code from above folded
Environment
The text was updated successfully, but these errors were encountered: