# Extension shadow is broken for any\[\] parameter type

**URL:** https://forum.makecode.com/t/extension-shadow-is-broken-for-any-parameter-type/28650
**Category:** Help
**Created:** [May 8, 2024, 5:28pm UTC](https://forum.makecode.com/t/extension-shadow-is-broken-for-any-parameter-type/28650 "2024-05-08T17:28:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)
#### Post date: [May 8, 2024, 5:28pm UTC](https://forum.makecode.com/t/extension-shadow-is-broken-for-any-parameter-type/28650/1 "2024-05-08T17:28:19Z")

</div>

Using variable\_get shadow in extensions for the `any[]` defaults to “item” instead of user defined name. This is kind of inconvenient for making extension. @richard is this a known issue? Filed bug in detail here:

> <https://github.com/microsoft/pxt-arcade/issues/6414>
>
> \*\*Describe the bug\*\*
> When setting a default value for the \`variables\_get\` shado…w for a parameter of type \`any\[\]\`, the variable name is set to item instead of the default value set by the user. This syntax works for other datatypes
> 
> \*\*To Reproduce\*\*
> Steps to reproduce the behavior:
> 1. Create a project with and link it to a GitHub repository
> 2. Add the following code: 
> \`\`\`
> //% block="test"
> namespace test {
> //% block="test $array"
> //% array.shadow=variables\_get
> //% array.defl=list
> export function test(array: any\[\]) {
> 
> }
> }
> 3. Test the extension
> 4. The block present in the \`test\` drawer is "test \[item\]"
> \`\`\`
> 
> \*\*Expected behavior\*\*
> The parameter in the block drawer is supposed to be named list.
> 
> \*\*Screenshots\*\*
> !\[image\](https://github.com/microsoft/pxt-arcade/assets/63020240/b75fc3ea-8fa5-49a4-98da-bf4035f4430b)
> !\[image\](https://github.com/microsoft/pxt-arcade/assets/63020240/c39722c6-2fa0-41f0-8348-b9712ace5991)
> 
> \*\*Desktop (please complete the following information):\*\*
> - OS: Windows 10 Home
> - Browser: Chrome (64x)
> - Version: 124.0.6367.119

---

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [May 8, 2024, 5:28pm UTC](https://forum.makecode.com/t/extension-shadow-is-broken-for-any-parameter-type/28650/2 "2024-05-08T17:28:47Z")

</div>

yeah, ran into this on stream a little while back. i don’t know if it was filed though

---

<div class="post-metadata">

### Author: ![Atomicbluebery8](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/atomicbluebery8/32/15062_2.png) [@Atomicbluebery8](https://forum.makecode.com/u/Atomicbluebery8)
#### Post date: [May 9, 2024, 2:25pm UTC](https://forum.makecode.com/t/extension-shadow-is-broken-for-any-parameter-type/28650/3 "2024-05-09T14:25:09Z")

</div>

i am in the presence of GODS
