Skip to content

Commit

Permalink
(GH-1) Added basic VSCode extension
Browse files Browse the repository at this point in the history
  • Loading branch information
gep13 committed Feb 28, 2016
1 parent 3d24ac5 commit ba86a7f
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To use them, simply open your powershell file, and then type `psake` followed by

and then simply arrow up/down to the one you want and press enter, or left mouse click. From there the PowerShell for the task definition will be generated, and the cursor will be placed ready for you to start filling in the content of the task...

![Expanded psake Snippet](https://raw.githubusercontent.com/psake/psake-vscode/master/images/Expanded-Task-Snippet.png)
![Expanded psake Snippet](https://raw.githubusercontent.com/psake/psake-vscode/master/images/Expanded-Psake-Snippet.png)

# Contribution

Expand Down
Binary file added images/Expanded-Psake-Snippet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/Psake-Snippets.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "psake-vscode",
"displayName": "psake Snippets",
"publisher": "psake",
"description": "Set of snippets for helping with creating psake scripts.",
"version": "0.1.0",
"icon": "",
"private": true,
"author": {
"name": "psake"
},
"bugs": {
"url": "https://github.com/psake/psake-vscode/issues"
},
"homepage": "https://github.com/psake/psake-vscode",
"repository": {
"type": "git",
"url": "https://github.com/psake/psake-vscode"
},
"galleryBanner": {
"color": "#FFE05C",
"theme": "light"
},
"engines": {
"vscode": "^0.10.1"
},
"categories": [
"Snippets"
],
"contributes": {
"snippets": [
{
"language": "powershell",
"path": "./snippets/powershell.json"
}
]
}
}
18 changes: 18 additions & 0 deletions snippets/powershell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"psake Task": {
"prefix": "psakeTask",
"body": [
"Task -Name ${name} -Depends ${depends} -Description \"${description}\";"
],
"description": "psake task"
},
"psake Task With Action": {
"prefix": "psakeTask",
"body": [
"Task -Name ${name} -Depends ${depends} -Description \"${description}\" -Action {",
"\t$0",
"}"
],
"description": "psake task (with action)"
}
}

0 comments on commit ba86a7f

Please sign in to comment.