This commit is contained in:
Nate Sesti 2023-06-12 10:21:04 -07:00
parent a2298cf463
commit eb9bb7862a
6 changed files with 7 additions and 6 deletions

View file

@ -3,7 +3,7 @@ from textwrap import dedent
from ...core.main import Step
from ...core.sdk import ContinueSDK
from ...steps.core.core import WaitForUserInputStep
from ...steps.main import MessageStep
from ...steps.core.core import MessageStep
from .steps import SetUpChessPipelineStep, SwitchDestinationStep, LoadDataStep
# Based on the following guide:

View file

@ -6,7 +6,7 @@ import time
from ...steps.find_and_replace import FindAndReplaceStep
from ...models.main import Range
from ...models.filesystem import RangeInFile
from ...steps.main import MessageStep
from ...steps.core.core import MessageStep
from ...core.sdk import Models
from ...core.observation import DictObservation, InternalErrorObservation
from ...models.filesystem_edit import AddFile, FileEdit

View file

@ -85,7 +85,7 @@ class ShellCommandsStep(Step):
{output}
```
This is a brief summary of the error followed by a suggestion on how it can be fixed:"""), with_context=sdk.chat_context)
This is a brief summary of the error followed by a suggestion on how it can be fixed:"""), with_history=sdk.chat_context)
sdk.raise_exception(
title="Error while running query", message=output, with_step=MessageStep(name=f"Suggestion to solve error {AI_ASSISTED_STRING}", message=suggestion)

View file

@ -25,3 +25,4 @@ class FindAndReplaceStep(Step):
))
file_content = file_content[:start_index] + \
self.replacement + file_content[end_index:]
await sdk.ide.saveFile(self.filepath)

View file

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

View file

@ -14,7 +14,7 @@
"displayName": "Continue",
"pricing": "Free",
"description": "Refine code 10x faster",
"version": "0.0.31",
"version": "0.0.34",
"publisher": "Continue",
"engines": {
"vscode": "^1.74.0"