-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add formatting option for ignoring multiline statements #62
Comments
Hi @rcjsuen, thanks a lot for working on this project! Are there any plans on fixing this issue? I don't know if it'd be easier to implement, but to me it looks even better if ampersands
So, essentially you just need to indent the lines not starting with |
@tagirb The desire is there but I haven't really acted on it due to microsoft/language-server-protocol#567 which makes the experience of toggling this cumbersome for some LSP clients. I suppose I could always implement it and then improve on it later so that there's at least a temporary stopgap.
This suggestion would probably work better as a separate enhancement request. Most shells work with |
I know this has taken a long time to get addressed but clients can now ignore multiline instructions when calling the API. I've opened #88 to add a flag to the CLI to support this. |
@rcjsuen how do we ignore it? got here from this thread btw microsoft/vscode-docker#2004 |
@diegocars Thanks for reaching out and bringing this to my attention. This isn't possible in the extension at the moment but it can be with a fix. I'll take a look. |
@diegocars I've opened microsoft/vscode-docker#2976 to enable support for this option in the VS Code extension. |
RUN apt-get update -y && \ apt-get install -y curl && \ git \ make
For some instructions where the
RUN
has multiple "layers" like the above, users may not want it to be reformatted back to the following.RUN apt-get update -y && \ apt-get install -y curl && \ git \ make
The text was updated successfully, but these errors were encountered: