{ "name": "custom-view-samples", "displayName": "Custom view Samples", "description": "Samples for VSCode's view API", "version": "0.0.1", "publisher": "vscode-samples", "private": true, "license": "MIT", "repository": { "type": "git", "url": "https://github.com/Microsoft/vscode-extension-samples" }, "engines": { "vscode": "^1.74.0" }, "categories": [ "Other" ], "activationEvents": [ "onLanguage:json", "onLanguage:jsonc" ], "main": "./out/extension.js", "contributes": { "viewsContainers": { "activitybar": [ { "id": "package-explorer", "title": "Package Explorer", "icon": "media/dep.svg" } ] }, "views": { "package-explorer": [ { "id": "nodeDependencies", "name": "Node Dependencies", "icon": "media/dep.svg", "contextualTitle": "Package Explorer" } ], "explorer": [ { "id": "jsonOutline", "name": "Json Outline", "when": "jsonOutlineEnabled" }, { "id": "ftpExplorer", "name": "FTP Explorer" }, { "id": "fileExplorer", "name": "File Explorer" }, { "id": "testView", "name": "Test View" }, { "id": "testViewDragAndDrop", "name": "Test View Drag and Drop" } ] }, "commands": [ { "command": "nodeDependencies.refreshEntry", "title": "Refresh", "icon": { "light": "resources/light/refresh.svg", "dark": "resources/dark/refresh.svg" } }, { "command": "nodeDependencies.addEntry", "title": "Add" }, { "command": "nodeDependencies.editEntry", "title": "Edit", "icon": { "light": "resources/light/edit.svg", "dark": "resources/dark/edit.svg" } }, { "command": "nodeDependencies.deleteEntry", "title": "Delete" }, { "command": "ftpExplorer.refresh", "title": "Refresh", "icon": { "light": "resources/light/refresh.svg", "dark": "resources/dark/refresh.svg" } }, { "command": "ftpExplorer.openFtpResource", "title": "Open FTP Resource" }, { "command": "ftpExplorer.revealResource", "title": "Reveal in FTP View" }, { "command": "jsonOutline.refresh", "title": "Refresh", "icon": { "light": "resources/light/refresh.svg", "dark": "resources/dark/refresh.svg" } }, { "command": "jsonOutline.refreshNode", "title": "Refresh", "icon": { "light": "resources/light/refresh.svg", "dark": "resources/dark/refresh.svg" } }, { "command": "jsonOutline.renameNode", "title": "Rename" }, { "command": "fileExplorer.refreshFile", "title": "Refresh", "icon": { "light": "resources/light/refresh.svg", "dark": "resources/dark/refresh.svg" } }, { "command": "fileExplorer.openFile", "title": "Open File" }, { "command": "testView.reveal", "title": "Test View: Reveal" }, { "command": "testView.changeTitle", "title": "Test View: Change Title" } ], "menus": { "commandPalette": [ { "command": "ftpExplorer.revealResource" } ], "view/title": [ { "command": "nodeDependencies.refreshEntry", "when": "view == nodeDependencies", "group": "navigation" }, { "command": "jsonOutline.renameNode", "when": "view == jsonOutline" }, { "command": "nodeDependencies.addEntry", "when": "view == nodeDependencies" }, { "command": "jsonOutline.refresh", "when": "view == jsonOutline", "group": "navigation" }, { "command": "ftpExplorer.refresh", "when": "view == ftpExplorer", "group": "navigation" } ], "view/item/context": [ { "command": "nodeDependencies.editEntry", "when": "view == nodeDependencies && viewItem == dependency", "group": "inline" }, { "command": "nodeDependencies.deleteEntry", "when": "view == nodeDependencies && viewItem == dependency" }, { "command": "jsonOutline.renameNode", "when": "view == jsonOutline" }, { "command": "jsonOutline.refreshNode", "when": "view == jsonOutline", "group": "inline" }, { "command": "fileExplorer.refreshFile", "when": "view == fileExplorer && viewItem == file", "group": "inline" } ] }, "configuration": [ { "title": "JSON Outline", "properties": { "jsonOutline.autorefresh": { "type": "boolean", "description": "Auto refresh the JSON outline view when the contents of the json file change.", "default": false } } } ] }, "scripts": { "vscode:prepublish": "npm run compile", "compile": "tsc -p ./", "watch": "tsc -watch -p ./", "lint": "eslint" }, "devDependencies": { "@eslint/js": "^9.13.0", "@stylistic/eslint-plugin": "^2.9.0", "@types/ftp": "^0.3.33", "@types/mkdirp": "^0.5.2", "@types/node": "^20", "@types/rimraf": "^2.0.2", "@types/vscode": "^1.73.0", "eslint": "^9.13.0", "typescript": "^5.7.2", "typescript-eslint": "^8.16.0" }, "dependencies": { "ftp": "^0.3.10", "jsonc-parser": "^0.4.2", "minimist": "^1.2.6", "mkdirp": "^0.5.1", "rimraf": "^2.6.2" } }