Skip to content

Commit 7aa563b

Browse files
committed
Break out of loop when context process has started
1 parent a81caf6 commit 7aa563b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type" : "bugfix",
3+
"description" : "Fix pointless busy loop in Amazon Q wasting CPU cycles (#5000)"
4+
}

plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/project/ProjectContextProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class ProjectContextProvider(val project: Project, private val encoderServer: En
5555
initAndIndex()
5656
break
5757
} else {
58-
yield()
58+
break
5959
}
6060
}
6161
}

0 commit comments

Comments
 (0)