дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-29 22:02:59 +02:00
django-html declared a debugpy [debugger], and find_config takes the first language declaring an adapter, so a user's languages/python.toml debugger override no longer applied. The block is gone; breakpoint placement accepts Django Templates by language instead. django: true came only from manage.py / -m django / django-admin, so template breakpoints never stopped under uvicorn, gunicorn, daphne or pytest-django, and the templates/*.html rule sent jinja: true for them. At debug start each file with an enabled breakpoint (other than .py) is asked for its language with the editor's detection: a Django Template turns on django, other templates turn on jinja. Disabled breakpoints no longer turn either on, and templates/*.txt and *.xml accept breakpoints. Co-authored-by: wildcatDownstairs <[email protected]>
33 рядки
1.1 KiB
TOML
33 рядки
1.1 KiB
TOML
id = "django-html"
|
|
name = "Django Template"
|
|
extensions = ["djhtml"]
|
|
block-comment = ["{#", "#}"]
|
|
indent = { tab-size = 2, insert-spaces = true }
|
|
ui-mode = "Django Template"
|
|
tree-sitter = "html"
|
|
|
|
# Django projects: the HTML and text files in a `templates` folder.
|
|
[[framework-files]]
|
|
folder = "templates"
|
|
extensions = ["html", "txt"]
|
|
root-markers = ["manage.py"]
|
|
|
|
# The markup between the template tags: completion and hover of tags and
|
|
# attributes. The template tags are text to it. No formatter: HTML formatters
|
|
# reflow template tags.
|
|
[[language-servers]]
|
|
name = "vscode-html-language-server"
|
|
command = "vscode-html-language-server"
|
|
args = ["--stdio"]
|
|
initialization-options = { embeddedLanguages = { css = true, javascript = true } }
|
|
install-hint = "npm i -g vscode-langservers-extracted"
|
|
|
|
# Template tags, filters, template names and URL names of the project: completion,
|
|
# hover and go to definition. It reads them by running Django with the project
|
|
# interpreter.
|
|
[[language-servers]]
|
|
name = "djlsp"
|
|
command = "djlsp"
|
|
root-markers = ["manage.py"]
|
|
install-hint = "uv tool install django-template-lsp (or: pip install django-template-lsp)"
|