From c5ff31d8bdabeeee05072ce44cff0e10a7caccca Mon Sep 17 00:00:00 2001 From: Rafal Chlodnicki Date: Tue, 30 Jun 2026 23:03:05 +0200 Subject: [PATCH 1/4] chore(types): fix wrong type --- plugin/ui/chat.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/ui/chat.py b/plugin/ui/chat.py index bb6729e..8f55b0e 100644 --- a/plugin/ui/chat.py +++ b/plugin/ui/chat.py @@ -181,6 +181,8 @@ def update(self) -> None: """Update the conversation sheet content.""" if not (sheet := self.window.transient_sheet_in_group(self.manager.group_id)): return + if not isinstance(sheet, sublime.HtmlSheet): + return mdpopups.update_html_sheet(sheet=sheet, contents=self.completion_content, md=True, wrapper_class="wrapper") From cee1647445e13d9dae61e9743d8463abc1b51817 Mon Sep 17 00:00:00 2001 From: Rafal Chlodnicki Date: Wed, 1 Jul 2026 08:57:55 +0200 Subject: [PATCH 2/4] layout not supported for show_popup --- plugin/ui/completion.py | 1 - 1 file changed, 1 deletion(-) diff --git a/plugin/ui/completion.py b/plugin/ui/completion.py index 6b7c15f..57d9e40 100644 --- a/plugin/ui/completion.py +++ b/plugin/ui/completion.py @@ -239,7 +239,6 @@ def show(self) -> None: view=self.view, content=self.popup_content, md=True, - layout=sublime.LAYOUT_INLINE, flags=sublime.COOPERATE_WITH_AUTO_COMPLETE, max_width=640, ) From 7cf2de26cee33547f734a45230ef815edb8e5d03 Mon Sep 17 00:00:00 2001 From: Rafal Chlodnicki Date: Thu, 2 Jul 2026 16:55:47 +0200 Subject: [PATCH 3/4] align basedpyright and pyright --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 74cf177..af569ff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -59,6 +59,7 @@ ignore = [ ] stubPath = 'typings' pythonVersion = '3.8' +typeCheckingMode = 'standard' [tool.ruff] preview = true From 2a40b4e9088ad0547fedf934a7870642e948937b Mon Sep 17 00:00:00 2001 From: Rafal Chlodnicki Date: Thu, 2 Jul 2026 17:03:00 +0200 Subject: [PATCH 4/4] fix types when not using included typings --- plugin/ui/chat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/ui/chat.py b/plugin/ui/chat.py index 8f55b0e..3483b47 100644 --- a/plugin/ui/chat.py +++ b/plugin/ui/chat.py @@ -196,7 +196,7 @@ def close(self) -> None: self.manager.is_visible = False self.manager.window.run_command("hide_panel") if self.manager.original_layout: - self.window.set_layout(self.manager.original_layout) + self.window.set_layout(self.manager.original_layout) # pyright: ignore[reportArgumentType] self.manager.original_layout = None if view := self.window.active_view(): @@ -219,7 +219,7 @@ def _open_in_group(self, window: sublime.Window, group_id: int) -> None: def _open_in_side_by_side(self, window: sublime.Window) -> None: """Open the conversation sheet in side-by-side layout.""" - self.manager.original_layout = window.layout() + self.manager.original_layout = window.layout() # pyright: ignore[reportAttributeAccessIssue] window.set_layout({ "cols": [0.0, 0.5, 1.0], "rows": [0.0, 1.0],