project: Add remote support for adding paths to .gitignore (#56368)

Release Notes:

- Fixed remote support for adding paths to .gitignore



The problem solved by this PR is: when opening a remote project,
right-clicking a new file in the git panel and clicking "Add to
.gitignore" does not work.

---------

Co-authored-by: Cole Miller <cole@zed.dev>
edeaf598c7Xiaobo Liu committed on 7/18/2026, 9:39:15 PM· committed by GitHubparentaa09234
6 files changedLine totals unavailable