Hello!
I have the following class that implements EditorAction
: continue/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AcceptAutocompleteAction.kt at main · continuedev/continue · GitHub
My issue is that there is another plugin (SonarQube) that users of my plugin frequently install which is reading the document on every keystroke. This appears to be preventing my doExecute
overridden function from executing. I’ve tried a variety of other methods to acquire a write intent/write lock that are outlined in these docs, and also WriteAction.run
, but without success.
My hunch is that I’m unable to acquire the write intent/write lock because of the frequent reads from this other plugin, but I’ve also confirmed with debugger breakpoints that my doExecute
is not being invoked at all. This seems to be the root of the problem since my runWriteAction
is inside doExecute
.
One other interesting note is that this seems to primarily be an issue for Community Edition users but not Ultimate.
Is there a recommended way that I’m missing to await the write intent/write lock that my action needs?