microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.38k stars 28.94k forks source link

Custom editor autosave menubar state not updated properly #96503

Open mjbvz opened 4 years ago

mjbvz commented 4 years ago

Hi @mjbvz @jrieken,

I've been catching up with the daily updates, thanks for them btw. While working on our stuff, I've been noticing some issues on VSCode. Probably they're known issues but I'm sharing here in case they've been missed somehow. I'm able to reproduce them on both our code and this code.

Linux and Windows

Linux-only

Windows-only

Please let me know if you need any further information.

Originally posted by @caponetto in https://github.com/microsoft/vscode/issues/77131#issuecomment-620571200

mjbvz commented 4 years ago

Wrong issue reference

mjbvz commented 4 years ago

@caponetto All of these should be fixed now except for the save menu items being disabled on first open. I'm having trouble tracking down why that is still happening

mjbvz commented 4 years ago

I've extracted the menus being disabled to #99407 so that we can verify the rest of these issues have been fixed

JacksonKearl commented 4 years ago

Is this regarding specifically text or binary custom editors? I'm seeing autosave afterdelay working correctly in both stable and insiders for text, but broken in both sable and insiders for binary.

Steps:

open .pawDraw with autoSave ondelay. make edits then quickly close. open again, edits are gone. if you wait a second before closing, the edits will persist.

JacksonKearl commented 4 years ago

[File -> Auto Save] The "check" symbol is not shown when you enable "auto save" within the custom editor; however, the operation works.

Still seeing this in insiders, the "Toggle Autosave" command occasionally doesn't seem to be reflected in the menu entry until a non-custom editor is rendered.

For instance here auto-save is off: image

fengzhiyang2019 commented 4 years ago

@

mjbvz commented 2 years ago

I just tested this again with the paw draw editor and it seems like the auto save entry is now reflected properly

If you're still seeing any issues related to this, please share the steps so I can investigate again

lramos15 commented 2 years ago

recording

Still seeing autosave state issues