Skip to content

Wrap document operations in ReadAction and WriteAction for thread safety#117

Closed
PerryZhao wants to merge 1 commit intoopenpilot-hub:mainfrom
PerryZhao:feat/edt-completion-250424
Closed

Wrap document operations in ReadAction and WriteAction for thread safety#117
PerryZhao wants to merge 1 commit intoopenpilot-hub:mainfrom
PerryZhao:feat/edt-completion-250424

Conversation

@PerryZhao
Copy link
Copy Markdown
Collaborator

Refactored the prepare method in DevPilotCompletion to properly handle editor operations using ReadAction for reading cursor position and WriteAction for document modifications, preventing potential threading issues.

Refactored the prepare method in DevPilotCompletion to properly handle editor operations using ReadAction for reading cursor position and WriteAction for document modifications, preventing potential threading issues.
@PerryZhao PerryZhao requested a review from maozhen520 April 24, 2025 08:44
@PerryZhao PerryZhao closed this Jun 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant