Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save file even without file changes - so that Nodemon, Gulp, Chokidar and other file watchers restart #7470

Closed
Arrow7000 opened this issue Jun 9, 2016 · 7 comments
Assignees
Labels
feature-request Request for new features or functionality file-explorer Explorer widget issues verification-needed Verification of issue is requested verified Verification succeeded

Comments

@Arrow7000
Copy link

It would be very useful to have VSCode save a file even when no file changes have taken place, because when an error occurs, Nodemon crashes and doesn't restart the app until a save has taken place.

So even if you want to restart the server without making any file changes - sometimes bugs happen due to a runtime event, it's not always an obvious bug in your code, you have to make some kind of unnecessary change, like typing a space before being able to save, which is annoying.

@bpasero bpasero added feature-request Request for new features or functionality file-explorer Explorer widget issues labels Jun 11, 2016
@bpasero bpasero added this to the Backlog milestone Jun 11, 2016
@chrisdchristo
Copy link

+1

Needed for gulp watching.

@bpasero bpasero removed their assignment Aug 17, 2016
@Izhaki
Copy link

Izhaki commented Sep 14, 2016

+1

Need for chokidar-cli used in npm scripts

I find myself too many times hitting space and then cmd-s.

@Arrow7000 Arrow7000 changed the title Save file even without file changes - so that Nodemon restarts Save file even without file changes - so that Nodemon, Gulp, Chokidar and other file watchers restart Sep 14, 2016
@bpasero bpasero modified the milestones: September 2016, Backlog Sep 19, 2016
@bpasero bpasero self-assigned this Sep 19, 2016
@bpasero
Copy link
Member

bpasero commented Sep 19, 2016

Verify: you can save files that are not dirty and their mtime/atime changes on disk. E.g. install an external node watcher and verify it fires.

@PunchyRascal
Copy link

PunchyRascal commented Sep 19, 2016

Well that's basically what my setup is (I use https://github.com/guard/guard) and it does not detect any change and so does not run any tests. Just now I tried to save file without any changes and there is no change to any of the file stats (dates) either on remote or local drive.

@bpasero
Copy link
Member

bpasero commented Sep 19, 2016

@PunchyRascal you can verify this tomorrow from our insider build when it lands.

You can give our preview releases a try from: http://code.visualstudio.com/Download#insiders

@PunchyRascal
Copy link

PunchyRascal commented Sep 20, 2016

Work perfectly, thanks. Tried on:

  • VSCode Version: Code - Insiders 1.6.0-insider (0a0bfed, 2016-09-20T06:11:03.267Z)
  • OS Version: Windows_NT ia32 10.0.14393

@bpasero
Copy link
Member

bpasero commented Sep 20, 2016

@PunchyRascal thanks, marking as verified.

@bpasero bpasero added verified Verification succeeded verification-needed Verification of issue is requested labels Sep 20, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality file-explorer Explorer widget issues verification-needed Verification of issue is requested verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

5 participants