microsoft/compose-language-service

How to change environment variables to map syntax

songyang-dev opened this issue · 3 comments

Hello, when the extension auto-suggests an environment variable, it always writes them in the array form, like in the picture. I'd like to change it to write the variables in map syntax.

From this:
image

To this:

environment:
    VAR: value

Version: 1.22.1 - 30 June 2022

Transferring this to the Compose language service repo.

Is the goal just to change this one file, or do you want the autocompletion to always suggest map form instead of array form?

Is the goal just to change this one file, or do you want the auto-completion to always suggest map form instead of array form?

I'd like this to be on a project-by-project basis.

Ok. A setting would be required for this, that could be set in the workspace settings.json. I'll mark this as an enhancement.