Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test view containers #48407

Closed
3 tasks done
sandy081 opened this issue Apr 23, 2018 · 0 comments
Closed
3 tasks done

Test view containers #48407

sandy081 opened this issue Apr 23, 2018 · 0 comments

Comments

@sandy081
Copy link
Member

sandy081 commented Apr 23, 2018

Refs: #43645

Complexity: 3

Write an extension that contributes view containers and views

  • Enable your extension to use proposed api by adding following flag to package.json
"enableProposedApi": true
  • Register a view container in activity bar using viewsContainers extension point. For example:
"contributes": {
	"viewsContainers": {
		"activitybar": [
                        {
			    "id": "test",
			    "title": "Test",
			     "icon": "resources/test.svg"
		        }
                  ]
	}
}
  • Add views to the above registered view container. For example:
"contributes": {
	"views": {
		"test": [
			{
				"id": "myview",
				"name": "My View"
			}
		]
	}
}

Verify:

  • Registered view container is shown in the activity bar
  • Views added to the above view container are shown
  • Make sure you can hide/show/move (position) the views
  • Make sure you can pin/unpin/hide/show/move (position) the new view container
  • Make sure the activity bar items retain state (pinned, visibility, position) on refresh.
  • Make sure there is a command to toggle view container. Eg: View: Open Test View
  • Make sure Views: Open View command shows newly added views are grouped under the correct container.
  • Make sure the View container and Views are not shown when the extension is disabled
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants