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
//paste this code ( GO ), code folding stops working for all code after it.
func recursiveSum(array []int) int {
return sumRecursive(array, 0, len(array)-1) //no space before and after -
}
//code folding starts to work if re-written as [ notice the space after len(array) ]
func recursiveSum(array []int) int {
return sumRecursive(array, 0, len(array) - 1 ) //space after -
}
The text was updated successfully, but these errors were encountered:
I think it'll be an often inconvenience for developers. A common example is to disregard indentation when specifying an inline html template in a javascript file. Here is an example from angular app::
export functioncomponentDirective(): ng.IDirective{return{template: `<div> <p>There's going to be a lot of html here and having its indentation start from the beginning is helpful in this case</p></div>`,scope: true,controllerAs: '$ctrl',bindToController: true,controller: componentController}}
Steps to Reproduce:
//paste this code ( GO ), code folding stops working for all code after it.
func recursiveSum(array []int) int {
return sumRecursive(array, 0, len(array)-1) //no space before and after -
}
//code folding starts to work if re-written as [ notice the space after len(array) ]
func recursiveSum(array []int) int {
return sumRecursive(array, 0, len(array) - 1 ) //space after -
}
The text was updated successfully, but these errors were encountered: