You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The definition of alpine on the first line should not cause the editor to focus on the alpine stage name on the second line as the two are not the same given that the declaration of the shadowed name comes after the original image name.
FROM alpine
FROM scratch AS alpine
constlib=require("dockerfile-language-service");constservice=lib.DockerfileLanguageServiceFactory.createLanguageService();constdocument=`FROM alpineFROM scratch AS alpine`;console.log(service.computeDefinition({uri: "file:///tmp/Dockerfile"},document,{line: 0,character: 8}));
rcjsuen
changed the title
Stage name shadowing an image that was previously is not a valid definition location
Stage name shadowing an image that was previously used is not a valid definition location for the original line
Aug 3, 2024
The definition of
alpine
on the first line should not cause the editor to focus on thealpine
stage name on the second line as the two are not the same given that the declaration of the shadowed name comes after the original image name.The text was updated successfully, but these errors were encountered: