Neat! I was looking for Typescript autocomplete for .env as well :)
One minor adjustment to this would be replacing envProdLine.includes("#") with envProdLine.startsWith("#"). Comment lines start with # so it only makes sense to use startsWith(). Otherwise it'd break (say undefined ) for any values that have # in it.
Neat! I was looking for Typescript autocomplete for .env as well :)
One minor adjustment to this would be replacing
envProdLine.includes("#")withenvProdLine.startsWith("#"). Comment lines start with#so it only makes sense to usestartsWith(). Otherwise it'd break (sayundefined) for any values that have#in it.