Skip to content

Add icons for Command Explorer #1638

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 4, 2019
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 32 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@
"PowerShellCommandExplorer": [
{
"id": "PowerShellCommands",
"name": "PowerShell Commands"
"name": "PowerShell Commands",
"when": "config.powershell.sideBar.CommandExplorerVisibility"
}
]
},
Expand Down Expand Up @@ -113,16 +114,20 @@
},
{
"command": "PowerShell.RefreshCommandsExplorer",
"title": "Refresh",
"title": "Refresh Command Explorer",
"icon": {
"light": "resources/light/refresh.svg",
"dark": "resources/dark/refresh.svg"
"light": "resources/light/sync.svg",
"dark": "resources/dark/sync.svg"
},
"category": "PowerShell"
},
{
"command": "PowerShell.InsertCommand",
"title": "Insert Command",
"icon": {
"light": "resources/light/pencil.svg",
"dark": "resources/dark/pencil.svg"
},
"category": "PowerShell"
},
{
Expand All @@ -133,6 +138,10 @@
{
"command": "PowerShell.ShowHelp",
"title": "Get Help for Command",
"icon": {
"light": "resources/light/question.svg",
"dark": "resources/dark/question.svg"
},
"category": "PowerShell"
},
{
Expand Down Expand Up @@ -202,6 +211,16 @@
}
],
"menus": {
"commandPalette": [
{
"command": "PowerShell.InsertCommand",
"when": "false"
},
{
"command": "PowerShell.RefreshCommandsExplorer",
"when": "config.powershell.sideBar.CommandExplorerVisibility"
}
],
"editor/context": [
{
"when": "editorLangId == powershell",
Expand All @@ -224,11 +243,13 @@
"view/item/context": [
{
"command": "PowerShell.ShowHelp",
"when": "view == PowerShellCommands"
"when": "view == PowerShellCommands",
"group": "inline@1"
},
{
"command": "PowerShell.InsertCommand",
"when": "view == PowerShellCommands"
"when": "view == PowerShellCommands",
"group": "inline@2"
}
]
},
Expand Down Expand Up @@ -456,6 +477,11 @@
"type": "object",
"title": "PowerShell Configuration",
"properties": {
"powershell.sideBar.CommandExplorerVisibility": {
"type": "boolean",
"default":true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should've been a space after the colon (:). I opened PR #1688 to fix it. Running Invoke-Build at the end helps with that.

"description": "Specifies the visibility of the Command Explorer in the PowerShell sidebar."
},
"powershell.powerShellExePath": {
"type": "string",
"default": "",
Expand Down
56 changes: 56 additions & 0 deletions resources/dark/pencil.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions resources/dark/question.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion resources/dark/refresh.svg

This file was deleted.

56 changes: 56 additions & 0 deletions resources/dark/sync.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions resources/light/pencil.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions resources/light/question.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion resources/light/refresh.svg

This file was deleted.

55 changes: 55 additions & 0 deletions resources/light/sync.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.