|
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 |
| - "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 |
| - } |
| 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 |
37 | 33 | }
|
38 |
| - ] |
| 34 | + }] |
39 | 35 | },
|
40 | 36 | {
|
41 | 37 | "label": "Run linter (current article)",
|
|
45 | 41 | "cwd": "${workspaceFolder}${pathSeparator}scripts${pathSeparator}validation"
|
46 | 42 | },
|
47 | 43 | "windows": {
|
48 |
| - "command": ".\\content-lint.cmd -p '..\\..\\${relativeFile}' -c -v" |
| 44 | + "command": ".\\content-lint.cmd -p '..\\..\\${relativeFile}' -c -v" |
49 | 45 | },
|
50 | 46 | "group": "none",
|
51 | 47 | "presentation": {
|
52 | 48 | "reveal": "always",
|
53 | 49 | "panel": "dedicated",
|
54 | 50 | "clear": true
|
55 | 51 | },
|
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 |
| - } |
| 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 |
71 | 62 | }
|
72 |
| - ] |
| 63 | + }] |
73 | 64 | },
|
74 | 65 | {
|
75 | 66 | "label": "Fix linter issues (current article)",
|
|
79 | 70 | "cwd": "${workspaceFolder}${pathSeparator}scripts${pathSeparator}validation"
|
80 | 71 | },
|
81 | 72 | "windows": {
|
82 |
| - "command": "node '.\\fix-issues.js' -p '..\\..\\${relativeFileDirname}'" |
| 73 | + "command": "node '.\\fix-issues.js' -p '..\\..\\${relativeFileDirname}'" |
83 | 74 | },
|
84 | 75 | "group": "none",
|
85 | 76 | "presentation": {
|
|
113 | 104 | "cwd": "${workspaceFolder}${pathSeparator}scripts${pathSeparator}datasheet-rendering"
|
114 | 105 | },
|
115 | 106 | "windows": {
|
116 |
| - "command": ".\\render-datasheets.cmd" |
| 107 | + "command": ".\\render-datasheets.cmd" |
117 | 108 | },
|
118 | 109 | "group": "none",
|
119 | 110 | "presentation": {
|
|
130 | 121 | "cwd": "${workspaceFolder}${pathSeparator}scripts${pathSeparator}datasheet-rendering"
|
131 | 122 | },
|
132 | 123 | "windows": {
|
133 |
| - "command": ".\\render-datasheets.cmd '..\\..\\${relativeFileDirname}'" |
| 124 | + "command": ".\\render-datasheets.cmd '..\\..\\${relativeFileDirname}'" |
134 | 125 | },
|
135 | 126 | "group": "none",
|
136 | 127 | "presentation": {
|
|
154 | 145 | "reveal": "always",
|
155 | 146 | "panel": "shared"
|
156 | 147 | },
|
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 |
| - } |
| 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 |
170 | 156 | }
|
171 |
| - ] |
| 157 | + }] |
172 | 158 | },
|
173 | 159 | {
|
174 | 160 | "label": "Fix misspellings",
|
|
0 commit comments