# Editing the Typescript explorer

**URL:** <https://forum.makecode.com/t/editing-the-typescript-explorer/4224>\
**Category:** Help\
**Created:** [November 1, 2020, 5:11pm UTC](https://forum.makecode.com/t/editing-the-typescript-explorer/4224 "2020-11-01T17:11:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GameGod](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gamegod/32/2756_2.png) [@GameGod](https://forum.makecode.com/u/GameGod)\
**Post date:** [November 1, 2020, 5:11pm UTC](https://forum.makecode.com/t/editing-the-typescript-explorer/4224/1 "2020-11-01T17:11:05Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/d/dbd412dfda901de5f8b42421ebe8fd720b494eb2.png)  
Is there a way to edit this code? There is a “locked” icon on the side of it. I am fine with using Typescript, but how can I unlock it?

Also, where is the “`ask string`” code? I can’t find it.

You dit it here:

> [@Bra bra bra braaah ending](https://forum.makecode.com/t/bra-bra-bra-braaah-ending/2179):
>
> II love it but we all have the same endings for our games is there a a way to change the sawtooth or change ending melody? Thanks! otorp

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/2/2ed8e6f08c2fcd76f515650dae257a8e9de9c7eb.png)

---

<div class="post-metadata">

**Author:** ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)\
**Post date:** [November 1, 2020, 7:42pm UTC](https://forum.makecode.com/t/editing-the-typescript-explorer/4224/2 "2020-11-01T19:42:23Z")

</div>

The files that have a locked icon are not editable in the project. This will show up in several difference circumstances - in this case, the file is one of our builtin files, so there’s no way to edit it in the browser – it’s part of the code we change when we update the editor.

In the link you sent, I didn’t edit any of the library code – there was already an exposed hook I added a while back to allow for the sound to be changed. In that case, the `winSound` was configurable with a function `game.setGameOverSound(false, music.powerDown)` that would modify the variable – this is similar to how you register an event with `sprites.onOverlap` to add behavior for when two sprites are on top of eachother.

---

<div class="post-metadata">

**Author:** ![GameGod](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gamegod/32/2756_2.png) [@GameGod](https://forum.makecode.com/u/GameGod)\
**Post date:** [November 1, 2020, 9:03pm UTC](https://forum.makecode.com/t/editing-the-typescript-explorer/4224/3 "2020-11-01T21:03:43Z")

</div>

> [@GameGod](#):
>
> Also, where is the “ `ask string` ” code? I can’t find it.

What about this?

---

<div class="post-metadata">

**Author:** ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)\
**Post date:** [November 1, 2020, 10:08pm UTC](https://forum.makecode.com/t/editing-the-typescript-explorer/4224/4 "2020-11-01T22:08:55Z")

</div>

Oh, it’s under `prompt.ts` in the `game` package
