vscode-restclient icon indicating copy to clipboard operation
vscode-restclient copied to clipboard

Walk up the directory heirarchy to find .env file

Open bmrussell opened this issue 1 year ago • 2 comments

Thanks for the great extension!

It would be very useful if the .env file could be located not just in the same folder as the .http but at level(s) above. This would allow organisation of projects like this:

.
├── .env.local
├── .env.prod
├── .env.test
├── service1
│   ├── healthcheck.http
│   ├── items
│   │   ├── create-item.http
│   │   ├── delete-items.http
│   │   ├── get-all-items.http
│   │   └── get-items.http
│   └── user
│       ├── login.http
│       ├── logout.http
│       └── register.http
└── service2

bmrussell avatar Aug 18 '23 13:08 bmrussell

Perhaps instead of walking the entire tree (because it may eventually find a .env file something else) it should only walk as far back as the workspace?

AlanHorrocks avatar Sep 11 '23 12:09 AlanHorrocks

@bmrussell REST Client NEO can help you settle it

lang2hong avatar Sep 15 '23 09:09 lang2hong