aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_completion/src/completions/attribute/cfg.rs
Commit message (Collapse)AuthorAgeFilesLines
* Move features into potential_cfg_optionsJamie Cunliffe2021-06-211-16/+2
|
* Improve completion of cfg attributesJamie Cunliffe2021-06-211-0/+126
The completion of cfg will look at the enabled cfg keys when performing completion. It will also look crate features when completing a feature cfg option. A fixed list of known values for some cfg options are provided. For unknown keys it will look at the enabled values for that cfg key, which means that completion will only show enabled options for those.