Skip to content

Commit 9194aa2

Browse files
authored
Fix copilot_inline_chat to always start inline chat. (#166)
Fixes #12
1 parent bcba9a9 commit 9194aa2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

copilot/copilot.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,7 @@
3232
class Actions:
3333
def copilot_inline_chat(copilot_slash_command: str = "", prose: str = ""):
3434
"""Initiate copilot inline chat session"""
35-
actions.user.run_rpc_command(
36-
"editor.action.codeAction",
37-
{
38-
"kind": "refactor.rewrite",
39-
},
40-
)
35+
actions.user.vscode("inlineChat.start")
4136
has_content = copilot_slash_command or prose
4237
if has_content:
4338
actions.sleep("50ms")

0 commit comments

Comments
 (0)