smaller fixes
This commit is contained in:
parent
6b8a8974f4
commit
4ed1d4f6c7
5 changed files with 14 additions and 73 deletions
|
|
@ -355,7 +355,7 @@ Please output the code to be inserted at the cursor in order to fulfill the user
|
|||
lines_to_display = contents_lines[rewritten_lines:]
|
||||
|
||||
new_file_contents = "\n".join(
|
||||
full_prefix_lines) + "\n" + completion + "\n" + "\n".join(lines_to_display) + "\n" + "\n".join(full_suffix_lines)
|
||||
full_prefix_lines) + "\n" + completion + "\n" + ("\n".join(lines_to_display) + "\n" if len(lines_to_display) > 0 else "") + "\n".join(full_suffix_lines)
|
||||
|
||||
step_index = sdk.history.current_index
|
||||
|
||||
|
|
|
|||
|
|
@ -44,18 +44,13 @@
|
|||
"configuration": {
|
||||
"title": "Continue",
|
||||
"properties": {
|
||||
"continue.automode": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "Automatically find relevant code and suggest a fix whenever a traceback is found."
|
||||
},
|
||||
"continue.serverUrl": {
|
||||
"type": "string",
|
||||
"default": "http://localhost:65432",
|
||||
"description": "The URL of the Continue server to use."
|
||||
},
|
||||
"continue.OPENAI_API_KEY": {
|
||||
"type": "password",
|
||||
"type": "string",
|
||||
"default": null,
|
||||
"description": "The OpenAI API key to use for code generation."
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,50 +0,0 @@
|
|||
import React from "react";
|
||||
import styled from "styled-components";
|
||||
|
||||
const StyledDiv = styled.div`
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
background: linear-gradient(
|
||||
101.79deg,
|
||||
#12887a 0%,
|
||||
#87245c 32%,
|
||||
#e12637 63%,
|
||||
#ffb215 100%
|
||||
);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
z-index: 10;
|
||||
`;
|
||||
|
||||
const StyledImg = styled.img`
|
||||
/* add your styles here */
|
||||
`;
|
||||
|
||||
const StyledDiv2 = styled.div`
|
||||
width: 50%;
|
||||
height: 5px;
|
||||
background: white;
|
||||
margin-top: 20px;
|
||||
`;
|
||||
|
||||
interface LoadingCoverProps {
|
||||
message: string;
|
||||
hidden?: boolean;
|
||||
}
|
||||
|
||||
const LoadingCover = (props: LoadingCoverProps) => {
|
||||
return (
|
||||
<StyledDiv style={{ display: props.hidden ? "none" : "inherit" }}>
|
||||
<StyledImg src="continue.gif" alt="centered image" width="50%" />
|
||||
<StyledDiv2></StyledDiv2>
|
||||
<p>{props.message}</p>
|
||||
</StyledDiv>
|
||||
);
|
||||
};
|
||||
|
||||
export default LoadingCover;
|
||||
|
|
@ -26,7 +26,7 @@ const StyledSpan = styled.span`
|
|||
|
||||
const Onboarding = () => {
|
||||
const [counter, setCounter] = useState(4);
|
||||
const gifs = ["intro", "explain", "edit", "generate"];
|
||||
const gifs = ["intro", "explain", "edit", "generate", "intro"];
|
||||
const topMessages = [
|
||||
"Welcome to Continue!",
|
||||
"Answer coding questions",
|
||||
|
|
@ -42,7 +42,7 @@ const Onboarding = () => {
|
|||
|
||||
useEffect(() => {
|
||||
const hasVisited = localStorage.getItem("hasVisited");
|
||||
if (hasVisited && false) {
|
||||
if (hasVisited) {
|
||||
setCounter(4);
|
||||
} else {
|
||||
setCounter(0);
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ import ReactSwitch from "react-switch";
|
|||
import { usePostHog } from "posthog-js/react";
|
||||
import { useSelector } from "react-redux";
|
||||
import { RootStore } from "../redux/store";
|
||||
import LoadingCover from "../components/LoadingCover";
|
||||
import { postVscMessage } from "../vscode";
|
||||
import UserInputContainer from "../components/UserInputContainer";
|
||||
import Onboarding from "../components/Onboarding";
|
||||
|
|
@ -270,19 +269,16 @@ function GUI(props: GUIProps) {
|
|||
// const iterations = useSelector(selectIterations);
|
||||
return (
|
||||
<>
|
||||
<Onboarding></Onboarding>
|
||||
<LoadingCover hidden={true} message="Downloading local model..." />
|
||||
<TextDialog
|
||||
showDialog={showFeedbackDialog}
|
||||
onEnter={(text) => {
|
||||
client?.sendMainInput(`/feedback ${text}`);
|
||||
setShowFeedbackDialog(false);
|
||||
}}
|
||||
onClose={() => {
|
||||
setShowFeedbackDialog(false);
|
||||
}}
|
||||
message={feedbackDialogMessage}
|
||||
></TextDialog>
|
||||
<Onboarding />
|
||||
<TextDialog showDialog={showFeedbackDialog}
|
||||
onEnter={(text) => {
|
||||
client?.sendMainInput(`/feedback ${text}`);
|
||||
setShowFeedbackDialog(false);
|
||||
}}
|
||||
onClose={() => {
|
||||
setShowFeedbackDialog(false);
|
||||
}}
|
||||
message={feedbackDialogMessage} />
|
||||
|
||||
<TopGUIDiv
|
||||
ref={topGuiDivRef}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue