Skip to content

Commit e3700a3

Browse files
aspeddrozth
authored andcommitted
fix undefined inlayHints
1 parent 2d83551 commit e3700a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/server.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ let compilerLogsWatcher = chokidar
231231
.on("all", (_e, changedPath) => {
232232
sendUpdatedDiagnostics();
233233
sendCompilationFinishedMessage();
234-
if (extensionConfiguration.inlayHints.enable === true) {
234+
if (extensionConfiguration.inlayHints?.enable === true) {
235235
sendInlayHintsRefresh();
236236
}
237237
if (extensionConfiguration.codeLens === true) {
@@ -1035,7 +1035,7 @@ function onMessage(msg: p.Message) {
10351035
// TODO: Support range for full, and add delta support
10361036
full: true,
10371037
},
1038-
inlayHintProvider: extensionConfiguration.inlayHints.enable,
1038+
inlayHintProvider: extensionConfiguration.inlayHints?.enable,
10391039
codeLensProvider: extensionConfiguration.codeLens
10401040
? {
10411041
workDoneProgress: false,

0 commit comments

Comments
 (0)