"remote.autoForwardPorts": false gets ignored
See original GitHub issueDoes this issue occur when all extensions are disabled?: I donāt know. If I disable all extensions, then I would remove āRemote Developmentā as well and as a consequence I wouldnāt have a dev container and port forwarding is a moot point.
- VS Code Version: 1.71.2 (user setup)
- OS Version: Windows NT x64 10.0.22000
Steps to Reproduce:
- Use a dev container with no port mapping
- Start an express.js application listening at port 3000
- VS Code will forward port automatically even with the following settings in place (user, container, workspace, as well as devcontainer.json):
{
// Prevent VS Code's automatic port forwarding
"remote.autoForwardPorts": false,
"remote.restoreForwardedPorts": false,
}
Iāve tried four places, and yet VS Code keeps auto forwarding ports.
Where do I need to set this, so that VS Code stops auto forwarding ports?
Iām likely to overlook something but I think this behavior is nasty. If port mapping is not correctly configured for a container, I want the environment to fail fast.
Issue Analytics
- State:
- Created a year ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Why automatic port forwarding? How to prevent VS Code from ...
onAutoForward : A value of ignore means that this port should not be auto-forwarded at all. { "otherPortsAttributes": { "onAutoForward"Ā ...
Read more >User and Workspace Settings - Visual Studio Code
User settings - Apply globally to all VS Code instances. Remote settings - Apply to a remote machine opened by a user. Workspace...
Read more >"Fossies" - the Fresh Open Source Software Archive
autoForwardPorts '; 35 export const PORT_AUTO_SOURCE_SETTING = 'remote. ... number): T | undefined { 131 const initialAddress = map.get(makeAddress(host,Ā ...
Read more >VScode setting.jsé
ē½®ļ¼äŗļ¼ - ęé
VScodeé
ē½®setting.js VSCodeēåŗę¬ä»ē»å
Øę¼ęÆVisualStudioCode(ē®ē§°VSCode)ęÆē±å¾®č½Æē åēäøę¬¾å
č“¹ćå¼ęŗēč·Øå¹³å°ä»£ē ē¼č¾åØ.
Read more >visual-studio-code - vscode settings pane is blank - TagMerge
columnSelection": false, // Controls if empty lines should be ignored with ... cursorWidth": 0, // Defines a default formatter which takes precedence overĀ ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@alexr00 Iāll try to find time this weekend to create a repro repo.
Meanwhile I just came across this item, which may potentially be related. https://github.com/microsoft/vscode/issues/156104 As this item has been just release with VS Code version 1.73.0, it is possible that the VS Code behavior Iāve reported here does not longer occur.
Iām still not able to reproduce the issue of a port still getting forwarded when
"remote.autoForwardPorts": false,
. Do you have a repo you can share with a setup that reproduces the problem for you?