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

Image tag completion inserts extraneous text #39

Closed rcjsuen closed 6 years ago

rcjsuen commented 6 years ago
FROM microsoft/dotnet:2.1-s

Given the above Dockerfile, choosing to insert 2.1-sdk will cause the string to become 2.1-2.1-sdk in VS Code. This is probably because of how word boundaries are established...?

We'll need to replace the code to use a TextEdit instead of a simple label.

https://github.com/rcjsuen/dockerfile-language-service/blob/33f89f422b0a2f047e3b2c9ce3ba53b4714963ea/src/dockerAssist.ts#L357-L361