{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/50099","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/50099/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/50099/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/50099/events","html_url":"https://github.com/Microsoft/vscode/issues/50099","id":324365262,"number":50099,"title":"Trying to delete a file and \"save as\" in one operation results in data loss","user":{"login":"jhandby","id":378547,"avatar_url":"https://avatars1.githubusercontent.com/u/378547?v=4","gravatar_id":"","url":"https://api.github.com/users/jhandby","html_url":"https://github.com/jhandby","followers_url":"https://api.github.com/users/jhandby/followers","following_url":"https://api.github.com/users/jhandby/following{/other_user}","gists_url":"https://api.github.com/users/jhandby/gists{/gist_id}","starred_url":"https://api.github.com/users/jhandby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhandby/subscriptions","organizations_url":"https://api.github.com/users/jhandby/orgs","repos_url":"https://api.github.com/users/jhandby/repos","events_url":"https://api.github.com/users/jhandby/events{/privacy}","received_events_url":"https://api.github.com/users/jhandby/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-18T10:59:45Z","updated_at":"2018-05-18T10:59:45Z","closed_at":null,"author_association":"NONE","body":"\r\nIssue Type: <b>Bug</b>\r\n\r\n1. Open a new tab (File -> New File). Paste in some text\r\n\r\n2. File -> Save - call the file \"something.txt\"\r\n\r\n3. Realise that you meant to use the .sql file extension, not .txt. So, open \"Save As\", and in the file browse dialog:\r\n - delete \"something.txt\" using the Windows right click menu on that file\r\n - enter \"something.sql\" as the filename in the text field at the bottom of the Save dialog\r\n - click 'Save'\r\n\r\n4. Visual Studio Code abruptly closes the tab without any kind of save, discarding its contents, and complains that it can't stat the original file. Result = work lost.\r\n\r\n\r\nVS Code version: Code 1.23.1 (d0182c3417d225529c6d5ad24b7572815d0de9ac, 2018-05-10T17:11:17.614Z)\r\nOS version: Windows_NT x64 10.0.15063\r\n\r\n<details>\r\n<summary>System Info</summary>\r\n\r\n|Item|Value|\r\n|---|---|\r\n|CPUs|Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz (4 x 2594)|\r\n|GPU Status|2d_canvas: enabled<br>flash_3d: enabled<br>flash_stage3d: enabled<br>flash_stage3d_baseline: enabled<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>native_gpu_memory_buffers: disabled_software<br>rasterization: disabled_software<br>video_decode: enabled<br>video_encode: enabled<br>vpx_decode: unavailable_software<br>webgl: enabled<br>webgl2: enabled|\r\n|Memory (System)|15.89GB (7.79GB free)|\r\n|Process Argv|C:\\Program Files\\Microsoft VS Code\\Code.exe|\r\n|Screen Reader|no|\r\n|VM|0%|\r\n\r\n</details><details><summary>Extensions (9)</summary>\r\n\r\nExtension|Author (truncated)|Version\r\n---|---|---\r\nxml|Dot|1.9.2\r\ngitlens|eam|8.3.0\r\ncode-runner|for|0.9.3\r\nIonide-fsharp|Ion|3.20.4\r\nIonide-Paket|Ion|1.11.0\r\nmssql|ms-|1.3.1\r\ncsharp|ms-|1.15.2\r\nPowerShell|ms-|1.7.0\r\nerlang|pgo|0.3.2\r\n\r\n\r\n</details>\r\n<!-- generated by issue reporter -->"}}
{"actor":{"display_login":"jhandby"}}