Skip to content

Commit 9bfa95e

Browse files
committed
guard for configuration not being present
1 parent ff757df commit 9bfa95e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

server/src/server.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -954,8 +954,12 @@ function onMessage(msg: m.Message) {
954954
// if we want to support having several projects open at the same time
955955
// without their settings overriding eachother. Not a problem now though
956956
// as we'll likely only have "global" settings starting out.
957-
let [configuration] = msg.result as [extensionConfiguration];
958-
extensionConfiguration = configuration;
957+
let [configuration] = msg.result as [
958+
extensionConfiguration | null | undefined
959+
];
960+
if (configuration != null) {
961+
extensionConfiguration = configuration;
962+
}
959963
}
960964
} else if (
961965
msg.result != null &&

0 commit comments

Comments
 (0)