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.
Files changed (32) hide show
  1. {python_fragments-0.4 → python_fragments-0.5}/PKG-INFO +1 -1
  2. {python_fragments-0.4 → python_fragments-0.5}/fragments/lsp/lifecycle.py +2 -14
  3. {python_fragments-0.4 → python_fragments-0.5}/pyproject.toml +1 -1
  4. {python_fragments-0.4 → python_fragments-0.5}/python_fragments.egg-info/PKG-INFO +1 -1
  5. {python_fragments-0.4 → python_fragments-0.5}/README.md +0 -0
  6. {python_fragments-0.4 → python_fragments-0.5}/fragments/__init__.py +0 -0
  7. {python_fragments-0.4 → python_fragments-0.5}/fragments/ast_nodes.py +0 -0
  8. {python_fragments-0.4 → python_fragments-0.5}/fragments/cli.py +0 -0
  9. {python_fragments-0.4 → python_fragments-0.5}/fragments/grammar.py +0 -0
  10. {python_fragments-0.4 → python_fragments-0.5}/fragments/html/__init__.py +0 -0
  11. {python_fragments-0.4 → python_fragments-0.5}/fragments/html/elements.py +0 -0
  12. {python_fragments-0.4 → python_fragments-0.5}/fragments/loader.py +0 -0
  13. {python_fragments-0.4 → python_fragments-0.5}/fragments/lsp/__init__.py +0 -0
  14. {python_fragments-0.4 → python_fragments-0.5}/fragments/lsp/completion.py +0 -0
  15. {python_fragments-0.4 → python_fragments-0.5}/fragments/lsp/definition.py +0 -0
  16. {python_fragments-0.4 → python_fragments-0.5}/fragments/lsp/file_state.py +0 -0
  17. {python_fragments-0.4 → python_fragments-0.5}/fragments/lsp/hover.py +0 -0
  18. {python_fragments-0.4 → python_fragments-0.5}/fragments/lsp/pyright.py +0 -0
  19. {python_fragments-0.4 → python_fragments-0.5}/fragments/lsp/rename.py +0 -0
  20. {python_fragments-0.4 → python_fragments-0.5}/fragments/lsp/semantic_tokens.py +0 -0
  21. {python_fragments-0.4 → python_fragments-0.5}/fragments/lsp/server.py +0 -0
  22. {python_fragments-0.4 → python_fragments-0.5}/fragments/source.py +0 -0
  23. {python_fragments-0.4 → python_fragments-0.5}/fragments/transpiler.py +0 -0
  24. {python_fragments-0.4 → python_fragments-0.5}/python_fragments.egg-info/SOURCES.txt +0 -0
  25. {python_fragments-0.4 → python_fragments-0.5}/python_fragments.egg-info/dependency_links.txt +0 -0
  26. {python_fragments-0.4 → python_fragments-0.5}/python_fragments.egg-info/entry_points.txt +0 -0
  27. {python_fragments-0.4 → python_fragments-0.5}/python_fragments.egg-info/requires.txt +0 -0
  28. {python_fragments-0.4 → python_fragments-0.5}/python_fragments.egg-info/top_level.txt +0 -0
  29. {python_fragments-0.4 → python_fragments-0.5}/setup.cfg +0 -0
  30. {python_fragments-0.4 → python_fragments-0.5}/tests/test_grammar.py +0 -0
  31. {python_fragments-0.4 → python_fragments-0.5}/tests/test_pyright.py +0 -0
  32. {python_fragments-0.4 → python_fragments-0.5}/tests/test_source_map.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-fragments
3
- Version: 0.4
3
+ Version: 0.5
4
4
  Summary: Modern HTML template rendering in Python
5
5
  Author-email: The Running Algorithm <services@therunningalgorithm.info>
6
6
  License: Proprietary
@@ -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, _TOKEN_MODIFIERS, _TOKEN_TYPES, _build_file_state, _converter, _parse_error_to_diagnostic, server
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.4"
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"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-fragments
3
- Version: 0.4
3
+ Version: 0.5
4
4
  Summary: Modern HTML template rendering in Python
5
5
  Author-email: The Running Algorithm <services@therunningalgorithm.info>
6
6
  License: Proprietary
File without changes
File without changes