Skip to content

Commit 2ac6737

Browse files
gbraadjeanp413
authored andcommitted
Fixes 219 Provide a consistent default port.
This is done to keep the default port consistent before 1.62 release where we started using the upstream server
1 parent 9ea312e commit 2ac6737

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/vs/server/main.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ async function start() {
152152
*
153153
* If only `--port` is provided then connect to that port.
154154
*
155-
* In absence of specified ports, connect to port 8000.
155+
* In absence of specified ports, connect to port 3000.
156156
* @param {string | undefined} strPort
157157
* @param {string | undefined} strPickPort
158158
* @returns {Promise<number>}
@@ -166,7 +166,7 @@ async function parsePort(strPort, strPickPort) {
166166
if (!isNaN(port)) {
167167
specificPort = port;
168168
} else {
169-
console.log('Port is not a number, will default to 8000 if no pick-port is given.');
169+
console.log('Port is not a number, will default to 3000 if no pick-port is given.');
170170
}
171171
}
172172

@@ -181,18 +181,18 @@ async function parsePort(strPort, strPickPort) {
181181
return await findFreePort(start, start, end);
182182
}
183183
} else {
184-
console.log('Port range are not numbers, using 8000 instead.');
184+
console.log('Port range are not numbers, using 3000 instead.');
185185
}
186186
} else {
187-
console.log(`Port range: "${strPickPort}" is not properly formatted, using 8000 instead.`);
187+
console.log(`Port range: "${strPickPort}" is not properly formatted, using 3000 instead.`);
188188
}
189189
}
190190

191191
if (specificPort !== -1) {
192192
return specificPort;
193193
}
194194

195-
return 8000;
195+
return 3000;
196196
}
197197

198198
/**

0 commit comments

Comments
 (0)