zed
zed copied to clipboard
linux: Replace current fs::watch with PollWatcher.
Follow with #11595, and comment.
- Currently, in linux platform, using
notify::recommanded_watcherfor watchconfig.jsonfile modify. - When using
ctrl-shift-ptoggle vim mode, will usingNamedTempFileto rename with exsit file,notifywill emitModifyandDeleteevent. - In current notify default impl,
Deleteevent will triggle watcher remove watch file anymore. Only restart Zed will work forconfig.jsonmodify. - replace with
PollWatcherwill not cause this problem.
But, there also leave another problem, because linux platform active_window not implement, after modify vim mode, need manual click other tab active vim mode work.
I don't know if this is accept modify.
Release Notes:
- N/A