Closed Reedbeta closed 4 years ago
Now that I've merged #171, do you mind rebasing on latest master so I can see the actual diff for this one please?
Done! Thanks.
Thank you! I didn't know there was an API to get at editorconfig options like this. That's cool. At some point I'd also like to support it in the VSCode extension, but we can cross that bridge later.
This uses Visual Studio's built-in functionality for finding and parsing the .editorconfig file, by hooking up VS's IEditorOptions interface to HLSL Tools' OptionService. It mainly affects smart indent width, as tabs/spaces and newlines were apparently already working correctly through other means (I'm not sure exactly how).
This is dependent on my previous pull request #171 (and won't work properly without it).