405 lines
12 KiB
JSON
405 lines
12 KiB
JSON
|
{
|
||
|
"name": "references-view",
|
||
|
"displayName": "%displayName%",
|
||
|
"description": "%description%",
|
||
|
"icon": "media/icon.png",
|
||
|
"version": "1.0.0",
|
||
|
"publisher": "vscode",
|
||
|
"license": "MIT",
|
||
|
"engines": {
|
||
|
"vscode": "^1.67.0"
|
||
|
},
|
||
|
"capabilities": {
|
||
|
"virtualWorkspaces": true,
|
||
|
"untrustedWorkspaces": {
|
||
|
"supported": true
|
||
|
}
|
||
|
},
|
||
|
"repository": {
|
||
|
"type": "git",
|
||
|
"url": "https://github.com/Microsoft/vscode-references-view"
|
||
|
},
|
||
|
"bugs": {
|
||
|
"url": "https://github.com/Microsoft/vscode-references-view/issues"
|
||
|
},
|
||
|
"activationEvents": [
|
||
|
"onCommand:references-view.find",
|
||
|
"onCommand:editor.action.showReferences"
|
||
|
],
|
||
|
"main": "./out/extension",
|
||
|
"browser": "./dist/extension.js",
|
||
|
"contributes": {
|
||
|
"configuration": {
|
||
|
"properties": {
|
||
|
"references.preferredLocation": {
|
||
|
"description": "%config.references.preferredLocation%",
|
||
|
"type": "string",
|
||
|
"default": "peek",
|
||
|
"enum": [
|
||
|
"peek",
|
||
|
"view"
|
||
|
],
|
||
|
"enumDescriptions": [
|
||
|
"%config.references.preferredLocation.peek%",
|
||
|
"%config.references.preferredLocation.view%"
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"viewsContainers": {
|
||
|
"activitybar": [
|
||
|
{
|
||
|
"id": "references-view",
|
||
|
"icon": "$(references)",
|
||
|
"title": "%container.title%"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"views": {
|
||
|
"references-view": [
|
||
|
{
|
||
|
"id": "references-view.tree",
|
||
|
"name": "%view.title%",
|
||
|
"when": "reference-list.isActive"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"commands": [
|
||
|
{
|
||
|
"command": "references-view.findReferences",
|
||
|
"title": "%cmd.references-view.findReferences%",
|
||
|
"category": "%cmd.category.references%"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.findImplementations",
|
||
|
"title": "%cmd.references-view.findImplementations%",
|
||
|
"category": "%cmd.category.references%"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.clearHistory",
|
||
|
"title": "%cmd.references-view.clearHistory%",
|
||
|
"category": "%cmd.category.references%",
|
||
|
"icon": "$(clear-all)"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.clear",
|
||
|
"title": "%cmd.references-view.clear%",
|
||
|
"category": "%cmd.category.references%",
|
||
|
"icon": "$(clear-all)"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.refresh",
|
||
|
"title": "%cmd.references-view.refresh%",
|
||
|
"category": "%cmd.category.references%",
|
||
|
"icon": "$(refresh)"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.pickFromHistory",
|
||
|
"title": "%cmd.references-view.pickFromHistory%",
|
||
|
"category": "%cmd.category.references%"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.removeReferenceItem",
|
||
|
"title": "%cmd.references-view.removeReferenceItem%",
|
||
|
"icon": "$(close)"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.copy",
|
||
|
"title": "%cmd.references-view.copy%"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.copyAll",
|
||
|
"title": "%cmd.references-view.copyAll%"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.copyPath",
|
||
|
"title": "%cmd.references-view.copyPath%"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.refind",
|
||
|
"title": "%cmd.references-view.refind%",
|
||
|
"icon": "$(refresh)"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.showCallHierarchy",
|
||
|
"title": "%cmd.references-view.showCallHierarchy%",
|
||
|
"category": "Calls"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.showOutgoingCalls",
|
||
|
"title": "%cmd.references-view.showOutgoingCalls%",
|
||
|
"category": "Calls",
|
||
|
"icon": "$(call-outgoing)"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.showIncomingCalls",
|
||
|
"title": "%cmd.references-view.showIncomingCalls%",
|
||
|
"category": "Calls",
|
||
|
"icon": "$(call-incoming)"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.removeCallItem",
|
||
|
"title": "%cmd.references-view.removeCallItem%",
|
||
|
"icon": "$(close)"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.next",
|
||
|
"title": "%cmd.references-view.next%",
|
||
|
"enablement": "references-view.canNavigate"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.prev",
|
||
|
"title": "%cmd.references-view.prev%",
|
||
|
"enablement": "references-view.canNavigate"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.showTypeHierarchy",
|
||
|
"title": "%cmd.references-view.showTypeHierarchy%",
|
||
|
"category": "Types"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.showSupertypes",
|
||
|
"title": "%cmd.references-view.showSupertypes%",
|
||
|
"category": "Types",
|
||
|
"icon": "$(type-hierarchy-super)"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.showSubtypes",
|
||
|
"title": "%cmd.references-view.showSubtypes%",
|
||
|
"category": "Types",
|
||
|
"icon": "$(type-hierarchy-sub)"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.removeTypeItem",
|
||
|
"title": "%cmd.references-view.removeTypeItem%",
|
||
|
"icon": "$(close)"
|
||
|
}
|
||
|
],
|
||
|
"menus": {
|
||
|
"editor/context": [
|
||
|
{
|
||
|
"command": "references-view.findReferences",
|
||
|
"when": "editorHasReferenceProvider",
|
||
|
"group": "0_navigation@1"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.findImplementations",
|
||
|
"when": "editorHasImplementationProvider",
|
||
|
"group": "0_navigation@2"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.showCallHierarchy",
|
||
|
"when": "editorHasCallHierarchyProvider",
|
||
|
"group": "0_navigation@3"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.showTypeHierarchy",
|
||
|
"when": "editorHasTypeHierarchyProvider",
|
||
|
"group": "0_navigation@4"
|
||
|
}
|
||
|
],
|
||
|
"view/title": [
|
||
|
{
|
||
|
"command": "references-view.clear",
|
||
|
"group": "navigation@3",
|
||
|
"when": "view == references-view.tree && reference-list.hasResult"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.clearHistory",
|
||
|
"group": "navigation@3",
|
||
|
"when": "view == references-view.tree && reference-list.hasHistory && !reference-list.hasResult"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.refresh",
|
||
|
"group": "navigation@2",
|
||
|
"when": "view == references-view.tree && reference-list.hasResult"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.showOutgoingCalls",
|
||
|
"group": "navigation@1",
|
||
|
"when": "view == references-view.tree && reference-list.hasResult && reference-list.source == callHierarchy && references-view.callHierarchyMode == showIncoming"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.showIncomingCalls",
|
||
|
"group": "navigation@1",
|
||
|
"when": "view == references-view.tree && reference-list.hasResult && reference-list.source == callHierarchy && references-view.callHierarchyMode == showOutgoing"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.showSupertypes",
|
||
|
"group": "navigation@1",
|
||
|
"when": "view == references-view.tree && reference-list.hasResult && reference-list.source == typeHierarchy && references-view.typeHierarchyMode != supertypes"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.showSubtypes",
|
||
|
"group": "navigation@1",
|
||
|
"when": "view == references-view.tree && reference-list.hasResult && reference-list.source == typeHierarchy && references-view.typeHierarchyMode != subtypes"
|
||
|
}
|
||
|
],
|
||
|
"view/item/context": [
|
||
|
{
|
||
|
"command": "references-view.removeReferenceItem",
|
||
|
"group": "inline",
|
||
|
"when": "view == references-view.tree && viewItem == file-item || view == references-view.tree && viewItem == reference-item"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.removeCallItem",
|
||
|
"group": "inline",
|
||
|
"when": "view == references-view.tree && viewItem == call-item"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.removeTypeItem",
|
||
|
"group": "inline",
|
||
|
"when": "view == references-view.tree && viewItem == type-item"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.refind",
|
||
|
"group": "inline",
|
||
|
"when": "view == references-view.tree && viewItem == history-item"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.removeReferenceItem",
|
||
|
"group": "1",
|
||
|
"when": "view == references-view.tree && viewItem == file-item || view == references-view.tree && viewItem == reference-item"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.removeCallItem",
|
||
|
"group": "1",
|
||
|
"when": "view == references-view.tree && viewItem == call-item"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.removeTypeItem",
|
||
|
"group": "1",
|
||
|
"when": "view == references-view.tree && viewItem == type-item"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.refind",
|
||
|
"group": "1",
|
||
|
"when": "view == references-view.tree && viewItem == history-item"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.copy",
|
||
|
"group": "2@1",
|
||
|
"when": "view == references-view.tree && viewItem == file-item || view == references-view.tree && viewItem == reference-item"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.copyPath",
|
||
|
"group": "2@2",
|
||
|
"when": "view == references-view.tree && viewItem == file-item"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.copyAll",
|
||
|
"group": "2@3",
|
||
|
"when": "view == references-view.tree && viewItem == file-item || view == references-view.tree && viewItem == reference-item"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.showOutgoingCalls",
|
||
|
"group": "1",
|
||
|
"when": "view == references-view.tree && viewItem == call-item"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.showIncomingCalls",
|
||
|
"group": "1",
|
||
|
"when": "view == references-view.tree && viewItem == call-item"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.showSupertypes",
|
||
|
"group": "1",
|
||
|
"when": "view == references-view.tree && viewItem == type-item"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.showSubtypes",
|
||
|
"group": "1",
|
||
|
"when": "view == references-view.tree && viewItem == type-item"
|
||
|
}
|
||
|
],
|
||
|
"commandPalette": [
|
||
|
{
|
||
|
"command": "references-view.removeReferenceItem",
|
||
|
"when": "never"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.removeCallItem",
|
||
|
"when": "never"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.removeTypeItem",
|
||
|
"when": "never"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.copy",
|
||
|
"when": "never"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.copyAll",
|
||
|
"when": "never"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.copyPath",
|
||
|
"when": "never"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.refind",
|
||
|
"when": "never"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.findReferences",
|
||
|
"when": "editorHasReferenceProvider"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.clear",
|
||
|
"when": "reference-list.hasResult"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.clearHistory",
|
||
|
"when": "reference-list.isActive && !reference-list.hasResult"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.refresh",
|
||
|
"when": "reference-list.hasResult"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.pickFromHistory",
|
||
|
"when": "reference-list.isActive"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.next",
|
||
|
"when": "never"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.prev",
|
||
|
"when": "never"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"keybindings": [
|
||
|
{
|
||
|
"command": "references-view.findReferences",
|
||
|
"when": "editorHasReferenceProvider",
|
||
|
"key": "shift+alt+f12"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.next",
|
||
|
"when": "reference-list.hasResult",
|
||
|
"key": "f4"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.prev",
|
||
|
"when": "reference-list.hasResult",
|
||
|
"key": "shift+f4"
|
||
|
},
|
||
|
{
|
||
|
"command": "references-view.showCallHierarchy",
|
||
|
"when": "editorHasCallHierarchyProvider",
|
||
|
"key": "shift+alt+h"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"scripts": {
|
||
|
"compile": "npx gulp compile-extension:references-view",
|
||
|
"watch": "npx gulp watch-extension:references-view"
|
||
|
},
|
||
|
"devDependencies": {
|
||
|
"@types/node": "20.x"
|
||
|
}
|
||
|
}
|