Skip to content

Commit ac84d65

Browse files
committed
fixed comments
1 parent 410c68e commit ac84d65

File tree

4 files changed

+3
-8
lines changed

4 files changed

+3
-8
lines changed

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/toolwindow/AmazonQPanel.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,10 @@ import software.aws.toolkits.jetbrains.services.codemodernizer.utils.isCodeTrans
4848
import software.aws.toolkits.resources.message
4949
import java.awt.datatransfer.DataFlavor
5050
import java.awt.dnd.DropTarget
51-
import java.awt.dnd.DropTargetDragEvent
5251
import java.awt.dnd.DropTargetDropEvent
53-
import java.awt.dnd.DropTargetEvent
5452
import java.util.concurrent.CompletableFuture
55-
import javax.swing.JButton
5653
import javax.imageio.ImageIO.read
54+
import javax.swing.JButton
5755

5856
class AmazonQPanel(val project: Project, private val scope: CoroutineScope) : Disposable {
5957
private val browser = CompletableFuture<Browser>()
@@ -207,7 +205,6 @@ class AmazonQPanel(val project: Project, private val scope: CoroutineScope) : Di
207205
browserInstance.jcefBrowser.cefBrowser.url,
208206
0
209207
)
210-
211208
dtde.dropComplete(true)
212209
} else {
213210
dtde.dropComplete(false)

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/webview/BrowserConnector.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,6 @@ class BrowserConnector(
532532
CHAT_PINNED_CONTEXT_REMOVE -> {
533533
handleChat(AmazonQChatServer.pinnedContextRemove, node)
534534
}
535-
536535
}
537536
}
538537

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,8 @@ class AmazonQLanguageClientImpl(private val project: Project) : AmazonQLanguageC
257257
)
258258
}
259259

260-
override fun showOpenFileDialog(params: ShowOpenFileDialogParams): CompletableFuture<LSPAny> {
261-
return CompletableFuture.supplyAsync(
260+
override fun showOpenFileDialog(params: ShowOpenFileDialogParams): CompletableFuture<LSPAny> =
261+
CompletableFuture.supplyAsync(
262262
{
263263
// Handle the case where both canSelectFiles and canSelectFolders are false (should never be sent from flare)
264264
if (!params.canSelectFiles && !params.canSelectFolders) {
@@ -331,7 +331,6 @@ class AmazonQLanguageClientImpl(private val project: Project) : AmazonQLanguageC
331331
},
332332
ApplicationManager.getApplication()::invokeLater
333333
)
334-
}
335334

336335
override fun getSerializedChat(params: LSPAny): CompletableFuture<GetSerializedChatResult> {
337336
val requestId = UUID.randomUUID().toString()

0 commit comments

Comments
 (0)