Skip to content

Full diff having issues with slightly offset lines #1141

@hhoeflin

Description

@hhoeflin

I have been using the plugin for a little while and really like it. However in full_diff mode, there are issues with slightly offset lines. The actual lines mentioned in the copilot-chat itself are correct

Here for example, the chat itself states

[file:src/kanbanmark/tags.py](src/kanbanmark/tags.py) line:170-170

```python
def process_list_item(event_it: peekable[tuple[Event, Range]], depth: int = 0) -> ListItemBlock:
```

and is at the correct line, but the diff shows up at line 171.

When applying the patches separately, they are applied to the correct line.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions