gulp - Visual Studio Code - Scaffolding Newly Created File -


i have gulp file watches source files add project. when sees file added , newly created file empty, scaffold file boilerplate code.

the problem when create file in editor have refresh editor (visual studio code in case) in order see wrote file. (right file appears blank).

perhaps there way delay code displaying file? or perhaps there faster way write file code displays correctly initially?

benjamin pasero on vscode team sent me this:

  • close vs code
  • open c:\users\\appdata\local\code\app-0.3.2\resources\app\server\lib\watcher\ base.win32.watcher.js
  • find following lines:

else if (currentchangetype === watcher.changetypes.created && newchangetype === watcher.changetypes.changed) { }

  • remove them or comment them out adding “//” beginning of line
  • restart vs code

this fix said included in next update of vscode.


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -