blob: a6afa9bf035c409763e8c201ea82351ac5b79de0 [file] [log] [blame]
Kai Ninomiyadab51c72020-09-28 18:09:29 -07001// Note: VS Code's setting precedence is `.vscode/` > `cts.code-workspace` > global user settings.
2{
Kai Ninomiya497f2852020-11-17 18:47:48 -08003 "folders": [
4 {
5 "name": "cts",
6 "path": "."
7 },
8 {
9 "name": "webgpu",
10 "path": "src/webgpu"
11 }
12 ],
Kai Ninomiyadab51c72020-09-28 18:09:29 -070013 "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 Ninomiya971207d2020-11-17 19:30:48 -080040 // Only supports "shell" and "process" tasks.
41 // https://code.visualstudio.com/docs/editor/multi-root-workspaces#_workspace-task-configuration
Kai Ninomiyadab51c72020-09-28 18:09:29 -070042 {
Kai Ninomiya971207d2020-11-17 19:30:48 -080043 // 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 Ninomiyadab51c72020-09-28 18:09:29 -070050 "problemMatcher": []
51 },
52 {
Kai Ninomiya971207d2020-11-17 19:30:48 -080053 "group": "build",
54 "label": "npm: check",
55 "detail": "Just typecheck",
56
57 "type": "shell",
58 "command": "npm run check",
Kai Ninomiyadab51c72020-09-28 18:09:29 -070059 "problemMatcher": ["$tsc"]
Kai Ninomiya971207d2020-11-17 19:30:48 -080060 },
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 Ninomiyadab51c72020-09-28 18:09:29 -070088 ]
89 }
90}