Skip to content

Im unable to fix a merge conflict gone wrong #248007

@torbjorn

Description

@torbjorn

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.99.3-1744761595
  • OS Version: Ubuntu 24.04.2 LTS

Steps to Reproduce:

  1. mess up a git merge conflict
  2. observe that you're unable to fix the file with the merge helper enabled

Issue

I ended up with this file after a git rebase and conflict resolution went horrendously wrong:

image: hashicorp/terraform:latest

pipelines:
  default:
    - step:
        name: Terraform Plan
<<<<<<< HEAD
<<<<<<< HEAD
        runs-on:
          - linux
          - self.hosted
=======
>>>>>>> 24edb44 (the pipeline)
=======
        runs-on:
          - linux
          - self.hosted
>>>>>>> 4e76fc3 (removed gitlab)
        script:
          - terraform init
          - terraform validate
          - terraform fmt -check
          - terraform plan
  branches:
    main:
      - step:
          name: Terraform Apply
<<<<<<< HEAD
<<<<<<< HEAD
          runs-on:
            - linux
            - self.hosted
=======
>>>>>>> 24edb44 (the pipeline)
=======
          runs-on:
            - linux
            - self.hosted
>>>>>>> 4e76fc3 (removed gitlab)
          script:
            - terraform init
            - terraform validate
            - terraform apply -auto-approve

When editinf this file in vscode, it looks like this:

Image

I can click those small red arrow/triangles on the side, but the view offered doesnt let me actually edit the file. I just want to remove and/or clean up manually with no intervention from vscode to help me with the conflict annotation. Is that possible, short of disabling the entire thing in settings? (At that point I'd just do it in another editor, (vim/emacs/nano etc)

Metadata

Metadata

Assignees

Labels

gitGIT issuesinfo-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions