|
11 | 11 | "cwd": "${workspaceFolder}${pathSeparator}scripts${pathSeparator}validation"
|
12 | 12 | },
|
13 | 13 | "windows": {
|
14 |
| - "command": ".\\content-lint.cmd -p '..\\..\\content\\hardware\\'" |
| 14 | + "command": ".\\content-lint.cmd -p '..\\..\\content\\hardware\\'" |
15 | 15 | },
|
16 | 16 | "group": "none",
|
17 | 17 | "presentation": {
|
18 | 18 | "reveal": "always",
|
19 | 19 | "panel": "dedicated",
|
20 | 20 | "clear": true
|
21 | 21 | },
|
22 |
| - |
23 |
| - "problemMatcher": [{ |
24 |
| - "fileLocation": ["relative", "${workspaceFolder}${pathSeparator}scripts${pathSeparator}validation"], |
25 |
| - "owner": "linter", |
26 |
| - "pattern": { |
27 |
| - "regexp": "^.+\\s(WARNING|ERROR):\\s(.*)\\sLocation:\\s(.*\\.[A-Za-z]+):(\\d+):?(\\d*)$", |
28 |
| - "severity": 1, |
29 |
| - "message": 2, |
30 |
| - "file": 3, |
31 |
| - "line": 4, |
32 |
| - "column": 5 |
| 22 | + "problemMatcher": [ |
| 23 | + { |
| 24 | + "fileLocation": [ |
| 25 | + "relative", |
| 26 | + "${workspaceFolder}${pathSeparator}scripts${pathSeparator}validation" |
| 27 | + ], |
| 28 | + "owner": "linter", |
| 29 | + "pattern": { |
| 30 | + "regexp": "^.+\\s(WARNING|ERROR):\\s(.*)\\sLocation:\\s(.*\\.[A-Za-z]+):(\\d+):?(\\d*)$", |
| 31 | + "severity": 1, |
| 32 | + "message": 2, |
| 33 | + "file": 3, |
| 34 | + "line": 4, |
| 35 | + "column": 5 |
| 36 | + } |
33 | 37 | }
|
34 |
| - }] |
| 38 | + ] |
35 | 39 | },
|
36 | 40 | {
|
37 | 41 | "label": "Run linter (current article)",
|
|
41 | 45 | "cwd": "${workspaceFolder}${pathSeparator}scripts${pathSeparator}validation"
|
42 | 46 | },
|
43 | 47 | "windows": {
|
44 |
| - "command": ".\\content-lint.cmd -p '..\\..\\${relativeFile}' -c -v" |
| 48 | + "command": ".\\content-lint.cmd -p '..\\..\\${relativeFile}' -c -v" |
45 | 49 | },
|
46 | 50 | "group": "none",
|
47 | 51 | "presentation": {
|
48 | 52 | "reveal": "always",
|
49 | 53 | "panel": "dedicated",
|
50 | 54 | "clear": true
|
51 | 55 | },
|
52 |
| - "problemMatcher": [{ |
53 |
| - "fileLocation": ["relative", "${workspaceFolder}${pathSeparator}scripts${pathSeparator}validation"], |
54 |
| - "owner": "linter", |
55 |
| - "pattern": { |
56 |
| - "regexp": "^.+\\s(WARNING|ERROR):\\s(.+)\\sLocation:\\s(.+\\.[A-Za-z]+):(\\d+):?(\\d*)$", |
57 |
| - "severity": 1, |
58 |
| - "message": 2, |
59 |
| - "file": 3, |
60 |
| - "line": 4, |
61 |
| - "column": 5 |
| 56 | + "problemMatcher": [ |
| 57 | + { |
| 58 | + "fileLocation": [ |
| 59 | + "relative", |
| 60 | + "${workspaceFolder}${pathSeparator}scripts${pathSeparator}validation" |
| 61 | + ], |
| 62 | + "owner": "linter", |
| 63 | + "pattern": { |
| 64 | + "regexp": "^.+\\s(WARNING|ERROR):\\s(.+)\\sLocation:\\s(.+\\.[A-Za-z]+):(\\d+):?(\\d*)$", |
| 65 | + "severity": 1, |
| 66 | + "message": 2, |
| 67 | + "file": 3, |
| 68 | + "line": 4, |
| 69 | + "column": 5 |
| 70 | + } |
62 | 71 | }
|
63 |
| - }] |
| 72 | + ] |
64 | 73 | },
|
65 | 74 | {
|
66 | 75 | "label": "Fix linter issues (current article)",
|
|
70 | 79 | "cwd": "${workspaceFolder}${pathSeparator}scripts${pathSeparator}validation"
|
71 | 80 | },
|
72 | 81 | "windows": {
|
73 |
| - "command": "node '.\\fix-issues.js' -p '..\\..\\${relativeFileDirname}'" |
| 82 | + "command": "node '.\\fix-issues.js' -p '..\\..\\${relativeFileDirname}'" |
74 | 83 | },
|
75 | 84 | "group": "none",
|
76 | 85 | "presentation": {
|
|
104 | 113 | "cwd": "${workspaceFolder}${pathSeparator}scripts${pathSeparator}datasheet-rendering"
|
105 | 114 | },
|
106 | 115 | "windows": {
|
107 |
| - "command": ".\\render-datasheets.cmd" |
| 116 | + "command": ".\\render-datasheets.cmd" |
108 | 117 | },
|
109 | 118 | "group": "none",
|
110 | 119 | "presentation": {
|
|
121 | 130 | "cwd": "${workspaceFolder}${pathSeparator}scripts${pathSeparator}datasheet-rendering"
|
122 | 131 | },
|
123 | 132 | "windows": {
|
124 |
| - "command": ".\\render-datasheets.cmd '..\\..\\${relativeFileDirname}'" |
| 133 | + "command": ".\\render-datasheets.cmd '..\\..\\${relativeFileDirname}'" |
125 | 134 | },
|
126 | 135 | "group": "none",
|
127 | 136 | "presentation": {
|
|
145 | 154 | "reveal": "always",
|
146 | 155 | "panel": "shared"
|
147 | 156 | },
|
148 |
| - "problemMatcher": [{ |
149 |
| - "fileLocation": ["relative", "${workspaceFolder}"], |
150 |
| - "owner": "linter", |
151 |
| - "pattern": { |
152 |
| - "regexp": "^\\s*(\\S+):(\\d+):\\s(.+)$", |
153 |
| - "file": 1, |
154 |
| - "line": 2, |
155 |
| - "message": 3 |
| 157 | + "problemMatcher": [ |
| 158 | + { |
| 159 | + "fileLocation": [ |
| 160 | + "relative", |
| 161 | + "${workspaceFolder}" |
| 162 | + ], |
| 163 | + "owner": "linter", |
| 164 | + "pattern": { |
| 165 | + "regexp": "^\\s*(\\S+):(\\d+):\\s(.+)$", |
| 166 | + "file": 1, |
| 167 | + "line": 2, |
| 168 | + "message": 3 |
| 169 | + } |
156 | 170 | }
|
157 |
| - }] |
| 171 | + ] |
158 | 172 | },
|
159 | 173 | {
|
160 | 174 | "label": "Fix misspellings",
|
|
0 commit comments