diff --git a/core/autocomplete/completionProvider.ts b/core/autocomplete/completionProvider.ts index bbc2d2577..e3c887c82 100644 --- a/core/autocomplete/completionProvider.ts +++ b/core/autocomplete/completionProvider.ts @@ -204,7 +204,7 @@ export class CompletionProvider { const outcome = this._outcomes.get(completionId)!; outcome.accepted = true; logDevData("autocomplete", outcome); - Telemetry.capture( + void Telemetry.capture( "autocomplete", { accepted: outcome.accepted, @@ -378,7 +378,7 @@ export class CompletionProvider { outcome.accepted = false; logDevData("autocomplete", outcome); const { prompt, completion, ...restOfOutcome } = outcome; - Telemetry.capture( + void Telemetry.capture( "autocomplete", { ...restOfOutcome, diff --git a/core/core.ts b/core/core.ts index 3e5129a62..e9b29b493 100644 --- a/core/core.ts +++ b/core/core.ts @@ -571,7 +571,9 @@ export class Core { ); return outcome ? [outcome.completion] : []; }); - on("autocomplete/accept", async (msg) => {}); + on("autocomplete/accept", async (msg) => { + this.completionProvider.accept(msg.data.completionId); + }); on("autocomplete/cancel", async (msg) => { this.completionProvider.cancel(); }); diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt index c46cb7222..877308fa4 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/autocomplete/AutocompleteService.kt @@ -148,8 +148,10 @@ class AutocompleteService(private val project: Project) { val editor = completion.editor val offset = completion.offset editor.document.insertString(offset, text) + editor.caretModel.moveToOffset(offset + text.length) + project.service().coreMessenger?.request("autocomplete/accept", completion.completionId, null, ({})) invokeLater { clearCompletions(editor) @@ -177,6 +179,7 @@ class AutocompleteService(private val project: Project) { if (currentDelimiter.isNotEmpty()) { result.add(currentDelimiter) + } return result diff --git a/gui/src/components/Layout.tsx b/gui/src/components/Layout.tsx index 9a66c9e05..d012194a3 100644 --- a/gui/src/components/Layout.tsx +++ b/gui/src/components/Layout.tsx @@ -35,6 +35,7 @@ const LayoutTopDiv = styled(CustomScrollbarDiv)` height: 100%; border-radius: ${defaultBorderRadius}; position: relative; + overflow-x: hidden; &::after { position: absolute; diff --git a/gui/src/components/gui/StepContainer.tsx b/gui/src/components/gui/StepContainer.tsx index 9354a73b5..cb2013437 100644 --- a/gui/src/components/gui/StepContainer.tsx +++ b/gui/src/components/gui/StepContainer.tsx @@ -123,24 +123,13 @@ function StepContainer(props: StepContainerProps) { {(props.isLast || isHovered || typeof feedback !== "undefined") && !active && ( -
+
{props.modelTitle && (
-
{props.modelTitle}
-
+
+ {props.modelTitle} +
+
)} diff --git a/gui/src/components/mainInput/InputToolbar.tsx b/gui/src/components/mainInput/InputToolbar.tsx index 4fc1144ad..14608ed17 100644 --- a/gui/src/components/mainInput/InputToolbar.tsx +++ b/gui/src/components/mainInput/InputToolbar.tsx @@ -114,7 +114,7 @@ function InputToolbar(props: InputToolbarProps) { defaultModel.capabilities, ) && ( setFileSelectHovered(false)} onMouseEnter={() => setFileSelectHovered(true)} > @@ -170,11 +170,11 @@ function InputToolbar(props: InputToolbarProps) { }) } > - - {" "} - {getMetaKeyLabel()}⏎ @codebase + + {getMetaKeyLabel()}⏎ Use @codebase - @codebase + + @codebase )}
@@ -187,8 +187,8 @@ function InputToolbar(props: InputToolbarProps) { }); }} > - ⏎ Enter - ⏎ + ⏎ Enter + ⏎
diff --git a/gui/src/components/modelSelection/ModelSelect.tsx b/gui/src/components/modelSelection/ModelSelect.tsx index 1048ad562..e6d1858ff 100644 --- a/gui/src/components/modelSelection/ModelSelect.tsx +++ b/gui/src/components/modelSelection/ModelSelect.tsx @@ -318,7 +318,7 @@ function ModelSelect() { style={{ padding: 0 }} onClick={calculatePosition} > -
+
{modelSelectTitle(defaultModel) || "Select model"}{" "} diff --git a/gui/src/pages/gui.tsx b/gui/src/pages/gui.tsx index f4954dc1d..51c0981ae 100644 --- a/gui/src/pages/gui.tsx +++ b/gui/src/pages/gui.tsx @@ -469,20 +469,22 @@ function GUI() {
) : state.history.length > 0 ? ( -
+
{ saveSession(); }} className="mr-auto" > - New Session ({getMetaKeyLabel()} {isJetBrains() ? "J" : "L"}) + + New Session ({getMetaKeyLabel()} {isJetBrains() ? "J" : "L"}) + {" "}
) : ( <> {getLastSessionId() ? ( -
+
{ loadLastSession().catch((e) => @@ -491,7 +493,7 @@ function GUI() { }} className="mr-auto flex items-center gap-2" > - + Last Session