Skip to content

Commit a0dd178

Browse files
committed
Update level when config changes
1 parent b111560 commit a0dd178

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

server/src/server.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1692,6 +1692,17 @@ async function onMessage(msg: p.Message) {
16921692
];
16931693
if (configuration != null) {
16941694
config.extensionConfiguration = configuration;
1695+
1696+
let updatedLogLevel = configuration.logLevel as LogLevel | undefined;
1697+
1698+
if (
1699+
updatedLogLevel === "error" ||
1700+
updatedLogLevel === "warn" ||
1701+
updatedLogLevel === "info" ||
1702+
updatedLogLevel === "log"
1703+
) {
1704+
setLogLevel(updatedLogLevel);
1705+
}
16951706
}
16961707
}
16971708
} else if (

0 commit comments

Comments
 (0)