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

Commit7a8e238

Browse files
authored
fix(url): ensure main thread scheduling before fetching (#1453)
Call utils.schedule_main() before fetching URL data to ensure thatsubsequent operations run on the main thread. This prevents potentialissues with asynchronous execution and improves reliability whenaccessing resources.Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
1 parent481db77 commit7a8e238

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎lua/CopilotChat/config/functions.lua‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,7 @@ return {
545545
input.url='https://'..input.url
546546
end
547547

548+
utils.schedule_main()
548549
localdata,mimetype=resources.get_url(input.url)
549550
ifnotdatathen
550551
error('URL not found:'..input.url)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp