Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit16aa924

Browse files
authored
fix(mappings): make sure function resolution is not ran in fast context (#1436)
functions call get_messages and those use vim.api functions. So move itat start of show_info blockSigned-off-by: Tomas Slusny <slusnucky@gmail.com>
1 parent181a523 commit16aa924

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎lua/CopilotChat/config/mappings.lua‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,10 +337,10 @@ return {
337337
localsystem_prompt=config.system_prompt
338338

339339
async.run(function()
340-
localinfos=client:info()
340+
localresolved_resources=copilot.resolve_functions(prompt,config)
341341
localselected_tools=copilot.resolve_tools(prompt,config)
342342
localselected_model=copilot.resolve_model(prompt,config)
343-
localresolved_resources=copilot.resolve_functions(prompt,config)
343+
localinfos=client:info()
344344

345345
selected_tools=vim.tbl_map(function(tool)
346346
returntool.name

‎lua/CopilotChat/init.lua‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ end
515515
---@paramconfigCopilotChat.config.Shared?
516516
---@returnCopilotChat.config.prompts.Prompt,string
517517
functionM.resolve_prompt(prompt,config)
518-
ifnotpromptthen
518+
ifprompt==nilthen
519519
localmessage=M.chat:get_message(constants.ROLE.USER)
520520
ifmessagethen
521521
prompt=message.content

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp