Kai Ninomiya | dab51c7 | 2020-09-28 18:09:29 -0700 | [diff] [blame] | 1 | // Note: VS Code's setting precedence is `.vscode/` > `cts.code-workspace` > global user settings. |
| 2 | { |
Kai Ninomiya | 497f285 | 2020-11-17 18:47:48 -0800 | [diff] [blame] | 3 | "folders": [ |
| 4 | { |
| 5 | "name": "cts", |
| 6 | "path": "." |
| 7 | }, |
| 8 | { |
| 9 | "name": "webgpu", |
| 10 | "path": "src/webgpu" |
| 11 | } |
| 12 | ], |
Kai Ninomiya | dab51c7 | 2020-09-28 18:09:29 -0700 | [diff] [blame] | 13 | "settings": { |
| 14 | "editor.defaultFormatter": "esbenp.prettier-vscode", |
| 15 | "editor.detectIndentation": false, |
| 16 | "editor.rulers": [100], |
| 17 | "editor.tabSize": 2, |
| 18 | "files.insertFinalNewline": true, |
| 19 | "files.trimFinalNewlines": true, |
| 20 | "files.trimTrailingWhitespace": true, |
| 21 | "files.exclude": { |
| 22 | "*.tmp.txt": true, |
| 23 | ".gitignore": true, |
| 24 | ".travis.yml": true, |
| 25 | ".tscache": true, |
| 26 | "deploy_key.enc": true, |
| 27 | "node_modules": true, |
| 28 | "out": true, |
| 29 | "out-wpt": true, |
| 30 | "package-lock.json": true |
| 31 | }, |
| 32 | // Configure VSCode to use the right style when automatically adding imports on autocomplete. |
| 33 | "typescript.preferences.importModuleSpecifier": "relative", |
| 34 | "typescript.preferences.importModuleSpecifierEnding": "js", |
| 35 | "typescript.preferences.quoteStyle": "single" |
| 36 | }, |
| 37 | "tasks": { |
| 38 | "version": "2.0.0", |
| 39 | "tasks": [ |
Kai Ninomiya | 971207d | 2020-11-17 19:30:48 -0800 | [diff] [blame] | 40 | // Only supports "shell" and "process" tasks. |
| 41 | // https://code.visualstudio.com/docs/editor/multi-root-workspaces#_workspace-task-configuration |
Kai Ninomiya | dab51c7 | 2020-09-28 18:09:29 -0700 | [diff] [blame] | 42 | { |
Kai Ninomiya | 971207d | 2020-11-17 19:30:48 -0800 | [diff] [blame] | 43 | // Use "group": "build" instead of "test" so it's easy to access from cmd-shift-B. |
| 44 | "group": "build", |
| 45 | "label": "npm: test", |
| 46 | "detail": "Run all presubmit checks", |
| 47 | |
| 48 | "type": "shell", |
| 49 | "command": "npm run test", |
Kai Ninomiya | dab51c7 | 2020-09-28 18:09:29 -0700 | [diff] [blame] | 50 | "problemMatcher": [] |
| 51 | }, |
| 52 | { |
Kai Ninomiya | 971207d | 2020-11-17 19:30:48 -0800 | [diff] [blame] | 53 | "group": "build", |
| 54 | "label": "npm: check", |
| 55 | "detail": "Just typecheck", |
| 56 | |
| 57 | "type": "shell", |
| 58 | "command": "npm run check", |
Kai Ninomiya | dab51c7 | 2020-09-28 18:09:29 -0700 | [diff] [blame] | 59 | "problemMatcher": ["$tsc"] |
Kai Ninomiya | 971207d | 2020-11-17 19:30:48 -0800 | [diff] [blame] | 60 | }, |
| 61 | { |
| 62 | "group": "build", |
| 63 | "label": "npm: standalone", |
| 64 | "detail": "Build standalone and typecheck", |
| 65 | |
| 66 | "type": "shell", |
| 67 | "command": "npm run standalone", |
| 68 | "problemMatcher": [] |
| 69 | }, |
| 70 | { |
| 71 | "group": "build", |
| 72 | "label": "npm: wpt", |
| 73 | "detail": "Build for WPT and typecheck", |
| 74 | |
| 75 | "type": "shell", |
| 76 | "command": "npm run wpt", |
| 77 | "problemMatcher": [] |
| 78 | }, |
| 79 | { |
| 80 | "group": "build", |
| 81 | "label": "npm: unittest", |
| 82 | "detail": "Build standalone, typecheck, and unittest", |
| 83 | |
| 84 | "type": "shell", |
| 85 | "command": "npm run unittest", |
| 86 | "problemMatcher": [] |
| 87 | }, |
Kai Ninomiya | dab51c7 | 2020-09-28 18:09:29 -0700 | [diff] [blame] | 88 | ] |
| 89 | } |
| 90 | } |