Skip to content

Commit 388b428

Browse files
committed
use old function in order to compile
1 parent 024d33b commit 388b428

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLanguageClientImpl.kt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class AmazonQLanguageClientImpl(private val project: Project) : AmazonQLanguageC
152152
MessageType.Error -> Level.ERROR
153153
MessageType.Warning -> Level.WARN
154154
MessageType.Info, MessageType.Log -> Level.INFO
155-
else -> Level.WARN
155+
else -> Level.Warn
156156
}
157157

158158
if (type == Level.ERROR &&
@@ -269,23 +269,23 @@ class AmazonQLanguageClientImpl(private val project: Project) : AmazonQLanguageC
269269
val descriptor = when {
270270
params.canSelectFolders && params.canSelectFiles -> {
271271
if (params.canSelectMany) {
272-
FileChooserDescriptorFactory.multiFilesOrDirs()
272+
FileChooserDescriptorFactory.createAllButJarContentsDescriptor()
273273
} else {
274-
FileChooserDescriptorFactory.singleFileOrDir()
274+
FileChooserDescriptorFactory.createSingleFileOrFolderDescriptor()
275275
}
276276
}
277277
params.canSelectFolders -> {
278278
if (params.canSelectMany) {
279-
FileChooserDescriptorFactory.multiDirs()
279+
FileChooserDescriptorFactory.createMultipleFoldersDescriptor()
280280
} else {
281-
FileChooserDescriptorFactory.singleDir()
281+
FileChooserDescriptorFactory.createSingleFolderDescriptor()
282282
}
283283
}
284-
else -> { // Only files
284+
else -> {
285285
if (params.canSelectMany) {
286-
FileChooserDescriptorFactory.multiFiles()
286+
FileChooserDescriptorFactory.createMultipleFilesNoJarsDescriptor()
287287
} else {
288-
FileChooserDescriptorFactory.singleFile()
288+
FileChooserDescriptorFactory.createSingleFileNoJarsDescriptor()
289289
}
290290
}
291291
}.apply {

0 commit comments

Comments
 (0)