Skip to content

Commit 4d576ab

Browse files
committed
Trigger configuration update when loaded
1 parent c3a38e3 commit 4d576ab

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

packages/server/src/cli.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ commander.version(process.env.VERSION || "development")
2525
.option("--data-dir <value>", "DEPRECATED: Use '--user-data-dir' instead. Customize where user-data is stored.")
2626
.option("-h, --host <value>", "Customize the hostname.", "0.0.0.0")
2727
.option("-o, --open", "Open in the browser on startup.", false)
28-
.option("-p, --port <number>", "Port to bind on.", parseInt(process.env.PORT, 10) || 8443)
28+
.option("-p, --port <number>", "Port to bind on.", parseInt(process.env.PORT!, 10) || 8443)
2929
.option("-N, --no-auth", "Start without requiring authentication.", undefined)
3030
.option("-H, --allow-http", "Allow http connections.", false)
3131
.option("-P, --password <value>", "Specify a password for authentication.")

scripts/vscode.patch

+8
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,14 @@ index f68ae90..d6b9ea7 100644
9898
@@ -24 +24 @@ import { disposableTimeout } from 'vs/base/common/async';
9999
-import { isMacintosh } from 'vs/base/common/platform';
100100
+import { isMacintosh } from 'vs/base/browser/browser';
101+
diff --git a/src/vs/base/node/config.ts b/src/vs/base/node/config.ts
102+
index 5ef2193..a232b6c 100644
103+
--- a/src/vs/base/node/config.ts
104+
+++ b/src/vs/base/node/config.ts
105+
@@ -79,0 +80,3 @@ export class ConfigWatcher<T> implements IConfigWatcher<T>, IDisposable {
106+
+ } else {
107+
+ this.cache = config; // update config
108+
+ this._onDidUpdateConfiguration.fire({ config });
101109
diff --git a/src/vs/base/parts/quickopen/browser/quickOpenWidget.ts b/src/vs/base/parts/quickopen/browser/quickOpenWidget.ts
102110
index 74148e4..041205b 100644
103111
--- a/src/vs/base/parts/quickopen/browser/quickOpenWidget.ts

0 commit comments

Comments
 (0)