Microsoft/vscode

Custom editor autosave menubar state not updated properly

Aperta

#96.503 aperta il 29 apr 2020

 (8 commenti) (0 reazioni) (1 assegnatario)TypeScript (39.847 fork)batch import
bugcustom-editorshelp wanted

Metriche repository

Star
 (184.936 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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

  • [File -> Auto Save] Auto save enabled: "Save" is not triggered if you quickly (less than 1s) close the editor after making a change.

Linux-only

  • [File -> Auto Save] The "check" symbol is not shown when you enable "auto save" within the custom editor; however, the operation works.
  • [File -> Revert File] Sometimes the menu button is kept disabled when you start VSCode, even after changes.
  • [File -> Save All] Same behavior ^
  • [File -> Save] Same behavior ^; Ctrl+S works.
  • [File -> Save As] Same behavior ^; Ctrl+Shift+S works. note: the menu buttons become enabled when I open a text editor

Windows-only

  • [File -> Revert File] Can't use; always disabled.

Please let me know if you need any further information.

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

Guida contributor