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

Update to the 0.0.13 release of the language server #198

Merged
merged 1 commit into from
Jan 23, 2018

Conversation

rcjsuen
Copy link
Contributor

@rcjsuen rcjsuen commented Jan 11, 2018

The documentation for the --chown flag for ADD and COPY was finally published to the Docker website so I've extracted a small blurb from the documentation and added it to the language server.

I also fixed a bug with parameter hints showing up in a comment that is embedded in a multiline instruction.

Please verify the behaviour with the following Dockerfile before and after upgrading. Thanks!

FROM scratch
# invoke Intellisense at the end,
# you should see documentation for the --chown flag
ADD --cho
COPY --cho
# you should see hover documentation over the chown flag
ADD --chown=root . .
COPY --chown=root . .
ENV a=b \
# pressing space in the next line's comment should not show parameter hints
# 
c=d

This fixes a bug with parameter hints and ARG variables in addition
to adding documentation to ADD and COPY's --chown flag that was
introduced in Docker CE 17.09.

Signed-off-by: Remy Suen <remy.suen@gmail.com>
@rcjsuen
Copy link
Contributor Author

rcjsuen commented Jan 19, 2018

Here's a new Dockerfile to test the changes. I published a new release of the language server to include a fix for the bug mentioned mentioned here.

FROM scratch
ARG ZOO_PORT
# $ZOO_PORT shouldn't be flagged as an error
EXPOSE $ZOO_PORT
# invoke Intellisense at the end,
# you should see documentation for the --chown flag
ADD --cho
COPY --cho
arg port
# you should see hover documentation over the chown flag
ADD --chown=root . .
COPY --chown=root . .
ENV a=b \
# pressing space in the next line's comment should not show parameter hints
# 

@rcjsuen rcjsuen changed the title Update to the 0.0.12 release of the language server Update to the 0.0.13 release of the language server Jan 19, 2018
@chrisdias
Copy link
Member

LGTM

Copy link
Member

@chrisdias chrisdias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chrisdias chrisdias merged commit 60d6633 into microsoft:master Jan 23, 2018
@rcjsuen rcjsuen deleted the lsp-0.0.12 branch July 3, 2018 10:45
@microsoft microsoft locked and limited conversation to collaborators Oct 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants