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

How to declare context for LSP? #31

Open
schiegl opened this issue Oct 28, 2024 · 1 comment
Open

How to declare context for LSP? #31

schiegl opened this issue Oct 28, 2024 · 1 comment

Comments

@schiegl
Copy link

schiegl commented Oct 28, 2024

What are ways to tell the LSP about the context of the current template? For example, when rendering a template I'm passing a list that is iterated in the jinja for loop. At the moment all the variables I'm referencing are "undefined", since the LSP doesn't know which context I will render the template with.

@uros-5
Copy link
Owner

uros-5 commented Nov 8, 2024

I haven't implemented goto reference, maybe that could help with context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants