microsoft / vscode-filewatcher-windows

The file watcher used for VS Code on Windows.
Other
98 stars 59 forks source link

Closing tab on file delete (View email source - Outlook 2013) #13

Closed MuadDib closed 4 years ago

MuadDib commented 7 years ago
Extension Author (truncated) Version
xml Dot 1.9.2
url-encode fle 1.1.0
ecdc mit 0.10.3
prettify-json moh 0.0.3
csharp ms- 1.12.1

Steps to Reproduce:

  1. Set VS Code as default app to open *.txt
  2. Open Outlook 2013 (15.0.4971.1000)
  3. Open Email in new window
  4. Go to Actions -> Other Actions -> View Source
  5. For about a second you will see the source in VS Code and then it disapears

Reproduces without extensions: Yes

There looks like there are 2 contributing factors to this issue:

  1. VS Code auto closes tab when file is deleted.
  2. VS Code doesn't keep Open handle on files, and Outlook deletes file as soon as it registers that no other app is holding it.

Comparing to other code editors: Notepad and Notepad++ hold the handle and Outlook is not immediately deleting the file. Notepad++ will ask you what to do if it detects that file is delted.