# Visual Studio Code keeps "disconnecting"

**URL:** <https://forum.playcanvas.com/t/visual-studio-code-keeps-disconnecting/33904>\
**Category:** Help & Support\
**Created:** [November 22, 2023, 10:53am UTC](https://forum.playcanvas.com/t/visual-studio-code-keeps-disconnecting/33904 "2023-11-22T10:53:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eike\_Decker](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/eike_decker/32/29053_2.png) [@Eike\_Decker](https://forum.playcanvas.com/u/Eike_Decker)\
**Post date:** [November 22, 2023, 10:53am UTC](https://forum.playcanvas.com/t/visual-studio-code-keeps-disconnecting/33904/1 "2023-11-22T10:53:27Z")

</div>

I am using Visual Studio Code with the plugin to connect with my project. I do that, because I want to use copilot. However, when I want to save the file, it often tells me this here:

> ´Failed to save ‘xyz.js’: Unable to write file ‘projectstuff/…/xyz.js’ (Error: Bad Request)

I can “fix” this by right clicking the project and pulling the latest version, but then I need to copy my changes and reapply them. It happens also randomly between 1 and 20 minutes, so sometimes it’s pretty frequent. I have no idea what is triggering this. How can this be fixed?

---

<div class="post-metadata">

**Author:** ![mvaligursky](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/mvaligursky/32/11681_2.png) [@mvaligursky](https://forum.playcanvas.com/u/mvaligursky)\
**Post date:** [November 22, 2023, 11:32am UTC](https://forum.playcanvas.com/t/visual-studio-code-keeps-disconnecting/33904/2 "2023-11-22T11:32:32Z")

</div>

@yak32
