PTVS
PTVS copied to clipboard
Django completions in html file does not work.
Environment
Actual result
Expected result
- Open the app/about.html in Django Web Project
- Typing a vertical bar '|' character after a variable brings up completions for filters including 'upper', and each one has a tooltip
- Typing opening brace and percent '{%' brings up completions for tags including 'if' and 'extends', they currently don't have tooltips
- Typing double opening brace '{{' brings up completions for variables passed in to the template (see views.py).
Django (html) completions is owned by another team. This should be transferred to that team (internal DevDiv bug)
It's possible that we accidentally removed this support after hugues left. So if there are complaints we can try bringing it back. See https://github.com/microsoft/PTVS/commits/main/Python/Product/Django.
Probably easy to add stuff back. Should do this sooner rather than later so we can see if there's more work to account for changes from the HTML LS.
This might not work. Django intellisense is hooking into the old engine. There's no good way to hook into pylance for the same thing
Readding this isn't going to be trivial.
Here's a branch indicating all the stuff that won't work: https://github.com/rchiodo/PTVS/tree/rchiodo/django_intellisense_readd
Closing as a dupe of https://github.com/microsoft/pylance-release/issues/3701