Repository navigation
VS Code extension 0.1.0
·
247 commits
to main
since this release
Added
- Published to the Visual Studio Marketplace and Open VSX as
itda.django-wireview, with an icon. - The README, the Marketplace and Open VSX page, is in English; the Korean text is
README.ko.md. - The
django-htmllanguage: a TextMate grammar over HTML for{% %},{{ }}and{# #}
(in text, attribute values and scripts), comment toggling, auto-closing of{%and{#,
block-tag indentation, and**/templates/**/*.htmlassociated with it. Once the metadata is
read, an.htmlfile in any directory the project's template engine searches is switched to it
too (wireview.associateTemplateDirs), unlessfiles.associationsnames ithtmlor the user
switched it back. - HTML support in
django-htmlfiles fromvscode-html-languageservice: tag and attribute
completion (with thewire-*attributes), hover, closing tags as>and/are typed, folding,
linked editing. Emmet is on for the language. - Completion, hover and go to definition for Django's tags and filters and for django-wireview's
components, arguments, events, modifiers, handlers, slots, hooks and variables, all read from the
project throughmanage.py wireview_lsp; template paths in{% extends %},{% include %}and
Python strings are links. - Diagnostics for what Django or django-wireview would raise: unknown components, handlers, tags,
filters and libraries, tags and filters not loaded, missing ids, arguments and slots, invalid
events and modifiers, unclosed blocks, templates not found. - Snippets for templates and for Python.
- The metadata runs again when a Python file is saved; the last metadata that worked is kept when a
run fails. Commands: Refresh Project Metadata, Go to Component, Show Output. - A run that is no longer wanted (the folder closed, the metadata source changed) or that takes
longer than 120 seconds is stopped with the processes it started, within the limits below. On
macOS and Linux the command runs under a small/bin/shsupervisor that leads a process group of
its own; the group gets SIGTERM, then SIGKILL two seconds later. The supervisor stays until that
SIGKILL, so a process awireview.metadataCommandwrapper such asuv runleft in the group is
killed even when the wrapper died on the SIGTERM. It keeps itself there with shell builtins, not
with a program found on the user's PATH, and runs the command in the foreground, so the command
starts with SIGINT and SIGQUIT as they were. Signals are sent only while Node has not
reported the supervisor's exit. A process that moved to a group of its own is out of reach. On
Windowstaskkill /T /Fends the tree, which no longer reaches what an exited process started.
The run itself is over as soon as it is stopped, so the next one is not held up. - Restricted Mode: in an untrusted workspace nothing runs and no metadata file is read, not the
last session's either; the grammar, the snippets and the HTML support work. Trusting the
workspace starts the metadata. - Metadata 2.0 (#162), which describes the framework's methods once at the top instead of on every
component, is read as 1.1 was: the inherited methods are put back on each component when the
metadata is loaded, so a framework name in{% on %}is still "not a handler", with its hover
and its definition. 1.1 is read as before. Metadata of a later major asks for a newer extension.