Project does not rebuild after script editing in VS code

Hello,

I am using Cocos Creator 2.0.2 on Windows 7.
I am editing typescript scripts with VS code 1.28.0.
I have installed all VS Code plugins in CocosCreator > Developer > VS Code Workflow.
On VS Code are installed the following plugins:
Cocos Debug 0.0.1
cocos-creator 0.0.1
Debugger for Chrome 4.10.2
I can sucessfully run the debug mode on Chrome, use breakpoints, and everything.
However, when running the debug mode in VS Code (F5), the project does not seem to be rebuilt after a script has been modified. It simply runs the last build version.
In order for those last modifications to be taken in account, and the project rebuilt, I simply have to re-focus the CocosCreator app window, and switch back to VS Code. Then the project is rebuilt.
Somehow it seems that the project needs to realize some files were modified, and the watchers do not see it unless the CocosCreator app window is the active window.

Is there a way to make the project rebuild directly when hitting F5, without having to switch to CocosCreator window and back?

Here are my project config files:

tsconfig.json

{
  "compilerOptions": {
    "module": "commonjs",
    "lib": [ "dom", "es5", "es2015.promise", "es2016" ],
    "target": "es5",
    "experimentalDecorators": true,
    "skipLibCheck": true
  },
  "exclude": [
    "node_modules",
    "library",
    "local",
    "temp",
    "build",
    "settings"
  ]
}

package.json

{
  "name": "myproject",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "repository": {
    "type": "git",
    "url": "git+ssh://git@bitbucket.org/user/myproject.git"
  },
  "author": "",
  "license": "ISC",
  "homepage": "https://bitbucket.org/user/myproject#readme",
  "dependencies": {
    "core-js": "^2.5.7",
    "lodash": "^4.17.11"
  },
  "devDependencies": {
    "@types/core-js": "^2.5.0",
    "@types/lodash": "^4.14.116"
  }
}

jsconfig.json

{
    "compilerOptions": {
        "target": "es6",
        "module": "commonjs",
        "experimentalDecorators": true
    },
    "exclude": [
        "node_modules",
        ".vscode",
        "library",
        "local",
        "settings",
        "temp"
    ]
}

Dont hesitate to ask more info :slight_smile:
Thank you!

This issue has been discussed and successfully worked around here [BUG] Automatic recompile and auto-refresh preview