extract language strings from package.json

This commit is contained in:
Johannes 2022-05-03 17:22:17 +02:00
parent d211238037
commit a86c6ffae5
No known key found for this signature in database
GPG key ID: 6DEF802A22264FCA
2 changed files with 65 additions and 34 deletions

View file

@ -1,8 +1,8 @@
{
"name": "references-view",
"displayName": "Reference Search View",
"displayName": "%displayName%",
"description": "%description%",
"icon": "media/icon.png",
"description": "Reference Search results as separate, stable view in the sidebar",
"version": "1.0.0",
"publisher": "vscode",
"license": "MIT",
@ -40,7 +40,7 @@
"configuration": {
"properties": {
"references.preferredLocation": {
"description": "Controls whether 'Peek References' or 'Find References' is invoked when selecting code lens references",
"description": "%config.references.preferredLocation%",
"type": "string",
"default": "peek",
"enum": [
@ -48,8 +48,8 @@
"view"
],
"enumDescriptions": [
"Show references in peek editor.",
"Show references in separate view."
"%config.references.preferredLocation.peek%",
"%config.references.preferredLocation.view%"
]
}
}
@ -59,7 +59,7 @@
{
"id": "references-view",
"icon": "$(references)",
"title": "References"
"title": "%container.title%"
}
]
},
@ -67,7 +67,7 @@
"references-view": [
{
"id": "references-view.tree",
"name": "Results",
"name": "%view.title%",
"when": "reference-list.isActive"
}
]
@ -75,111 +75,111 @@
"commands": [
{
"command": "references-view.findReferences",
"title": "Find All References",
"category": "References"
"title": "%cmd.references-view.findReferences%",
"category": "%cmd.category.references%"
},
{
"command": "references-view.findImplementations",
"title": "Find All Implementations",
"category": "References"
"title": "%cmd.references-view.findImplementations%",
"category": "%cmd.category.references%"
},
{
"command": "references-view.clearHistory",
"title": "Clear History",
"category": "References",
"title": "%cmd.references-view.clearHistory%",
"category": "%cmd.category.references%",
"icon": "$(clear-all)"
},
{
"command": "references-view.clear",
"title": "Clear",
"category": "References",
"title": "%cmd.references-view.clear%",
"category": "%cmd.category.references%",
"icon": "$(clear-all)"
},
{
"command": "references-view.refresh",
"title": "Refresh",
"category": "References",
"title": "%cmd.references-view.refresh%",
"category": "%cmd.category.references%",
"icon": "$(refresh)"
},
{
"command": "references-view.pickFromHistory",
"title": "Show History",
"category": "References"
"title": "%cmd.references-view.pickFromHistory%",
"category": "%cmd.category.references%"
},
{
"command": "references-view.removeReferenceItem",
"title": "Dismiss",
"title": "%cmd.references-view.removeReferenceItem%",
"icon": "$(close)"
},
{
"command": "references-view.copy",
"title": "Copy"
"title": "%cmd.references-view.copy%"
},
{
"command": "references-view.copyAll",
"title": "Copy All"
"title": "%cmd.references-view.copyAll%"
},
{
"command": "references-view.copyPath",
"title": "Copy Path"
"title": "%cmd.references-view.copyPath%"
},
{
"command": "references-view.refind",
"title": "Rerun",
"title": "%cmd.references-view.refind%",
"icon": "$(refresh)"
},
{
"command": "references-view.showCallHierarchy",
"title": "Show Call Hierarchy",
"title": "%cmd.references-view.showCallHierarchy%",
"category": "Calls"
},
{
"command": "references-view.showOutgoingCalls",
"title": "Show Outgoing Calls",
"title": "%cmd.references-view.showOutgoingCalls%",
"category": "Calls",
"icon": "$(call-outgoing)"
},
{
"command": "references-view.showIncomingCalls",
"title": "Show Incoming Calls",
"title": "%cmd.references-view.showIncomingCalls%",
"category": "Calls",
"icon": "$(call-incoming)"
},
{
"command": "references-view.removeCallItem",
"title": "Dismiss",
"title": "%cmd.references-view.removeCallItem%",
"icon": "$(close)"
},
{
"command": "references-view.next",
"title": "Go to Next Reference",
"title": "%cmd.references-view.next%",
"enablement": "references-view.canNavigate"
},
{
"command": "references-view.prev",
"title": "Go to Previous Reference",
"title": "%cmd.references-view.prev%",
"enablement": "references-view.canNavigate"
},
{
"command": "references-view.showTypeHierarchy",
"title": "Show Type Hierarchy",
"title": "%cmd.references-view.showTypeHierarchy%",
"category": "Types"
},
{
"command": "references-view.showSupertypes",
"title": "Show Supertypes",
"title": "%cmd.references-view.showSupertypes%",
"category": "Types",
"icon": "$(type-hierarchy-super)"
},
{
"command": "references-view.showSubtypes",
"title": "Show Subtypes",
"title": "%cmd.references-view.showSubtypes%",
"category": "Types",
"icon": "$(type-hierarchy-sub)"
},
{
"command": "references-view.removeTypeItem",
"title": "Dismiss",
"title": "%cmd.references-view.removeTypeItem%",
"icon": "$(close)"
}
],

View file

@ -0,0 +1,31 @@
{
"displayName": "Reference Search View",
"description": "Reference Search results as separate, stable view in the sidebar",
"config.references.preferredLocation": "Controls whether 'Peek References' or 'Find References' is invoked when selecting code lens references",
"config.references.preferredLocation.peek": "Show references in peek editor.",
"config.references.preferredLocation.view": "Show references in separate view.",
"container.title": "References",
"view.title": "Results",
"cmd.category.references": "References",
"cmd.references-view.findReferences": "Find All References",
"cmd.references-view.findImplementations": "Find All Implementations",
"cmd.references-view.clearHistory": "Clear History",
"cmd.references-view.clear": "Clear",
"cmd.references-view.refresh": "Refresh",
"cmd.references-view.pickFromHistory": "Show History",
"cmd.references-view.removeReferenceItem": "Dismiss",
"cmd.references-view.copy": "Copy",
"cmd.references-view.copyAll": "Copy All",
"cmd.references-view.copyPath": "Copy Path",
"cmd.references-view.refind": "Rerun",
"cmd.references-view.showCallHierarchy": "Show Call Hierarchy",
"cmd.references-view.showOutgoingCalls": "Show Outgoing Calls",
"cmd.references-view.showIncomingCalls": "Show Incoming Calls",
"cmd.references-view.removeCallItem": "Dismiss",
"cmd.references-view.next": "Go to Next Reference",
"cmd.references-view.prev": "Go to Previous Reference",
"cmd.references-view.showTypeHierarchy": "Show Type Hierarchy",
"cmd.references-view.showSupertypes": "Show Supertypes",
"cmd.references-view.showSubtypes": "Show Subtypes",
"cmd.references-view.removeTypeItem": "Dismiss"
}