How do I reset my view? #142
-
UPDATE (22.10.2022): It's not a feature. Yet. You can help by upvoting it. We need 20 upvotes in 60 days. See microsoft/vscode#162366. As an extension developer, I want to be able to reset my views as if I had just opened my extension for the first time. All views in their original panels, all views hidden or shown as per their default settings, and all in the size the defaults dictate. How do I do this? I tried calling |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @Tommycore , You could try using the For instance, your "contributes": {
"views": {
"project-manager": [
{
"id": "projectsExplorerFavorites",
"name": "Favorites"
}, Then you use await vscode.commands.executeCommand("projectsExplorerFavorites.resetViewLocation"); I did a small test and it kind of work,
I guess it is a good start for you. Hope this helps |
Beta Was this translation helpful? Give feedback.
Hi @Tommycore ,
You could try using the
yourView.resetViewLocation
command, whereyourView
is the name you used in thecontributions
section inpackage.json
.For instance, your
package.json
:Then you use
I did a small test and it kind of work,
I guess it is a good start f…