Skip to content

Commit 562e970

Browse files
committed
silent auto-forwarding for specific ports, ignore all other ports
1 parent 0c6c2a9 commit 562e970

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

devcontainer.json

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,29 @@
173173
"editor.defaultFormatter": "ms-python.autopep8"
174174
},
175175
"remote.autoForwardPorts": true,
176-
"remote.autoForwardPortsFallback": 0,
177176
"remote.autoForwardPortsSource": "process",
177+
"remote.portsAttributes": {
178+
"5000": {
179+
"onAutoForward": "silent"
180+
},
181+
"5900": {
182+
"onAutoForward": "silent"
183+
},
184+
"6081": {
185+
"onAutoForward": "silent"
186+
},
187+
"8080": {
188+
"onAutoForward": "silent"
189+
},
190+
"8082": {
191+
"onAutoForward": "silent"
192+
},
193+
"8787": {
194+
"onAutoForward": "silent"
195+
}
196+
},
178197
"remote.otherPortsAttributes": {
179-
"onAutoForward": "silent"
198+
"onAutoForward": "ignore"
180199
},
181200
"scm.countBadge": "off",
182201
"terminal.integrated.commandsToSkipShell": [

0 commit comments

Comments
 (0)