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/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/startup/AmazonQStartupActivity.kt
Copy file name to clipboardExpand all lines: plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/cwc/editor/context/project/ProjectContextProvider.kt
+9-10Lines changed: 9 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -40,16 +40,14 @@ class ProjectContextProvider(val project: Project, private val encoderServer: En
40
40
privateval mapper = jacksonObjectMapper()
41
41
init {
42
42
cs.launch {
43
-
if (CodeWhispererSettings.getInstance().isProjectContextEnabled()) {
44
-
while (true) {
45
-
if (encoderServer.isNodeProcessRunning()) {
46
-
// TODO: need better solution for this
47
-
delay(10000)
48
-
initAndIndex()
49
-
break
50
-
} else {
51
-
yield()
52
-
}
43
+
while (true) {
44
+
if (encoderServer.isNodeProcessRunning()) {
45
+
// TODO: need better solution for this
46
+
delay(10000)
47
+
initAndIndex()
48
+
break
49
+
} else {
50
+
yield()
53
51
}
54
52
}
55
53
}
@@ -130,6 +128,7 @@ class ProjectContextProvider(val project: Project, private val encoderServer: En
130
128
}
131
129
132
130
funindex(): Boolean {
131
+
if (!CodeWhispererSettings.getInstance().isProjectContextEnabled()) returnfalse
133
132
val projectRoot = project.guessProjectDir()?.path ?:returnfalse
Copy file name to clipboardExpand all lines: plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/util/SupplementalContextStrategy.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ enum class UtgStrategy : SupplementalContextStrategy {
0 commit comments