Skip to content

How do I reset my view? #142

Sep 27, 2022 · 1 comments · 4 replies

You must be logged in to vote

Hi @Tommycore ,

You could try using the yourView.resetViewLocation command, where yourView is the name you used in the contributions section in package.json.

For instance, your package.json:

        "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,

  • It moves the views back it its original container
  • It does not move to the original location (order), if the container has more than one view (but I didn't reset all, so maybe that's the reason)

I guess it is a good start f…

Replies: 1 comment 4 replies

You must be logged in to vote
4 replies
@Tommycore

@alefragnani

@Tommycore

@Tommycore

Answer selected by Tommycore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants