TIL
[Error] VScode - WSL Ubuntu 연결 실패 에러 (Failed to connect to the remote extension host server.)
sodait
2021. 4. 29. 01:40
Window10에 설치한 WSL2로 Ubuntu 앱에 연결된 vscode를 열어 작업하려고 하는데,
갑자기 vscode에서 이런 에러가 뜨면서 폴더에 있는 파일들이 뜨지 않고
localhost 서버도 계속 로딩되면서 연결되지 않았다.
Failed to connect to the remote extension host server (Error: webSocket close with status code 1006).
원격 확장 호스트 서버에 연결하지 못했습니다(오류: WebSocket close with status code 1006).
해결
windows PowerShell을 열어
wsl --shutdown 명령을 통해 wsl 재부팅으로 해결!
참고
VS Code connect to WSL Ubuntu 20.04 LTS, fail with error: Could not fetch remote environment
A few days ago I was working just fine with VS Code connected to WSL Ubuntu 20.04, then I did some updating on WSL, Ubuntu 20.04 LTS and VS Code and now I can not connect to WSL 20.04, and I always...
stackoverflow.com