EnvFile icon indicating copy to clipboard operation
EnvFile copied to clipboard

Add .env file dialog should start from Run configuration working directory

Open 1oglop1 opened this issue 3 years ago • 1 comments

Hi, thanks for the amazing plugin it helps a lot. There is one slight annoyance when enabling EnvFile in a run configuration, the dialogue window to search for the .env file starts in a last used directory. I think it would be much better (if possible) to start the search in Run Configuration working directory.

Expected flow:

  1. Create Run Configuration, Set the working directory /my-run-configuration/directory/ (if not set, start at last known location)
  2. Click EnvFile

image

  1. Click Enable EnvFile
  2. Click Add +
  3. Click .env file or JSON/YAML file

image

  1. Flie browser opens in working directory /my-run-configuration/directory/

1oglop1 avatar Nov 18 '20 12:11 1oglop1

I believe I had code to request the file dialog in the project directory. If that's not the case, or if that broke - I'd welcome a PR with a fix!

ashald avatar Sep 02 '21 04:09 ashald