Skip to content

Commit

Permalink
fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
TerminalFi committed Aug 27, 2024
1 parent 397480f commit 1818920
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions plugin/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -873,16 +873,13 @@ def run(self, plugin: CopilotPlugin, session: Session, _: sublime.Edit) -> None:
if not (window := self.view.window()):
return

templates = [
(color_name, color_value.value)
for color_name, color_value in CopilotConversationDebugTemplates.__members__.items()
]
templates = [(name, template) for name, template in CopilotConversationDebugTemplates.__members__.items()]
window.show_quick_panel(templates, lambda index: self._on_selected(index, templates))

def _on_selected(
self,
index: int,
items: list[tuple[str, str]],
items: list[tuple[str, CopilotConversationDebugTemplates]],
) -> None:
if index == -1:
return
Expand Down

0 comments on commit 1818920

Please sign in to comment.