Skip to content

Commit

Permalink
fix: add delay for disposing inline edit adapter to prevent rejection…
Browse files Browse the repository at this point in the history
… issues (#4400)
  • Loading branch information
erha19 authored Feb 24, 2025
1 parent 7094c8c commit c312476
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,8 @@ export class ExtHostLanguages implements IExtHostLanguages {
handle,
InlineEditAdapter,
async (adapter) => {
adapter.disposeEdit(pid);
// 增加延迟释放,避免在 ESC 退出时,InlineEdit 的 Rejected 命令被提前销毁导致异常
setTimeout(() => adapter.disposeEdit(pid), 100);
},
undefined,
undefined,
Expand Down

0 comments on commit c312476

Please sign in to comment.