VSNotes
VSNotes copied to clipboard
Cant place vsnotes treeview under the workspace sidebar
Only available on separate vsnotes sidebar by clicking vsnotes icon. But in docs I see it is under workspace sidebar.
Found that it is feature of 0.5.1 Would be much more comfortable to keep both tree views - separate and in explorer.
In commit 0.5.1 treeview moved to separate sidebar. I just added adiitional treeview and append it to explorer.
function activate(context) {
const tv = new VSNotesTreeView()
vscode.window.registerTreeDataProvider('vsnotes', tv);
vscode.window.registerTreeDataProvider('vsnotescustom', tv);
...
}
and in package.json also
"views": {
"explorer": [{
"id": "vsnotes",
"name": "VS Notes"
}],
"vsnotescustom": [
{
"id": "vsnotescustom",
"name": "VS Notes"
}]
},
"viewsContainers": {
"activitybar": [{
"id": "vsnotescustom",
"title": "VS Notes",
"icon": "./media/icon/vsnotes_icon.svg"
}]
},
Now looks nicer