From 8a73b25dbd30d7282a8850a8bc8cbcd6b978ede0 Mon Sep 17 00:00:00 2001 From: Karthik Nadig Date: Mon, 6 Nov 2023 11:12:01 -0800 Subject: [PATCH 1/2] Update to latest LSP spec --- generator/lsp.json | 2 +- packages/python/pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/generator/lsp.json b/generator/lsp.json index 493dce1..29f33f6 100644 --- a/generator/lsp.json +++ b/generator/lsp.json @@ -6647,7 +6647,7 @@ "name": "scopeUri", "type": { "kind": "base", - "name": "string" + "name": "URI" }, "optional": true, "documentation": "The scope to get the configuration section for." diff --git a/packages/python/pyproject.toml b/packages/python/pyproject.toml index 4a98b31..8d1e3ec 100644 --- a/packages/python/pyproject.toml +++ b/packages/python/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "flit_core.buildapi" [project] name = "lsprotocol" description = 'Python implementation of the Language Server Protocol.' -version = "2023.0.0b2" +version = "2023.0.0" authors = [ { name = "Microsoft Corporation", email = "lsprotocol-help@microsoft.com" }, ] From 279018e766867d6f0b90102d514b1a29cfe677be Mon Sep 17 00:00:00 2001 From: Karthik Nadig Date: Mon, 6 Nov 2023 11:30:07 -0800 Subject: [PATCH 2/2] Fix linting --- packages/python/lsprotocol/_hooks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/python/lsprotocol/_hooks.py b/packages/python/lsprotocol/_hooks.py index 06ade48..e1ba9d6 100644 --- a/packages/python/lsprotocol/_hooks.py +++ b/packages/python/lsprotocol/_hooks.py @@ -1214,7 +1214,7 @@ def _with_custom_unstructure(cls: type) -> Any: rename=_to_camel_case(a.name), omit_if_default=_omit(cls, a.name), ) - for a in attrs.fields(cls) + for a in attrs.fields(cls) # type: ignore } return cattrs.gen.make_dict_unstructure_fn(cls, converter, **attributes) @@ -1224,7 +1224,7 @@ def _with_custom_structure(cls: type) -> Any: rename=_to_camel_case(a.name), omit_if_default=_omit(cls, a.name), ) - for a in attrs.fields(cls) + for a in attrs.fields(cls) # type: ignore } return cattrs.gen.make_dict_structure_fn(cls, converter, **attributes)