Set an environment variable MY_VARIABLE
to be used by RF-LS.
Then create a robot script:
*** Settings ***
Library OperatingSystem
*** Test Cases ***
Show env var
Environment Variable Should Be Set MY_VARIABLE
Then run it, and it fails, claiming the variable is not set.
I set the variable by going to Extensions → Robot Framework Language Server → (small gear icon) → Settings. Then in the search write “Env” and click “Edit in settings.js”.
Then add this snippet:
"robot.python.env": {
"MY_VARIABLE": "is set for sure"
},