Skip to content

Commit 9844c03

Browse files
committed
do index regardless isProjectContext is on/off
1 parent 149e6af commit 9844c03

File tree

1 file changed

+3
-5
lines changed
  • plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/project

1 file changed

+3
-5
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,9 @@ class ProjectContextProvider(val project: Project, private val encoderServer: En
108108
if (isInitSuccess) {
109109
logger.info { "project context index starting" }
110110
delay(300)
111-
if (CodeWhispererSettings.getInstance().isProjectContextEnabled()) {
112-
val isIndexSuccess = index()
113-
if (isIndexSuccess) isIndexComplete.set(true)
114-
return@launch
115-
}
111+
val isIndexSuccess = index()
112+
if (isIndexSuccess) isIndexComplete.set(true)
113+
return@launch
116114
}
117115
} catch (e: Exception) {
118116
if (e.stackTraceToString().contains("Connection refused")) {

0 commit comments

Comments
 (0)