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
int main()
{
#ifdef foo
text should appear gray here
#endif
}
Select the entire main method and start typing something else.
Bug: The new code is gray even though the lines are deleted. VS code appears to not handle the case where decorations are set on lines but the lines are removed. Our code eventually sends new text decorations but it takes a while to process.
The text was updated successfully, but these errors were encountered:
You can control the behaviour of a text editor decoration via DecorationRenderOptions.rangeBehavior when creating it, which describes how the decoration should grow when inserting text at the edges of the decoration.
To be able to reproduce, can you please create a minimal code snippet which reproduces the problem for you. Like e.g. in #34004 , or in #37401
Thanks a lot for informing us about rangeBehavior. We should've probably noticed that before. Yeah, setting the setting to ClosedOpen appears to fix the issue for us exactly how we want.
Steps to Reproduce:
Bug: The new code is gray even though the lines are deleted. VS code appears to not handle the case where decorations are set on lines but the lines are removed. Our code eventually sends new text decorations but it takes a while to process.
The text was updated successfully, but these errors were encountered: