Bug 21877 – VS2019 crash with "Show parameter storage class at call site"
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
visuald
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2021-04-29T10:38:56Z
Last change time
2021-11-29T08:37:38Z
Assigned to
No Owner
Creator
Blatnik
Comments
Comment #0 by blatblatnik — 2021-04-29T10:38:56Z
When "Show parameter storage class at call site", deleting more than 1 line of code where the storage class is shown will crash visual studio.
This makes the feature almost unusable. The crash happens very frequently in code that uses it, and it's taxing to think about the possibility of crashes every time I delete a block of code.
Steps to reproduce:
Visual studio version: 16.9.4
Visuald version: 1.1.1
Start a new project (or open any old D project). Make sure "Show parameter storage class at call site" is enabled in the settings. Then add the following function anywhere in the code.
void crash()
{
void foo(ref int bar);
int bar;
foo(bar);
foo(bar);
}
Now wait for the little "ref" to appear in the calls to foo. Then select both lines calling foo, and delete them.