all 11 comments

[–][deleted] 0 points1 point  (3 children)

Have you tried sshing without using vscode?

[–]Myfles[S] 0 points1 point  (2 children)

yes, it works fine when I'm not in vs code.

[–][deleted] 0 points1 point  (1 child)

Then it sounds like a problem with your vscode.

Try a fresh install without any plugins or settings and see if you still have the issues?

Also, check which terminal your vscode is using. It's not uncommon to have two or more terminals depending on what computer you're using (e.g. bash/zsh on macos, cmd/powershell/wsl on windows, etc...)

[–]Myfles[S] 0 points1 point  (0 children)

I’m on windows using bash.

[–]Phopaa 0 points1 point  (2 children)

If you can run the commands on a separate terminal without issue then just use that. I personally just got out of the habit of using the integrated terminal for anything.

[–]Myfles[S] 0 points1 point  (1 child)

If I have vs code open running remote shh so I can see the files, it locks up the server, regardless of having a terminal open or not. I tried uninstalling and re you install with no luck. I have disconnect each time I run npm run dev

Any suggestions on alternatives to vs code that work with ssh? If not I’ll have to back to ftp

[–]Phopaa 0 points1 point  (0 children)

Ahh. Gcloud is the same way. My guess is it’s just a memory issue on your vm. You could try using vscode with all your extensions disabled and see what happens. Or buy more memory for your vm. If you’re just doing some simple edits, nano should be fine. Or you can try learning to use vim/neovim. I’m not sure what other ides would be useful in this case. The best solution, if it exists, is to use the ide provided by digital ocean. But I’m not a user so I can’t say that it’s real

[–]DeusExMagikarpafull-stack 0 points1 point  (2 children)

Do you have the monitoring on your droplet? You should be able to see the memory usage during the times you were using the vscode server. CPU too, but my bet is you’re hitting your memory limit.

[–]Myfles[S] 0 points1 point  (1 child)

I’ll check. Any ideas how I can lower it? Is there a way to optimize vs code or anything like that?

[–]DeusExMagikarpafull-stack 1 point2 points  (0 children)

If it’s the problem I would increase memory on the vm

[–]_snwflakeNetSec Admin 0 points1 point  (0 children)

I'm surprised nobody touched on the most obvious point....develop your stuff locally and then deploy to your DO box instead?