You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have realised that some VS Code functionality seems to begin listening to a random port whenever it's opened. Apparently it is for WebSockets requests.
$ sudo lsof -PiTCP -sTCP:LISTEN
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
# Other process
# Other process
Code\x20H 14404 **** 37u IPv4 0xcc5f858ae8e4fa6d 0t0 TCP localhost:27741 (LISTEN)
$ ps -p 14404
PID TTY TIME CMD
14404 ?? 0:04.32 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper --nolazy --inspect=27741 /Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap-fork --type=extensionHost
My question is, is this normal? I thought it could be due to some extension, but I tried disabling all extensions and reloading VS Code and the issue persists.
Does this issue occur when all extensions are disabled?: Yes
Thank you!
The text was updated successfully, but these errors were encountered:
DavSanchez
changed the title
VS Code listens to random port
VS Code begins listening to random port whenever it's opened
May 14, 2019
DavSanchez
changed the title
VS Code begins listening to random port whenever it's opened
VS Code listens to random port when opened
May 14, 2019
Yeah, that's the extension host process and it enabling the inspector protocol. We use this to profile extensions when the extension host process becomes unresponsive.
You can double check by looking at this message on the dev console. It should be the same port as lsof prints.
We have a great developer community over on slack where extension authors help each other. This is a great place for you to ask questions and find support.
I have realised that some VS Code functionality seems to begin listening to a random port whenever it's opened. Apparently it is for WebSockets requests.
My question is, is this normal? I thought it could be due to some extension, but I tried disabling all extensions and reloading VS Code and the issue persists.
Does this issue occur when all extensions are disabled?: Yes
Thank you!
The text was updated successfully, but these errors were encountered: