Closed rcjsuen closed 2 years ago
const lib = require("dockerfile-language-service"); const service = lib.DockerfileLanguageServiceFactory.createLanguageService(); console.log(service.computeCompletionItems("RUN ", { line: 0, character: 4 }).length); console.log(service.computeCompletionItems("RUN <<eot\n", { line: 1, character: 0 }).length);
0 19
We need to support the new heredoc syntax support added in https://github.com/moby/buildkit/pull/2132. The second call is returning all the instructions as completion items when we're not actually on a new line.
We need to support the new heredoc syntax support added in https://github.com/moby/buildkit/pull/2132. The second call is returning all the instructions as completion items when we're not actually on a new line.