-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for local symf context (#326)
Fixes #259 ## Test plan Manual testing using full QA guide. Other than that: 1) Enable context 2) Ask repo-specific question 3) Check if response is based on the understanding of the local context 4) Disable context 5) Ask repo-specific question 6) Check if response is lacking previous insight 7) Click on refresh button and check if reindexing is in progress 8) Click on help button and check if it opens proper documentation page <!-- All pull requests REQUIRE a test plan: https://sourcegraph.com/docs/dev/background-information/testing_principles Why does it matter? These test plans are there to demonstrate that are following industry standards which are important or critical for our customers. They might be read by customers or an auditor. There are meant be simple and easy to read. Simply explain what you did to ensure your changes are correct! Here are a non exhaustive list of test plan examples to help you: - Making changes on a given feature or component: - "Covered by existing tests" or "CI" for the shortest possible plan if there is zero ambiguity - "Added new tests" - "Manually tested" (if non trivial, share some output, logs, or screenshot) - Updating docs: - "previewed locally" - share a screenshot if you want to be thorough - Updating deps, that would typically fail immediately in CI if incorrect - "CI" - "locally tested" -->
- Loading branch information
Showing
28 changed files
with
235 additions
and
492 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,20 @@ | ||
package com.sourcegraph.cody | ||
|
||
import com.intellij.ui.ColorUtil | ||
import com.intellij.util.ui.UIUtil | ||
import com.sourcegraph.cody.context.EmbeddingStatusView | ||
import com.intellij.openapi.ui.VerticalFlowLayout | ||
import com.sourcegraph.cody.context.ui.EnhancedContextPanel | ||
import java.awt.BorderLayout | ||
import javax.swing.BorderFactory | ||
import javax.swing.BoxLayout | ||
import javax.swing.JPanel | ||
|
||
class LowerPanel( | ||
stopGeneratingButtonPanel: JPanel, | ||
promptPanel: PromptPanel, | ||
embeddingStatusView: EmbeddingStatusView | ||
contextView: EnhancedContextPanel | ||
) : JPanel(BorderLayout()) { | ||
init { | ||
val borderColor = ColorUtil.brighter(UIUtil.getPanelBackground(), 3) | ||
val topBorder = BorderFactory.createMatteBorder(1, 0, 0, 0, borderColor) | ||
embeddingStatusView.border = topBorder | ||
border = embeddingStatusView.border | ||
layout = BoxLayout(this, BoxLayout.Y_AXIS) | ||
border = contextView.border | ||
layout = VerticalFlowLayout() | ||
add(stopGeneratingButtonPanel) | ||
add(promptPanel) | ||
add(embeddingStatusView) | ||
add(contextView) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
|
||
public enum InlineAutocompleteTriggerKind { | ||
Invoke, | ||
Automatic; | ||
Automatic | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
120 changes: 0 additions & 120 deletions
120
src/main/kotlin/com/sourcegraph/cody/auth/ui/EditCodebaseContextAction.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.