TimeoutError: Can't connect to debugger

Hi, I’m new to Robot. I have managed to set up my VSCode but everytime I run a test I get this warning:

TimeoutError: Can’t connect to debugger

Once I cancel that message, and run the test again, I have no errors and everything works fine. Any ideas why I only get this warning the first time? Its really annoying when you write a bit of script and want to see if its working. This is my launch.json file

“version”: “0.2.0”,
“configurations”: [
“name”: “RobotCode: Launch .robot file”,
“type”: “robotcode”,
“request”: “launch”,
“cwd”: “${workspaceFolder}”,
“target”: “${file}”