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/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/util/GitIgnoreFilteringUtil.kt
+17-1
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,11 @@ class GitIgnoreFilteringUtil(
56
56
"*.a",
57
57
"*.map",
58
58
"*.graph",
59
-
"*.so"
59
+
"*.so",
60
+
"*.csv",
61
+
"*.dylib",
62
+
"*.parquet",
63
+
"*.xlsx"
60
64
)
61
65
)
62
66
}
@@ -101,6 +105,18 @@ class GitIgnoreFilteringUtil(
101
105
102
106
suspendfunignoreFile(file:VirtualFile): Boolean {
103
107
// this method reads like something a JS dev would write and doesn't do what the author thinks
108
+
109
+
// ignores no extension files for test generation use case.
110
+
val allowedNoExtFiles =setOf("Config", "Dockerfile", "README")
111
+
if (useCase ==CodeWhispererConstants.FeatureName.TEST_GENERATION&&
112
+
!file.isDirectory &&
113
+
file.extension.isNullOrEmpty() &&
114
+
!allowedNoExtFiles.any {
115
+
it.equals(file.name, ignoreCase =true)
116
+
}
117
+
) {
118
+
returntrue
119
+
}
104
120
val deferredResults = ignorePatternsWithGitIgnore.map { pattern ->
105
121
withContext(coroutineContext) {
106
122
// avoid partial match (pattern.containsMatchIn) since it causes us matching files
0 commit comments