Merge branch 'main' of github.com:continuedev/continue

This commit is contained in:
Ty Dunn 2023-07-25 19:12:41 -07:00
commit 173b1a7665
10 changed files with 33 additions and 65 deletions

View file

@ -9,7 +9,6 @@
<div align="center">
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
![Twitter URL](https://img.shields.io/twitter/url?style=social&url=https%3A%2F%2Fgithub.com%2Fcontinuedev%2Fcontinue)
<a target="_blank" href="https://discord.gg/vapESyrFmJ" style="background:none">
<img src="https://img.shields.io/badge/discord-join-continue.svg?labelColor=191937&color=6F6FF7&logo=discord" />
</a>
@ -19,9 +18,9 @@
## Task, not tab, auto-complete
### Get possible explainations
### Answer coding questions
Ask Continue about a part of your code to get another perspective
Highlight sections of code and ask Continue for another perspective
- “how can I set up a Prisma schema that cascades deletes?”
- “where in the page should I be making this request to the backend?”
- “how can I communicate between these iframes?”
@ -35,7 +34,7 @@ Highlight a section of code and instruct Continue to refactor it
### Generate files from scratch
Let Continue build the scaffolding of Python scripts, React components, and more
Open a blank file and let Continue start new Python scripts, React components, etc.
- “/edit here is a connector for postgres, now write one for kafka”
- “/edit make an IAM policy that creates a user with read-only access to S3”
- “/edit use this schema to write me a SQL query that gets recently churned users”
@ -44,8 +43,6 @@ Let Continue build the scaffolding of Python scripts, React components, and more
### [Download for VS Code](https://marketplace.visualstudio.com/items?itemName=Continue.continue)
## Install
Continue requires that you have Python 3.8 or greater. If you do not, please [install](https://python.org) it
If your Continue server is not setting up, please check the console logs:
@ -54,17 +51,6 @@ If your Continue server is not setting up, please check the console logs:
3. Select `Console`
4. Read the console logs
## OpenAI API Key
New users can try out Continue with GPT-4 using a proxy server that securely makes calls to OpenAI using our API key. Continue should just work the first time you install the extension in VS Code.
Once you are using Continue regularly though, you will need to add an OpenAI API key that has access to GPT-4 by following these steps:
1. Copy your API key from https://platform.openai.com/account/api-keys
2. Use the `cmd`+`,` (Mac) / `ctrl`+`,` (Windows) to open your VS Code settings
3. Type "Continue" in the search bar
4. Click `Edit in settings.json` under **Continue: OpenAI_API_KEY" section**
5. Paste your API key as the value for "continue.OPENAI_API_KEY" in `settings.json`
## License
[Apache 2.0 © 2023 Continue Dev, Inc.](./LICENSE)

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

View file

@ -1,12 +1,12 @@
{
"name": "continue",
"version": "0.0.191",
"version": "0.0.197",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "continue",
"version": "0.0.191",
"version": "0.0.197",
"license": "Apache-2.0",
"dependencies": {
"@electron/rebuild": "^3.2.10",

View file

@ -14,7 +14,7 @@
"displayName": "Continue",
"pricing": "Free",
"description": "The open-source coding autopilot",
"version": "0.0.191",
"version": "0.0.197",
"publisher": "Continue",
"engines": {
"vscode": "^1.67.0"
@ -157,7 +157,7 @@
{
"id": "continue",
"title": "Continue ",
"icon": "react-app/dist/play_button.png"
"icon": "react-app/dist/continue-dev-square.png"
}
]
},

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

View file

@ -68,7 +68,7 @@ const Ul = styled.ul<{
${(props) =>
props.showAbove
? `transform: translateY(-${props.ulHeightPixels + 8}px);`
: `transform: translateY(${2 * mainInputFontSize}px);`}
: `transform: translateY(${5 * mainInputFontSize}px);`}
position: absolute;
background: ${vscBackground};
color: ${vscForeground};
@ -79,15 +79,9 @@ const Ul = styled.ul<{
padding: 0;
${({ hidden }) => hidden && "display: none;"}
border-radius: ${defaultBorderRadius};
outline: 0.5px solid gray;
outline: 1px solid ${lightGray};
z-index: 2;
// Get rid of scrollbar and its padding
scrollbar-width: none;
-ms-overflow-style: none;
&::-webkit-scrollbar {
width: 0px;
background: transparent; /* make scrollbar transparent */
}
`;
const Li = styled.li<{
@ -95,14 +89,15 @@ const Li = styled.li<{
selected: boolean;
isLastItem: boolean;
}>`
background-color: ${vscBackground};
${({ highlighted }) => highlighted && "background: #ff000066;"}
background-color: ${({ highlighted }) =>
highlighted ? lightGray : secondaryDark};
${({ highlighted }) => highlighted && `background: ${vscBackground};`}
${({ selected }) => selected && "font-weight: bold;"}
padding: 0.5rem 0.75rem;
display: flex;
flex-direction: column;
${({ isLastItem }) => isLastItem && "border-bottom: 1px solid gray;"}
border-top: 1px solid gray;
/* border-top: 1px solid gray; */
cursor: pointer;
`;

View file

@ -26,7 +26,8 @@ function ContinueButton(props: { onClick?: () => void; hidden?: boolean }) {
return (
<StyledButton
hidden={props.hidden}
className="m-auto"
style={{ fontSize: "10px" }}
className="m-auto press-start-2p"
onClick={props.onClick}
>
{vscMediaUrl ? (
@ -34,7 +35,7 @@ function ContinueButton(props: { onClick?: () => void; hidden?: boolean }) {
) : (
<Play />
)}
Continue
CONTINUE
</StyledButton>
);
}

View file

@ -25,3 +25,7 @@ body {
margin: 0px;
height: 100%;
}
.press-start-2p {
font-family: "Press Start 2P", "Lexend", sans-serif;
}

View file

@ -64,6 +64,9 @@ function GUI(props: GUIProps) {
const vscMachineId = useSelector(
(state: RootStore) => state.config.vscMachineId
);
const vscMediaUrl = useSelector(
(state: RootStore) => state.config.vscMediaUrl
);
const [dataSwitchChecked, setDataSwitchChecked] = useState(false);
const dataSwitchOn = useSelector(
(state: RootStore) => state.config.dataSwitchOn
@ -395,37 +398,15 @@ function GUI(props: GUIProps) {
</b>
</div>
<Footer dataSwitchChecked={dataSwitchChecked}>
<div
style={{
display: "flex",
gap: "4px",
marginRight: "auto",
alignItems: "center",
}}
onMouseEnter={() => {
setShowDataSharingInfo(true);
}}
onMouseLeave={() => {
setShowDataSharingInfo(false);
}}
>
<ReactSwitch
height={20}
handleDiameter={20}
width={40}
onChange={() => {
posthog?.capture("data_switch_toggled", {
vscMachineId: vscMachineId,
dataSwitchChecked: !dataSwitchChecked,
});
postVscMessage("toggleDataSwitch", { on: !dataSwitchChecked });
setDataSwitchChecked((prev) => !prev);
}}
onColor="#12887a"
checked={dataSwitchChecked}
/>
<span style={{ cursor: "help", fontSize: "14px" }}>Collect Data</span>
</div>
{vscMediaUrl && (
<a
href="https://github.com/continuedev/continue"
style={{ marginRight: "auto" }}
>
<img src={`${vscMediaUrl}/continue-dev-square.png`} width="22px" />
</a>
)}
{/* <p style={{ margin: "0", marginRight: "auto" }}>Continue</p> */}
<HeaderButtonWithText
onClick={() => {
// Show the dialog

View file

@ -262,6 +262,7 @@ export function setupDebugPanel(
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Lexend:wght@300&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap" rel="stylesheet">
<title>Continue</title>
</head>