Skip to content

Commit

Permalink
revert to write permission (#683)
Browse files Browse the repository at this point in the history
  • Loading branch information
yairco1990 authored Nov 9, 2023
1 parent a764fc0 commit a59a66f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ abstract class ChatMessageHandler<RequestPayload, ResponsePayload>(protected val
}

protected fun getEditorFromProject(project: Project): Editor? {
return AsyncAction(ActionPermissions.READ).execute {
return AsyncAction(ActionPermissions.WRITE).execute {
try {
val fileEditor = FileEditorManager.getInstance(project).selectedEditor ?: return@execute null
val dataContext = DataManager.getInstance().getDataContext(fileEditor.component)
Expand Down

0 comments on commit a59a66f

Please sign in to comment.