Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
62 changes: 62 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Run build",
"type": "shell",
"command": "./scripts/build.sh",
"options": {
"cwd": "${workspaceFolder}"
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": true,
"clear": false
},
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
},
{
"label": "Install extension to local VSCode instance",
"type": "shell",
"command": "./scripts/install.sh",
"options": {
"cwd": "${workspaceFolder}"
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": true,
"clear": false
},
"group": "none",
"problemMatcher": []
},
{
"label": "Build and install extension to local VSCode instance",
"type": "shell",
"command": "./scripts/build.sh && ./scripts/install.sh",
"options": {
"cwd": "${workspaceFolder}"
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": true,
"clear": false
},
"group": "build",
"problemMatcher": []
}
]
}
13 changes: 13 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

echo "Running 'vsce package' in order to create a vsix extension install file..."
vsce package

if [ $? -ne 0 ]; then
echo "An error occured. Could not create vsix install file."
else
echo "Vsix install file created. Moving to root of home directory: $HOME/synthwave-vscode-0.1.14.vsix"
mv ./synthwave-vscode-0.1.14.vsix ~/.
fi

echo "Build script done."
12 changes: 12 additions & 0 deletions scripts/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

code --install-extension ~/synthwave-vscode-0.1.14.vsix

if [ $? -ne 0 ]; then
echo "An error occured while installing the extension."
else
echo "Deleting temporary vsix install file."
rm ~/synthwave-vscode-0.1.14.vsix
fi

echo "Install script done."