Skip to content

Commit

Permalink
chore: move abort request TODO and add keymaps TODO for InPlace command
Browse files Browse the repository at this point in the history
  • Loading branch information
jellydn committed Feb 18, 2024
1 parent 45cdd3d commit c48fcca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rplugin/python3/CopilotChat/handlers/chat_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def is_module_installed(name):


# TODO: Support Custom Instructions when this issue has been resolved https://github.com/microsoft/vscode-copilot-release/issues/563
# TODO: Abort request if the user closes the layout
class ChatHandler:
has_show_extra_info = False

Expand Down Expand Up @@ -267,6 +266,7 @@ def _add_chat_messages(
self.nvim.exec_lua(
'require("CopilotChat.utils").log_info(...)', "Asking Copilot"
)
# TODO: Abort request if the user closes the layout
for token in self.copilot.ask(
system_prompt, prompt, code, language=cast(str, file_type), model=model
):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ def _toggle_system_model(self):
self.copilot_popup.unmount()
self.copilot_popup.mount(controlled=True)

# TODO: Add custom keymaps for in-place chat as suggestion here https://discord.com/channels/1200633211236122665/1200633212041449606/1208065809285382164
def _set_keymaps(self):
"""Set the keymaps for the chat handler."""
self.prompt_popup.map("n", "<CR>", lambda: self._chat())
Expand Down

0 comments on commit c48fcca

Please sign in to comment.