]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
no bug - Add VS Code task configuration file
authorKohei Yoshino <kohei.yoshino@gmail.com>
Wed, 27 Jun 2018 14:12:13 +0000 (10:12 -0400)
committerDylan William Hardison <dylan@hardison.net>
Wed, 27 Jun 2018 14:12:13 +0000 (10:12 -0400)
.vscode/tasks.json [new file with mode: 0644]
README.rst

diff --git a/.vscode/tasks.json b/.vscode/tasks.json
new file mode 100644 (file)
index 0000000..c15d7a4
--- /dev/null
@@ -0,0 +1,45 @@
+{
+  // See https://go.microsoft.com/fwlink/?LinkId=733558
+  // for the documentation about the tasks.json format
+  "version": "2.0.0",
+  "tasks": [
+    {
+      "label": "Vagrant: Start Local Server",
+      "type": "shell",
+      "command": "vagrant up",
+      "group": "none",
+      "problemMatcher": []
+    },
+    {
+      "label": "Vagrant: Suspend Local Server",
+      "type": "shell",
+      "command": "vagrant suspend",
+      "group": "none",
+      "problemMatcher": []
+    },
+    {
+      "label": "Vagrant: Update Local Server",
+      "type": "shell",
+      "command": "vagrant rsync && vagrant provision --provision-with update",
+      "group": {
+        "kind": "build",
+        "isDefault": true
+      },
+      "problemMatcher": []
+    },
+    {
+      "label": "Vagrant: Force Update Local Server",
+      "type": "shell",
+      "command": "vagrant rsync && vagrant provision",
+      "group": "build",
+      "problemMatcher": []
+    },
+    {
+      "label": "Vagrant: Update Perl Dependencies",
+      "type": "shell",
+      "command": "vagrant ssh web -c bmo-refresh-bundle",
+      "group": "none",
+      "problemMatcher": []
+    }
+  ]
+}
index d8986fc7344a4f6e460062011c500df16ce651f8..985be314eee43d4f5dbdaf83d096a15e6ce40ff4 100644 (file)
@@ -80,6 +80,12 @@ or db is changed, do a full provision:
 
     vagrant rsync && vagrant provision
 
+If you are using Visual Studio Code, these tasks are available from the editor's
+`Tasks menu`_. The update command can be run by simply hitting `Ctrl+Shift+B` on
+Windows/Linux or `Command+Shift+B` on macOS.
+
+.. _`Tasks menu`: https://code.visualstudio.com/docs/editor/tasks
+
 Testing Auth delegation
 -----------------------