It would be great to have snippets of code that can be copied rather than screenshots of code.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
It's worth noting the screenshots (I'm pretty sure) are also wrong in the pathSegment case. This barrier greatly ups the cost of fixing the documentation. If it weren't for the screenshots (diff theme, matching prefs, etc.) I'd submit a PR instead of this comment :)
The pathSegment is missing the actual rule to apply, it has:
"dependentFileProviders": {
"add": {
"pathSegment": {}
}
}
when you really need a rule, like this:
"dependentFileProviders": {
"add": {
"pathSegment": {
"add": {
"ExtensionMethods.*": [ ".cs" ]
}
}
}
}
I hit he same thing as another user and had to find how to make it work a bit haphazardly: https://stackoverflow.com/a/55145320/13249. Alternatively, it's magic in ways neither of us understand that should probably be better documented.
@AngelosP Can you take a look at this feedback?
@AngelosP please note from my comment above - the example in one screenshot was also wrong :) The conversion is much appreciated!
Oops, I'm sorry @NickCraver I missed your fix in my original PR. I've updated it as per your feedback https://github.com/MicrosoftDocs/visualstudio-docs/pull/3929. Thank you!