Skip to content

Expression auto-completion doesn't work in if multi-line expressions #81

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

Open
elbrenn opened this issue Apr 3, 2023 · 2 comments
Open
Labels
bug Something isn't working

Comments

@elbrenn
Copy link
Collaborator

elbrenn commented Apr 3, 2023

Describe the bug
Expression auto-completion doesn't work in if multi-line expressions

Happens only for if where we accept expressions without expression markers.

To Reproduce
Steps to reproduce the behavior:
See screenshot below
no complete suggestions

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
Image
Extension Version
0.25.3

Additional context
Add any other context about the problem here.

@elbrenn elbrenn added the bug Something isn't working label Apr 3, 2023
@elbrenn
Copy link
Collaborator Author

elbrenn commented Apr 3, 2023

"This happens because of the transformation code that we run before auto-completion. At that point we don't know if we're in a multi-line string and therefore add : to the end of the line. That interferes with the expression auto-completion code since suddenly it'll see a stray : at the end of the line."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Triaged 📝
Development

No branches or pull requests

3 participants
@elbrenn and others