Launching flatpak browser from vscode

When launching a browser debug session from vscode the following error message was displayed:

Unable to find edge version *. Available auto-discovered versions are: . You can set the “runtimeExecutable” in your launch.json to one of these, or provide an absolute path to the browser

I was able to work around the issue by setting environment variables to point to flatpak launchers for the browsers. I added the following to /etc/profile.d/

# Set environment variables for the vscode debugger to find flatpak installations of browsers
# Set linuxChrome.ts, linuxEdge.ts and linuxFirefox.ts at 
# to see how these 
# environment variables are used by vscode to locate browsers.
export EDGE_PATH=/var/lib/flatpak/exports/bin/
export CHROME_PATH=/var/lib/flatpak/exports/bin/
export FIREFOX_PATH=/var/lib/flatpak/export/bin/org.mozilla.firefox

Is this an appropriate way to help vscode find the flatpak browsers or is there a more bluefin-centric method?