Open jnm2 opened 4 years ago
cc @genlu
related to #39909, possibly a dup
Just to clarify, this is a case where intellisense should not alter the using directives or I'd have to fix it and it might be easier not to use the override completion helper.
This is caused by Code Generator doesn't take the context into account when generate/add new member, the completion item shows the correct alias because symbol display visitor support this when IsMinimizing is true. I think the proper fix would be adding an option to code generator to support "minimizing" as well. Thoughts @CyrusNajmabadi?
I think the proper fix would be adding an option to code generator to support "minimizing" as well. Thoughts @CyrusNajmabadi?
It should already work this way. We'll need to debug through to find out why that isn't working.
@CyrusNajmabadi I assume you were trying to quote my comment above?
@genlu Yes :) bad cliipboard copy/paste. :)
Version Used: VS 16.5-p5
With
using CS = Microsoft.CodeAnalysis.CSharp.Syntax;
, intellisense shows the correct syntax while offering to generate this overload:When the intellisense entry is used, it produces invalid code instead of generating what was previously shown: