This is a problem that happens consistently.
If I say “Don’t show me any code blocks” of some other sentence with same meaning, Chat can’t see attached code (Ctrl + Shift + L) anymore but If I select code starting from second line chat can see attached code block.I mentioned this to chat and response was: If you notice I can’t see the code, remind me with a phrase like: “Ensure you can see the shared code while not displaying new code blocks.” If I notice problem soon enough this works otherwise, when I notice it too late it won’t work. Also If i create a new script file after encountering this problem there are no issues.
For anyone encountering same problem leave your first line of code empty, when you want to share your whole code click on second line and use Ctrl + Shift + End to select rest of the code.