Skip to content

Commit

Permalink
Feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
dominiccooney committed Apr 25, 2024
1 parent 3f2f9a1 commit 3eda14a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ abstract class BaseCommandAction : BaseChatAction() {
abstract val myCommandId: CommandId

override fun doAction(project: Project) {
ApplicationManager.getApplication().assertIsDispatchThread()
FileEditorManager.getInstance(project).selectedTextEditor?.let { editor ->
ApplicationManager.getApplication().assertIsDispatchThread()
val file = FileDocumentManager.getInstance().getFile(editor.document)
val protocolFile = file?.let { ProtocolTextDocument.fromVirtualFile(editor, it) } ?: return

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class IgnoreOracle(private val project: Project) {
when (agent.server.ignoreTest(IgnoreTestParams(uri)).get().policy) {
"ignore" -> IgnorePolicy.IGNORE
"use" -> IgnorePolicy.USE
else -> throw Exception("invalid ignore policy value")
else -> throw IllegalStateException("invalid ignore policy value")
}
synchronized(cache) { cache.put(uri, policy) }
completable.complete(policy)
Expand Down

0 comments on commit 3eda14a

Please sign in to comment.