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

Add definition support for heredocs #122

Closed
rcjsuen opened this issue Sep 17, 2023 · 0 comments
Closed

Add definition support for heredocs #122

rcjsuen opened this issue Sep 17, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@rcjsuen
Copy link
Owner

rcjsuen commented Sep 17, 2023

We should be able to go from the delimiter back to the declaration.

FROM alpine
RUN echo <<file
abc
file
const lib = require("dockerfile-language-service");
const service = lib.DockerfileLanguageServiceFactory.createLanguageService();
const definition = service.computeDefinition({ uri: "uri://Dockerfile" }, "FROM alpine\nRUN echo <<file\nabc\nfile", { line: 3, character: 2 });
console.log(definition);
null
@rcjsuen rcjsuen added the enhancement New feature or request label Sep 17, 2023
@rcjsuen rcjsuen self-assigned this Sep 17, 2023
rcjsuen added a commit that referenced this issue Sep 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant