VSNotes icon indicating copy to clipboard operation
VSNotes copied to clipboard

Cant place vsnotes treeview under the workspace sidebar

Open kv-gits opened this issue 6 years ago • 3 comments

Only available on separate vsnotes sidebar by clicking vsnotes icon. But in docs I see it is under workspace sidebar.

kv-gits avatar Feb 05 '19 20:02 kv-gits

Found that it is feature of 0.5.1 Would be much more comfortable to keep both tree views - separate and in explorer.

kv-gits avatar Feb 06 '19 08:02 kv-gits

@kv-gits Would you mind including screenshots for reference?

Sent with GitHawk

wolfhoundjesse avatar Feb 06 '19 18:02 wolfhoundjesse

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

kv-gits avatar Feb 06 '19 20:02 kv-gits