python-fragments 0.7__tar.gz → 0.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_fragments-0.7 → python_fragments-0.8}/PKG-INFO +1 -1
- {python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/client_message_handlers/lifecycle.py +3 -7
- {python_fragments-0.7 → python_fragments-0.8}/pyproject.toml +1 -1
- {python_fragments-0.7 → python_fragments-0.8}/python_fragments.egg-info/PKG-INFO +1 -1
- {python_fragments-0.7 → python_fragments-0.8}/README.md +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/fragments/__init__.py +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/fragments/ast_nodes.py +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/fragments/cli.py +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/fragments/grammar.py +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/fragments/html/__init__.py +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/fragments/html/elements.py +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/fragments/loader.py +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/__init__.py +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/based_proxy.py +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/client_message_handlers/__init__.py +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/client_message_handlers/code_actions.py +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/client_message_handlers/completion.py +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/client_message_handlers/definition.py +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/client_message_handlers/diagnostics.py +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/client_message_handlers/document_highlight.py +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/client_message_handlers/document_symbols.py +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/client_message_handlers/folding_range.py +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/client_message_handlers/hover.py +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/client_message_handlers/inlay_hints.py +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/client_message_handlers/references.py +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/client_message_handlers/rename.py +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/client_message_handlers/semantic_tokens.py +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/client_message_handlers/signature_help.py +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/file_state.py +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/message_queue.py +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/pyright_notification_handlers/__init__.py +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/pyright_notification_handlers/capability.py +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/pyright_notification_handlers/configuration.py +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/pyright_notification_handlers/diagnostics.py +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/types.py +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/fragments/source.py +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/fragments/transpiler.py +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/python_fragments.egg-info/SOURCES.txt +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/python_fragments.egg-info/dependency_links.txt +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/python_fragments.egg-info/entry_points.txt +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/python_fragments.egg-info/requires.txt +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/python_fragments.egg-info/top_level.txt +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/setup.cfg +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/tests/test_grammar.py +0 -0
- {python_fragments-0.7 → python_fragments-0.8}/tests/test_source_map.py +0 -0
{python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/client_message_handlers/lifecycle.py
RENAMED
|
@@ -27,11 +27,7 @@ def publish_parse_error_diagnostics(uri: str) -> None:
|
|
|
27
27
|
parse_error = based_proxy.PARSE_ERRORS.get(uri)
|
|
28
28
|
if parse_error is not None:
|
|
29
29
|
diagnostics.append(parse_error)
|
|
30
|
-
based_proxy.proxy().notify(
|
|
31
|
-
types.PublishDiagnosticsNotification(
|
|
32
|
-
params=types.PublishDiagnosticsParams(uri=uri, diagnostics=diagnostics)
|
|
33
|
-
)
|
|
34
|
-
)
|
|
30
|
+
based_proxy.proxy().notify(types.PublishDiagnosticsNotification(params=types.PublishDiagnosticsParams(uri=uri, diagnostics=diagnostics)))
|
|
35
31
|
|
|
36
32
|
|
|
37
33
|
@handle_from_client(types.INITIALIZE)
|
|
@@ -58,7 +54,7 @@ async def did_open(message: REQUESTS | NOTIFICATIONS) -> None:
|
|
|
58
54
|
file_state = FileState(document.text)
|
|
59
55
|
based_proxy.PARSE_ERRORS[document.uri] = None
|
|
60
56
|
FILE_STATES[document.uri] = file_state
|
|
61
|
-
document.text = file_state.transpiled
|
|
57
|
+
document.text = file_state.original if file_state.vanilla else file_state.transpiled
|
|
62
58
|
except grammar.ParsingError as error:
|
|
63
59
|
based_proxy.PARSE_ERRORS[document.uri] = _parse_error_diagnostic(document.text, error)
|
|
64
60
|
publish_parse_error_diagnostics(document.uri)
|
|
@@ -79,7 +75,7 @@ async def did_change(message: REQUESTS | NOTIFICATIONS) -> None:
|
|
|
79
75
|
file_state = FileState(text)
|
|
80
76
|
based_proxy.PARSE_ERRORS[uri] = None
|
|
81
77
|
FILE_STATES[uri] = file_state
|
|
82
|
-
notification.params.content_changes = [types.TextDocumentContentChangeWholeDocument(text=file_state.transpiled)]
|
|
78
|
+
notification.params.content_changes = [types.TextDocumentContentChangeWholeDocument(text=file_state.original if file_state.vanilla else file_state.transpiled)]
|
|
83
79
|
if had_parse_error:
|
|
84
80
|
publish_parse_error_diagnostics(uri)
|
|
85
81
|
except grammar.ParsingError as error:
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "python-fragments"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.8"
|
|
8
8
|
description = "Modern HTML template rendering in Python"
|
|
9
9
|
authors = [{ name = "The Running Algorithm", email = "services@therunningalgorithm.info" }]
|
|
10
10
|
readme = "README.md"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/client_message_handlers/__init__.py
RENAMED
|
File without changes
|
{python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/client_message_handlers/code_actions.py
RENAMED
|
File without changes
|
{python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/client_message_handlers/completion.py
RENAMED
|
File without changes
|
{python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/client_message_handlers/definition.py
RENAMED
|
File without changes
|
{python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/client_message_handlers/diagnostics.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/client_message_handlers/folding_range.py
RENAMED
|
File without changes
|
{python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/client_message_handlers/hover.py
RENAMED
|
File without changes
|
{python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/client_message_handlers/inlay_hints.py
RENAMED
|
File without changes
|
{python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/client_message_handlers/references.py
RENAMED
|
File without changes
|
{python_fragments-0.7 → python_fragments-0.8}/fragments/lsp/client_message_handlers/rename.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_fragments-0.7 → python_fragments-0.8}/python_fragments.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|