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

Support multiple directives when calculating symbols #65

Closed
rcjsuen opened this issue Mar 27, 2020 · 0 comments
Closed

Support multiple directives when calculating symbols #65

rcjsuen opened this issue Mar 27, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@rcjsuen
Copy link
Owner

rcjsuen commented Mar 27, 2020

let dockerfileLanguageService = require("dockerfile-language-service");
let service = dockerfileLanguageService.DockerfileLanguageServiceFactory.createLanguageService();
let symbols = service.computeSymbols(
  {
    "uri": "file:///tmp/Dockerfile"
  },
  "#escape=`\n#syntax=docker/dockerfile"
);
console.log(symbols.length);
1

2 should be printed as there are two directives.

@rcjsuen rcjsuen added the enhancement New feature or request label Mar 27, 2020
@rcjsuen rcjsuen self-assigned this Mar 27, 2020
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