danielscherzer / GLSL

VSIX Project that provides GLSL language integration.
257 stars 28 forks source link

Fix bug where `//?` comments are converted to code in `#include`'d files. #49

Closed efirdc closed 4 years ago

efirdc commented 4 years ago

Hello,

I just noticed I created this bug in my previous pull request for including files recursively. Since ExpandedCode() is called on every included file, it would always expand the //? comments. I added a check so that //? comments are expanded only when the HashSet includedFiles is empty. Which should only be the case for the root rile. Sorry for overlooking this!

danielscherzer commented 4 years ago

Thanks!