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
It is due to a bug in the function find_unbalanced_bracket:
languageserver:::find_unbalanced_bracket("if (sum())", 0, 7)
[[1]]
[1] 0 7
[[2]]
[1] "("
# it finds a wrong `(` when there is a leading brace `}`
languageserver:::find_unbalanced_bracket("} if (sum())", 0, 9)
[[1]]
[1] 0 5
[[2]]
[1] "("
Consider the following code:
In the
if (sum())
branch, the signature help ofsum()
works while it does not work in theelse if (sum())
branch when I typesum(
.The text was updated successfully, but these errors were encountered: