Generate settings.json if deleted while WT is open (#9012)

The settings.json was not regenerated if WT was already open. This resulted in the `ShellExecute` from trying to open the settings to pop up Notepad and say that this file didn't exist. We now detect if the settings.json was deleted to kick off loading the settings.

Closes #8955
This commit is contained in:
Carlos Zamora 2021-02-03 02:45:11 -08:00 committed by GitHub
parent 6b7149d9e6
commit a5931fbead
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -841,7 +841,8 @@ namespace winrt::TerminalApp::implementation
// editors, who will write a temp file, then rename it to be the
// actual file you wrote. So listen for that too.
if (!(event == wil::FolderChangeEvent::Modified ||
event == wil::FolderChangeEvent::RenameNewName))
event == wil::FolderChangeEvent::RenameNewName ||
event == wil::FolderChangeEvent::Removed))
{
return;
}