OpenLiberty / liberty-tools-vscode

Visual Studio Code extension for Liberty Tools
https://marketplace.visualstudio.com/items?itemName=Open-Liberty.liberty-dev-vscode-ext
Eclipse Public License 2.0
18 stars 35 forks source link

Cannot clear the global state when the user closes the workspace from file menu #394

Open JoshwinThomasIBM opened 1 week ago

JoshwinThomasIBM commented 1 week ago

Currently we are saving the projects selected by the user for adding into the dashboard in global state before the workspace is saved by the user, once it is saved we need to clear the states from global state since global state is common for all vs code sessions . But if the user chooses file -> close workspace currently we cannot hook into this flow and clear the states . Need to figure out a way to clear the states in this scenario , so that these data won't be available for other vs code sessions and we can prevent mistakingly adding these projects into liberty dashboard in other sessions