diff --git a/.vscode/launch.json b/.vscode/launch.json index 3bb6aee..e54d5d0 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -15,6 +15,7 @@ "outFiles": [ "${workspaceFolder}/dist/**/*.js" ], + "skipFiles": ["/**", "**/node_modules/**", "**/resources/app/out/vs/**", "**/we've come a long way/**"], "preLaunchTask": "${defaultBuildTask}" }, { diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 6c731ba..1c2a3a8 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -2,31 +2,14 @@ // for the documentation about the tasks.json format { "version": "2.0.0", - "tasks": [ - { - "type": "npm", - "script": "watch", - "problemMatcher": [ - "$ts-webpack-watch", - ], - "isBackground": true, - "presentation": { - "reveal": "never" - }, - "group": { - "kind": "build", - "isDefault": true - } + "tasks": [{ + "type": "npm", + "script": "watch", + "group": { + "kind": "build", + "isDefault": true }, - { - "type": "npm", - "script": "test-watch", - "problemMatcher": "$tsc-watch", - "isBackground": true, - "presentation": { - "reveal": "never" - }, - "group": "build" - } - ] + "isBackground": true, + "problemMatcher": ["$ts-checker5-webpack-watch", "$ts-checker5-eslint-webpack-watch"], + }] } \ No newline at end of file diff --git a/build/node-extension.webpack.config.js b/build/node-extension.webpack.config.js index a659372..d1779f0 100644 --- a/build/node-extension.webpack.config.js +++ b/build/node-extension.webpack.config.js @@ -1,8 +1,9 @@ //@ts-check -'use strict'; +'use strict' -const path = require('path'); +const path = require('path') +const ForkTsCheckerPlugin = require('fork-ts-checker-webpack-plugin') /**@type {import('webpack').Configuration}*/ const config = { @@ -37,5 +38,12 @@ const config = { }, ], }, -}; -module.exports = config; \ No newline at end of file + plugins : [ + new ForkTsCheckerPlugin({ + async: false, + eslint: { enabled: true, files: 'src/**/*.ts', options: { cache: true } }, + formatter: 'basic', + }), + ], +} +module.exports = config \ No newline at end of file diff --git a/package.json b/package.json index 9adcd80..3925d91 100644 --- a/package.json +++ b/package.json @@ -67,6 +67,7 @@ "@typescript-eslint/parser": "^4.14.2", "eslint": "^7.19.0", "eslint-plugin-mocha": "^8.0.0", + "fork-ts-checker-webpack-plugin": "^6.1.0", "glob": "^7.1.6", "mocha": "^8.2.1", "ts-loader": "^8.0.14",