Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove redundant title from the edit dialog (fixes https://linear.app/sourcegraph/issue/QA-72) #2405

Merged
merged 2 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions src/main/kotlin/com/sourcegraph/cody/chat/ui/LlmDropdown.kt
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,11 @@ class LlmDropdown(
val selectedFromHistory = HistoryService.getInstance(project).getDefaultLlm()

selectedItem =
availableModels
.map { it.model }
.find {
it.id == model ||
it.id == selectedFromHistory?.model ||
it.id == selectedFromChatState?.id
} ?: models.firstOrNull()
availableModels.find {
it.model.id == model ||
it.model.id == selectedFromHistory?.model ||
it.model.id == selectedFromChatState?.id
} ?: models.firstOrNull()

// If the dropdown is already disabled, don't change it. It can happen
// in the case of the legacy commands (updateAfterFirstMessage happens before this call).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ class EditCommandPrompt(
popup =
JBPopupFactory.getInstance()
.createComponentPopupBuilder(createPopupContent(), instructionsField)
.setTitle(dialogTitle)
.setMovable(true)
.setResizable(true)
.setRequestFocus(true)
Expand Down
Loading