Windows/VSCode.md
... ...
@@ -102,6 +102,43 @@
102 102
]
103 103
```
104 104
105
+## グローバルタスク設定
106
+- %AppData%/Code/User/tasks.json
107
+ ```javascript
108
+ {
109
+ // See https://go.microsoft.com/fwlink/?LinkId=733558
110
+ // for the documentation about the tasks.json format
111
+ "version": "2.0.0",
112
+ "presentation": {
113
+ "echo": true,
114
+ "reveal": "always",
115
+ "focus": true,
116
+ "panel": "shared"
117
+ },
118
+ "problemMatcher": [],
119
+ "tasks": [
120
+ {
121
+ "label": "compile",
122
+ "type": "shell",
123
+ "group": "test",
124
+ "command": "perl -c ${file}"
125
+ },
126
+ {
127
+ "label": "test this",
128
+ "type": "shell",
129
+ "group": "test",
130
+ "command": "perl ${file}"
131
+ },
132
+ {
133
+ "label": "test all",
134
+ "type": "shell",
135
+ "group": "test",
136
+ "command": "prove ${workspaceFolder}/t/"
137
+ }
138
+ ]
139
+ }
140
+ ```
141
+
105 142
# ワークスペース設定
106 143
- 各フォルダの .vscode/
107 144
... ...
@@ -119,13 +156,13 @@
119 156
"focus": true,
120 157
"panel": "shared"
121 158
},
159
+ "problemMatcher": [],
122 160
"tasks": [
123 161
{
124 162
"label": "compile",
125 163
"type": "shell",
126 164
"group": "test",
127
- "command": "perl -c ${file}",
128
- "problemMatcher": []
165
+ "command": "perl -c ${file}"
129 166
},
130 167
{
131 168
"label": "build",
... ...
@@ -134,8 +171,7 @@
134 171
"kind": "build",
135 172
"isDefault": true
136 173
},
137
- "command": "perl build/build.pl",
138
- "problemMatcher": []
174
+ "command": "perl build/build.pl"
139 175
}
140 176
]
141 177
}