dotnet/roslyn

Recommend preprocessing symbols that have already been typed out in the document

开放

#76,469 创建于 2024年12月17日

 (5 条评论) (0 个反应) (0 位负责人)C# (4,257 个派生)batch import
Area-IDECommunityhelp wanted

仓库指标

星标
 (20,414 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Right now, typing out a preprocessing directive does not recommend any symbols aside from the standard .NET SDK ones. So if I have already typed #if SYMBOL in the document, I should be getting it recommended in expressions inside #define, #undef, #if, #elif.

The restriction for symbols within the document is only to avoid performance pitfalls, if there is no index capturing all the preprocessing symbol identifiers used in the compilation. Otherwise, it would be nice to extend this globally across the entire assembly or compilation.

贡献者指南