When browsing the Needle project, under the src/scripts folder in Windows 11 File Explorer, the file explorer would hang while opening the folder and slowly refresh each .ts file in the folder.
I realised this was because windows thinks the .ts files are video files and has to change the thumbnails for each, and repeats this any time we open the folder again.
I found this article on why it happens with the fix,
https://www.tumblr.com/wizcorp/176015676507/fix-inside-why-windows-explorer-goes-funky-in
What worked for me is this:
- Open Regedit
- Navigate to Computer\HKEY_CLASSES_ROOT\.ts
- Double click on the PerceivedType key and replace video by text
- Replace the Content type and the (Default) keys to read text/plain and txtfile respectively
See screenshot attached for reference, is there some other way to tell Windows the script files are not video files when they are created? Just thinking I will do this on all machines I use Needle on
by user 103054507105067008