Skip to content
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 support for textDocument/onTypeFormatting #130

Closed
rcjsuen opened this issue Aug 5, 2017 · 0 comments
Closed

Add support for textDocument/onTypeFormatting #130

rcjsuen opened this issue Aug 5, 2017 · 0 comments
Assignees

Comments

@rcjsuen
Copy link
Owner

rcjsuen commented Aug 5, 2017

We should add support for the textDocument/onTypeFormatting request.

If the user enters a \ or a ` and it is the escape character for the Dockerfile, the subsequent line should be formatted if necessary.

FROM busybox
EXPOSE 8080
8081

In the example above, if the user places a backslash at the end of the second line, the following line's 8081 should be indented.

#escape=`
FROM busybox
EXPOSE 8080
8081

In this second example above, placing a backslash on the third line will not cause a formatting request to be processed because the backslash is not the escape character. However, if the backtick is entered then the following line should be formatted.

@rcjsuen rcjsuen self-assigned this Aug 5, 2017
@rcjsuen rcjsuen closed this as completed in 34b6d18 Aug 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant