python-fragments 0.4__tar.gz → 0.5__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.4 → python_fragments-0.5}/PKG-INFO +1 -1
- {python_fragments-0.4 → python_fragments-0.5}/fragments/lsp/lifecycle.py +2 -14
- {python_fragments-0.4 → python_fragments-0.5}/pyproject.toml +1 -1
- {python_fragments-0.4 → python_fragments-0.5}/python_fragments.egg-info/PKG-INFO +1 -1
- {python_fragments-0.4 → python_fragments-0.5}/README.md +0 -0
- {python_fragments-0.4 → python_fragments-0.5}/fragments/__init__.py +0 -0
- {python_fragments-0.4 → python_fragments-0.5}/fragments/ast_nodes.py +0 -0
- {python_fragments-0.4 → python_fragments-0.5}/fragments/cli.py +0 -0
- {python_fragments-0.4 → python_fragments-0.5}/fragments/grammar.py +0 -0
- {python_fragments-0.4 → python_fragments-0.5}/fragments/html/__init__.py +0 -0
- {python_fragments-0.4 → python_fragments-0.5}/fragments/html/elements.py +0 -0
- {python_fragments-0.4 → python_fragments-0.5}/fragments/loader.py +0 -0
- {python_fragments-0.4 → python_fragments-0.5}/fragments/lsp/__init__.py +0 -0
- {python_fragments-0.4 → python_fragments-0.5}/fragments/lsp/completion.py +0 -0
- {python_fragments-0.4 → python_fragments-0.5}/fragments/lsp/definition.py +0 -0
- {python_fragments-0.4 → python_fragments-0.5}/fragments/lsp/file_state.py +0 -0
- {python_fragments-0.4 → python_fragments-0.5}/fragments/lsp/hover.py +0 -0
- {python_fragments-0.4 → python_fragments-0.5}/fragments/lsp/pyright.py +0 -0
- {python_fragments-0.4 → python_fragments-0.5}/fragments/lsp/rename.py +0 -0
- {python_fragments-0.4 → python_fragments-0.5}/fragments/lsp/semantic_tokens.py +0 -0
- {python_fragments-0.4 → python_fragments-0.5}/fragments/lsp/server.py +0 -0
- {python_fragments-0.4 → python_fragments-0.5}/fragments/source.py +0 -0
- {python_fragments-0.4 → python_fragments-0.5}/fragments/transpiler.py +0 -0
- {python_fragments-0.4 → python_fragments-0.5}/python_fragments.egg-info/SOURCES.txt +0 -0
- {python_fragments-0.4 → python_fragments-0.5}/python_fragments.egg-info/dependency_links.txt +0 -0
- {python_fragments-0.4 → python_fragments-0.5}/python_fragments.egg-info/entry_points.txt +0 -0
- {python_fragments-0.4 → python_fragments-0.5}/python_fragments.egg-info/requires.txt +0 -0
- {python_fragments-0.4 → python_fragments-0.5}/python_fragments.egg-info/top_level.txt +0 -0
- {python_fragments-0.4 → python_fragments-0.5}/setup.cfg +0 -0
- {python_fragments-0.4 → python_fragments-0.5}/tests/test_grammar.py +0 -0
- {python_fragments-0.4 → python_fragments-0.5}/tests/test_pyright.py +0 -0
- {python_fragments-0.4 → python_fragments-0.5}/tests/test_source_map.py +0 -0
|
@@ -6,7 +6,7 @@ from lsprotocol import types
|
|
|
6
6
|
|
|
7
7
|
from fragments import grammar
|
|
8
8
|
from fragments.lsp.pyright import PyrightClient
|
|
9
|
-
from fragments.lsp.server import FragmentsServer,
|
|
9
|
+
from fragments.lsp.server import FragmentsServer, _build_file_state, _converter, _parse_error_to_diagnostic, server
|
|
10
10
|
|
|
11
11
|
_DEBOUNCE_SECONDS = 0.15
|
|
12
12
|
|
|
@@ -25,19 +25,7 @@ async def initialized(language_server: FragmentsServer, _params: types.Initializ
|
|
|
25
25
|
"processId": None,
|
|
26
26
|
"rootUri": root_uri,
|
|
27
27
|
"workspaceFolders": workspace_folders or None,
|
|
28
|
-
"capabilities":
|
|
29
|
-
"workspace": {"configuration": True},
|
|
30
|
-
"textDocument": {
|
|
31
|
-
"hover": {"contentFormat": ["markdown", "plaintext"]},
|
|
32
|
-
"rename": {"prepareSupport": True},
|
|
33
|
-
"semanticTokens": {
|
|
34
|
-
"requests": {"full": True},
|
|
35
|
-
"tokenTypes": _TOKEN_TYPES,
|
|
36
|
-
"tokenModifiers": _TOKEN_MODIFIERS,
|
|
37
|
-
"formats": ["relative"],
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
},
|
|
28
|
+
"capabilities": _converter.unstructure(language_server.client_capabilities),
|
|
41
29
|
},
|
|
42
30
|
)
|
|
43
31
|
pyright.notify("initialized", {})
|
|
@@ -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.5"
|
|
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
|
|
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.4 → python_fragments-0.5}/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
|
|
File without changes
|