Skip to content

Commit

Permalink
Add support for viewing datapacks in salesforce from the datapack exp…
Browse files Browse the repository at this point in the history
…lorer and the editor context.

Add new icons including Salesforce SVG.
Update definitions with new URL info for objects with alternate editor pages.
  • Loading branch information
Codeneos committed Apr 28, 2019
1 parent 401f3ff commit ea196b4
Show file tree
Hide file tree
Showing 18 changed files with 233 additions and 7 deletions.
42 changes: 40 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"publisher": "curlybracket",
"engines": {
"vscode": "^1.30.0"
"vscode": "^1.31.0"
},
"homepage": "https://github.com/Codeneos/vlocode#readme",
"categories": [
Expand All @@ -29,7 +29,7 @@
"onCommand:vlocity.exportDatapack",
"onCommand:vlocity.adminCommands",
"onCommand:vlocity.buildParentKeyFiles",
"onCommand:vlocity.buildDatapack",
"onCommand:vlocity.openSalesforce",
"onView:datapackExplorer",
"workspaceContains:**/*_datapack.json",
"workspaceContains:**/*_DataPack.json"
Expand Down Expand Up @@ -66,6 +66,10 @@
"command": "vlocity.viewDatapack.generic",
"title": "Vlocity: View Datapack"
},
{
"command": "vlocity.openSalesforce",
"title": "Vlocity: View in Salesforce"
},
{
"command": "vlocity.exportDatapack",
"title": "Vlocity: Export Datapack(s) from server"
Expand Down Expand Up @@ -114,6 +118,14 @@
"dark": "resources/dark/refresh.svg"
}
},
{
"command": "vlocity.datapackExplorer.openSalesforce",
"title": "View in Salesforce",
"icon": {
"light": "resources/light/external-link-small.svg",
"dark": "resources/dark/external-link-small.svg"
}
},
{
"command": "vlocity.buildDatapack",
"title": "Vlocity: Build Datapack"
Expand Down Expand Up @@ -165,6 +177,10 @@
"command": "vlocity.admin.clearPlatformCache",
"group": "v_vlocity"
},
{
"command": "vlocity.openSalesforce",
"group": "v_vlocity"
},
{
"command": "vlocity.buildDatapack",
"when": "false"
Expand All @@ -177,6 +193,10 @@
"command": "vlocity.datapackExplorer.refresh",
"when": "false"
},
{
"command": "vlocity.datapackExplorer.openSalesforce",
"when": "false"
},
{
"command": "vlocity.viewDatapack.generic",
"when": "false"
Expand All @@ -190,6 +210,10 @@
{
"command": "vlocity.deployDatapack",
"group": "v_vlocity"
},
{
"command": "vlocity.openSalesforce",
"group": "v_vlocity"
}
],
"editor/context": [
Expand All @@ -200,6 +224,10 @@
{
"command": "vlocity.deployDatapack",
"group": "v_vlocity"
},
{
"command": "vlocity.openSalesforce",
"group": "v_vlocity"
}
],
"view/title": [
Expand All @@ -215,10 +243,20 @@
"when": "viewItem == vlocity:datapack:object",
"group": "inline"
},
{
"command": "vlocity.datapackExplorer.openSalesforce",
"when": "viewItem == vlocity:datapack:object",
"group": "inline"
},
{
"command": "vlocity.datapackExplorer.export",
"when": "viewItem == vlocity:datapack:object",
"group": "v_vlocity"
},
{
"command": "vlocity.datapackExplorer.openSalesforce",
"when": "viewItem == vlocity:datapack:object",
"group": "v_vlocity"
}
]
},
Expand Down
12 changes: 12 additions & 0 deletions resources/dark/external-link-small.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions resources/dark/external-link.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion resources/dark/refresh.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions resources/dark/salesforce.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions resources/light/external-link-small.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ea196b4

Please sign in to comment.