tgjones / HlslTools

A Visual Studio extension that provides enhanced support for editing High Level Shading Language (HLSL) files
http://timjones.io/blog/archive/2016/04/25/hlsl-tools-for-visual-studio-v1.0-released
Other
561 stars 97 forks source link

Fix for Issue #213 - Unreal style Virtual directory mappings fix #215

Closed KStocky closed 2 years ago

KStocky commented 2 years ago

This change includes a fix for issue #213. The issue with the initial implementation was the config was loaded with the unaltered virtual path with "/", but in the include handler, the include was changed to use "\" and so the mapping could never be made. Additionally, the initial implementation only supported single directory virtual mappings so a virtual mapping of /Project/Particles would not have worked. I have fixed this issue as well.

I have also added in a number of tests for the virtual include handling and fixed up the old one that was there.

tgjones commented 2 years ago

Thank you so much - this is a great contribution!