You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.
Thanks for making this! I'm working with Django templates and thought I'd give it a try.
It works great if I save my changes and then manually choose to format. However, if I forget to save my changes, or if I have editor.formatOnSave set to true for django-html, it overwrites my (unsaved) changes when formatting.
Looks like we're running djhtml over the saved file, rather than the vscode.TextDocument's current contents, here:
Thanks for making this! I'm working with Django templates and thought I'd give it a try.
It works great if I save my changes and then manually choose to format. However, if I forget to save my changes, or if I have
editor.formatOnSave
set totrue
fordjango-html
, it overwrites my (unsaved) changes when formatting.Looks like we're running
djhtml
over the saved file, rather than thevscode.TextDocument
's current contents, here:djhtml-vscode/src/extension.ts
Line 47 in e978c9e
Is this something you'd take a PR for?
The text was updated successfully, but these errors were encountered: