fix: read access exception on GoLand (fixes #1139)

This commit is contained in:
Carl-Robert Linnupuu 2025-10-08 12:32:53 +01:00
parent d55533e9c3
commit ee9962a1ae
2 changed files with 3 additions and 1 deletions

View file

@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Commit Message action from disappearing [#1134](https://github.com/carlrobertoh/ProxyAI/issues/1134)
- Read access exception on GoLand [#1139](https://github.com/carlrobertoh/ProxyAI/issues/1139)
## [3.6.2-241.1] - 2025-10-03

View file

@ -4,6 +4,7 @@ import com.intellij.codeInsight.daemon.impl.DaemonCodeAnalyzerImpl
import com.intellij.codeInsight.daemon.impl.HighlightInfo
import com.intellij.lang.annotation.HighlightSeverity
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.application.runReadAction
import com.intellij.openapi.components.service
import com.intellij.openapi.fileEditor.FileDocumentManager
import com.intellij.openapi.progress.ProgressManager
@ -87,7 +88,7 @@ class SelectionTagProcessor(
)
tagDetails.selectionModel.let {
if (it.hasSelection()) {
if (runReadAction { it.hasSelection() }) {
it.removeSelection()
}
}