You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/util/WorkspaceFolderUtil.kt
Copy file name to clipboardExpand all lines: plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/project/ProjectContextProvider.kt
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -116,10 +116,14 @@ class ProjectContextProvider(val project: Project, private val encoderServer: En
116
116
logger.info { "project context index starting" }
117
117
delay(300)
118
118
val isIndexSuccess = index()
119
-
if (isIndexSuccess) isIndexComplete.set(true)
119
+
if (isIndexSuccess) {
120
+
isIndexComplete.set(true)
121
+
}
120
122
return
121
123
}
124
+
retryCount.incrementAndGet()
122
125
} catch (e:Exception) {
126
+
logger.warn(e) { "failed to init project context" }
123
127
if (e.stackTraceToString().contains("Connection refused")) {
124
128
retryCount.incrementAndGet()
125
129
delay(10000)
@@ -133,6 +137,7 @@ class ProjectContextProvider(val project: Project, private val encoderServer: En
133
137
privatesuspendfuninitEncryption(): Boolean {
134
138
val request = encoderServer.getEncryptionRequest()
135
139
val response = sendMsgToLsp(LspMessage.Initialize, request)
140
+
logger.info { "received response to init encryption: $response" }
Copy file name to clipboardExpand all lines: plugins/amazonq/shared/jetbrains-community/tst/software/aws/toolkits/jetbrains/services/amazonq/lsp/util/WorkspaceFolderUtilTest.kt
0 commit comments