Files
vscode-extension-samples/tree-view-sample/README.md

24 lines
1011 B
Markdown
Raw Permalink Normal View History

2018-05-31 11:51:59 +02:00
# Views & View Containers
This sample shows how to register and implement a custom tree view using the VS Code API. It has implementation for following views
2016-11-16 09:33:20 -08:00
2017-06-02 10:46:57 +02:00
- Node dependencies view
- Json Outline view
- Ftp file explorer view
2016-11-16 09:33:20 -08:00
2018-05-31 11:51:59 +02:00
These views help you in understanding how to use TreeView API, title actions, inline actions, context menu actions and how to use `when` context to show views and actions.
You can also learn how to contribute custom view containers and contribute views to it. For eg., Node dependencies view is shown under a Package Explorer custom view container.
![Package Explorer](./resources/package-explorer.png)
2016-11-16 09:33:20 -08:00
## Running the example
2018-03-20 07:49:39 +00:00
- Open this example in VS Code Insiders
2016-11-16 09:33:20 -08:00
- `npm install`
- `npm run compile`
- `F5` to start debugging
2018-05-31 11:51:59 +02:00
- FTP file explorer view should be shown in Explorer
- Json Outline view is shown in explorer when you open a json file and gets hidden when json file is closed.
- Node dependencies view is shown in Package explorer view container in Activity bar.