rcjsuen / dockerfile-language-service

Dockerfile language service for providing an API to create feature-rich Dockerfile editors in JavaScript.
MIT License
16 stars 2 forks source link

Suggest working directories when editing the last argument of an ADD or COPY instruction #77

Closed rcjsuen closed 3 years ago

rcjsuen commented 3 years ago

The final argument of an ADD or COPY instruction is either the name of a file or a folder. While it is not possible to deduce what folders exist on an image, we know with certainty that any directory defined by a prior WORKDIR instruction is valid. We should suggest these paths when we compute completion items.

rcjsuen commented 3 years ago

This has now been implemented. ADD and COPY instructions written in JSON form will be handled in #79.