Skip to content

Apply fails if target files contains three backticks #5842

Open
@IngLP

Description

@IngLP

Before submitting your bug report

Relevant environment info

- OS: macOS
- Continue version: 1.0.18
- IDE version: IntelliJ
- Model:
- config:
  

  
  OR link to assistant in Continue hub:

Description

When applying changes using whatever LLM to a code file that contains 3 backticks (```), the file is TRUNCATED at these backticks. The rest of the file is discarded.

To reproduce

  1. Create a file with some text and then 3 backticks in a multiline string, then some other text.
  2. Ask an LLM to apply some changes, e.g. change the first line of the text
  3. Apply the changes from the chat.
  4. The file is truncated after the backticks.

Log output

Metadata

Metadata

Labels

area:applygood-first-issueSuggested issue for new contributorside:jetbrainsRelates specifically to JetBrains extensionkind:bugIndicates an unexpected problem or unintended behavioros:macHappening specifically on Mac

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions