summaryrefslogtreecommitdiffstats
path: root/dom/webgpu/tests/cts/checkout/cts.code-workspace
blob: d27f9ccc830aabf1244a6929e0321a3701fef9b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
// Note: VS Code's setting precedence is `.vscode/` > `cts.code-workspace` > global user settings.
{
  "folders": [
    {
      "name": "cts",
      "path": "."
    },
    {
      "name": "webgpu",
      "path": "src/webgpu"
    }
  ],
  "extensions": {
    "recommendations": [
      "esbenp.prettier-vscode"
    ]
  },
  "settings": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.detectIndentation": false,
    "editor.rulers": [100],
    "editor.tabSize": 2,
    "files.insertFinalNewline": true,
    "files.trimFinalNewlines": true,
    "files.trimTrailingWhitespace": true,
    "files.exclude": {
      "*.tmp.txt": true,
      ".gitignore": true,
      ".travis.yml": true,
      ".tscache": true,
      "deploy_key.enc": true,
      "node_modules": true,
      "out": true,
      "out-node": true,
      "out-wpt": true,
      "docs/tsdoc": true,
      "package-lock.json": true
    },
    // Configure VSCode to use the right style when automatically adding imports on autocomplete.
    "typescript.preferences.importModuleSpecifier": "relative",
    "typescript.preferences.importModuleSpecifierEnding": "js",
    "typescript.preferences.quoteStyle": "single",
    "typescript.tsdk": "cts/node_modules/typescript/lib"
  },
  "tasks": {
    "version": "2.0.0",
    "tasks": [
      // Only supports "shell" and "process" tasks.
      // https://code.visualstudio.com/docs/editor/multi-root-workspaces#_workspace-task-configuration
      {
        // Use "group": "build" instead of "test" so it's easy to access from cmd-shift-B.
        "group": "build",
        "label": "npm: test",
        "detail": "Run all presubmit checks",

        "type": "shell",
        "command": "npm run test",
        "problemMatcher": []
      },
      {
        "group": "build",
        "label": "npm: check",
        "detail": "Just typecheck",

        "type": "shell",
        "command": "npm run check",
        "problemMatcher": ["$tsc"]
      },
      {
        "group": "build",
        "label": "npm: standalone",
        "detail": "Build standalone and typecheck",

        "type": "shell",
        "command": "npm run standalone",
        "problemMatcher": []
      },
      {
        "group": "build",
        "label": "npm: wpt",
        "detail": "Build for WPT and typecheck",

        "type": "shell",
        "command": "npm run wpt",
        "problemMatcher": []
      },
      {
        "group": "build",
        "label": "npm: unittest",
        "detail": "Build standalone, typecheck, and unittest",

        "type": "shell",
        "command": "npm run unittest",
        "problemMatcher": []
      },
      {
        "group": "build",
        "label": "npm: tsdoc",
        "detail": "Build docs/tsdoc/",

        "type": "shell",
        "command": "npm run tsdoc",
        "problemMatcher": []
      },
      {
        "group": "build",
        "label": "grunt: run:lint",
        "detail": "Run eslint",

        "type": "shell",
        "command": "npx grunt run:lint",
        "problemMatcher": ["$eslint-stylish"]
      },
    ]
  }
}