DSC icon indicating copy to clipboard operation
DSC copied to clipboard

fix: Check Type instance has DscResource attribute

Open haodeon opened this issue 8 months ago • 1 comments

PR Summary

PR #797 introduced a workaround to detect if DSC resources were ClassBased. This PR adds an additional validation by checking the instance has the DscResource attribute.

PR Context

The workaround incorrectly sets ImplementationDetail to ClassBased when there is another type with the same name, like TimeZone or Environment.

haodeon avatar May 14 '25 15:05 haodeon

Nice catch @haodeon!

Gijsreyn avatar May 14 '25 17:05 Gijsreyn