Skip to content

Always edits .gitignore file on load #7108

@dunks184

Description

@dunks184

Summary

This extension consistently modifies my .gitignore file on start up. This is VERY annoying. please fix this.

I think it's linting the file... But I should be in control of when and how my files get linted. Not some random extension's background start up process.

Steps To Reproduce:

  1. Open VSCode in a Salesforce Metadata repo (ie: one with an sfdx-project.json file
  2. add a few blank lines to the .gitignore file within this repo and commit the change
  3. Run git status to ensure your working tree is clean
  4. Restart the Extension Host (or completely restart VSCode)
  5. Once the extensions have finished loading, run git status again and note that the .gitignore file has been modified to remove the new lines at the end of the file.

Expected result

Expected no change to any files in my repo

Actual result

Once the extensions have finished loading, run git status again and note that the .gitignore file has been modified to remove the new lines at the end of the file.

Additional information

Feel free to attach a screenshot.

Salesforce Extension Version in VS Code: 66.3.2

Salesforce CLI Version: @salesforce/cli/2.127.2 darwin-arm64 node-v22.19.0

OS and version: Apple M4 Pro -> MacOS Tahoe Version 26.3.1 (a)

VS Code version: 1.113.0

Most recent version of the extensions where this was working: 65.17.2

Problem first seen in version: 65.17.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions