Browse Source

Fixes problem matcher support

main
Eric Amodio 4 years ago
parent
commit
6563fbd03e
3 changed files with 5 additions and 2 deletions
  1. +2
    -2
      .vscode/tasks.json
  2. +1
    -0
      tsconfig.json
  3. +2
    -0
      webpack.config.js

+ 2
- 2
.vscode/tasks.json View File

@ -20,7 +20,7 @@
"type": "npm", "type": "npm",
"script": "build", "script": "build",
"group": "build", "group": "build",
"problemMatcher": ["$ts-checker-webpack", "$ts-checker-eslint-webpack"]
"problemMatcher": ["$ts-checker5-webpack", "$ts-checker5-eslint-webpack"]
}, },
{ {
"type": "npm", "type": "npm",
@ -36,7 +36,7 @@
"isDefault": true "isDefault": true
}, },
"isBackground": true, "isBackground": true,
"problemMatcher": ["$ts-checker-webpack-watch", "$ts-checker-eslint-webpack-watch"]
"problemMatcher": ["$ts-checker5-webpack-watch", "$ts-checker5-eslint-webpack-watch"]
} }
] ]
} }

+ 1
- 0
tsconfig.json View File

@ -2,6 +2,7 @@
"compilerOptions": { "compilerOptions": {
"experimentalDecorators": true, "experimentalDecorators": true,
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
"incremental": true,
"lib": ["es2019"], "lib": ["es2019"],
"module": "esnext", "module": "esnext",
"moduleResolution": "node", "moduleResolution": "node",

+ 2
- 0
webpack.config.js View File

@ -101,6 +101,7 @@ function getExtensionConfig(mode, env) {
new ForkTsCheckerPlugin({ new ForkTsCheckerPlugin({
async: false, async: false,
eslint: { enabled: true, files: 'src/**/*.ts', options: { cache: true } }, eslint: { enabled: true, files: 'src/**/*.ts', options: { cache: true } },
formatter: 'basic',
}), }),
]; ];
@ -227,6 +228,7 @@ function getWebviewsConfig(mode, env) {
new ForkTsCheckerPlugin({ new ForkTsCheckerPlugin({
async: false, async: false,
eslint: { enabled: true, files: path.resolve(__dirname, 'src/**/*.ts'), options: { cache: true } }, eslint: { enabled: true, files: path.resolve(__dirname, 'src/**/*.ts'), options: { cache: true } },
formatter: 'basic',
typescript: { typescript: {
tsconfig: path.resolve(__dirname, 'tsconfig.webviews.json'), tsconfig: path.resolve(__dirname, 'tsconfig.webviews.json'),
}, },

Loading…
Cancel
Save