Microsoft/vscode

Git - Discarding changes on open file error

Open

#114,374 opened on Jan 14, 2021

 (7 comments) (0 reactions) (1 assignee)TypeScript (39,847 forks)batch import
buggithelp wanted

Repository metrics

Stars
 (184,936 stars)
PR merge metrics
 (Avg merge 11h 43m) (1,000 merged PRs in 30d)

Description

Hi, In the source control view, using Git, if I try to discard changes on a file that is currently open (specifically, a CSV file open in Excel), I get an error message that is about arguments being wrong. I would imagine it should give me a file is open error instead of something about arguments.

Contributor guide