patch
This commit is contained in:
parent
4411dc39c1
commit
c84ec8f37e
7 changed files with 10 additions and 17 deletions
|
|
@ -254,7 +254,7 @@ class DefaultModelEditCodeStep(Step):
|
|||
return "</modified_code_to_edit>" in line or "</code_to_edit>" in line
|
||||
|
||||
def line_to_be_ignored(self, line: str, is_first_line: bool = False) -> bool:
|
||||
return ("```" in line and is_first_line) or "<modified_code_to_edit>" in line or "<file_prefix>" in line or "</file_prefix>" in line or "<file_suffix>" in line or "</file_suffix>" in line or "<user_request>" in line or "</user_request>" in line or "<code_to_edit>" in line
|
||||
return "```" in line or "<modified_code_to_edit>" in line or "<file_prefix>" in line or "</file_prefix>" in line or "<file_suffix>" in line or "</file_suffix>" in line or "<user_request>" in line or "</user_request>" in line or "<code_to_edit>" in line
|
||||
|
||||
async def stream_rif(self, rif: RangeInFileWithContents, sdk: ContinueSDK):
|
||||
full_file_contents = await sdk.ide.readFile(rif.filepath)
|
||||
|
|
|
|||
|
|
@ -23,4 +23,5 @@ react-app/src
|
|||
**/__pycache__
|
||||
|
||||
scripts/data
|
||||
scripts/env
|
||||
scripts/env
|
||||
scripts/.continue_env_installed
|
||||
4
extension/package-lock.json
generated
4
extension/package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "continue",
|
||||
"version": "0.0.73",
|
||||
"version": "0.0.74",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "continue",
|
||||
"version": "0.0.73",
|
||||
"version": "0.0.74",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@electron/rebuild": "^3.2.10",
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
"displayName": "Continue",
|
||||
"pricing": "Free",
|
||||
"description": "Accelerating software development with language models",
|
||||
"version": "0.0.73",
|
||||
"version": "0.0.74",
|
||||
"publisher": "Continue",
|
||||
"engines": {
|
||||
"vscode": "^1.74.0"
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "tsc && vite build",
|
||||
"build": "tsc && vite build --sourcemap",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ function CopyButton(props: { textToCopy: string; visible: boolean }) {
|
|||
);
|
||||
}
|
||||
|
||||
function CodeBlock(props: { children: string }) {
|
||||
function CodeBlock(props: { children: React.ReactNode }) {
|
||||
const [result, setResult] = useState<AutoHighlightResult | undefined>(
|
||||
undefined
|
||||
);
|
||||
|
|
|
|||
|
|
@ -246,18 +246,10 @@ function StepContainer(props: StepContainerProps) {
|
|||
className="overflow-x-scroll"
|
||||
components={{
|
||||
pre: ({ node, ...props }) => {
|
||||
return (
|
||||
<CodeBlock
|
||||
children={props.children[0] as string}
|
||||
></CodeBlock>
|
||||
);
|
||||
return <CodeBlock children={props.children[0]} />;
|
||||
},
|
||||
code: ({ node, ...props }) => {
|
||||
return (
|
||||
<StyledCode
|
||||
children={props.children[0] as string}
|
||||
></StyledCode>
|
||||
);
|
||||
return <StyledCode children={props.children[0]} />;
|
||||
},
|
||||
}}
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue