Merge branch 'main' into dev

This commit is contained in:
Nate 2024-10-07 17:36:10 -07:00
commit 70daff8cfe
4 changed files with 12 additions and 6 deletions

View file

@ -2,7 +2,7 @@ name: Issue assignment
on:
issues:
types: [ opened ]
types: [opened]
jobs:
auto-assign:

View file

@ -6,7 +6,7 @@ keywords: [context, "@", provider, LLM]
Context Providers allow you to type '@' and see a dropdown of content that can all be fed to the LLM as context. Every context provider is a plugin, which means if you want to reference some source of information that you don't see here, you can request (or build!) a new context provider.
As an example, say you are working on solving a new GitHub Issue. You type '@Isse' and select the one you are working on. Continue can now see the issue title and contents. You also know that the issue is related to the files 'readme.md' and 'helloNested.py', so you type '@readme' and '@hello' to find and select them. Now these 3 "Context Items" are displayed inline with the rest of your input.
As an example, say you are working on solving a new GitHub Issue. You type '@Issue' and select the one you are working on. Continue can now see the issue title and contents. You also know that the issue is related to the files 'readme.md' and 'helloNested.py', so you type '@readme' and '@hello' to find and select them. Now these 3 "Context Items" are displayed inline with the rest of your input.
![Context Items](/img/context-provider-example.png)
@ -200,7 +200,7 @@ For example, type "@Google python tutorial" if you want to search and discuss wa
Note: You can get an API key for free at [serper.dev](https://serper.dev).
### `@Isse`
### `@Issue`
Reference the conversation in a GitHub issue.
@ -451,7 +451,7 @@ The HttpContextProvider makes a POST request to the url passed in the configurat
{
"name": "http",
"params": {
"url": "https://api.example.com/v1/users",
"url": "https://api.example.com/v1/users"
}
}
]
@ -459,6 +459,7 @@ The HttpContextProvider makes a POST request to the url passed in the configurat
```
The receiving URL should expect to receive the following parameters:
```json title="POST parameters"
{
query: string,
@ -467,6 +468,7 @@ The receiving URL should expect to receive the following parameters:
```
The response 200 OK should be a JSON object with the following structure:
```json title="Response"
[
{

View file

@ -245,7 +245,10 @@ function CodeBlockToolBar(props: CodeBlockToolBarProps) {
return (
<ToolbarDiv>
<div className="flex items-center gap-1 cursor-pointer max-w-[50%]">
<div
className="flex items-center gap-1 cursor-pointer max-w-[50%]"
onClick={onClickHeader}
>
<FileIcon height="20px" width="20px" filename={props.filepath} />
<span className="truncate">{getBasename(props.filepath)}</span>
</div>

View file

@ -2,7 +2,7 @@ import { debounce } from "lodash";
import { useEffect, useState } from "react";
import { useSelector } from "react-redux";
import styled from "styled-components";
import { defaultBorderRadius } from "..";
import { defaultBorderRadius, vscEditorBackground } from "..";
import useUIConfig from "../../hooks/useUIConfig";
import { RootState } from "../../redux/store";
import CodeBlockToolBar from "./CodeBlockToolbar";
@ -12,6 +12,7 @@ const TopDiv = styled.div`
outline-offset: -0.5px;
border-radius: ${defaultBorderRadius};
margin-bottom: 8px;
background-color: ${vscEditorBackground};
`;
function childToText(child: any) {