Is it possible to clear data stored in the global state directly from the deactivate() method of an extension? #2455
Replies: 1 comment
-
Hi @JoshwinThomasIBM , The During your tests, are you sure you only had one VS Code window opened, prior to the reload command. If yes, could you try out closing and reopening VS Code, instead of reloading the window. BTW, this is what the documentation says about the
I wonder if reloading the window or simply closing the folder (which maintains an empty VS Code window) would call Hope this helps |
Beta Was this translation helpful? Give feedback.
-
I’m clearing global state data with context.globalState.update('libertyDataNew', '') in the deactivate() method, and it seems to work initially. But after reloading the extension, the data reappears. However, clearing it from activate() works as expected, even after reloading the extension . So, is it possible to reliably clear global state data in the deactivate() method?
Beta Was this translation helpful? Give feedback.
All reactions