Skip to content

Commit

Permalink
null values are not stored in the map
Browse files Browse the repository at this point in the history
  • Loading branch information
diyaayay committed Mar 18, 2024
1 parent f696732 commit 544eeab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion language-server/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ async function getDocumentSettings(resource) {
scopeUri: resource,
section: "jsonSchemaLanguageServer"
});
documentSettings.set(resource, result);
if (result !== null) {
documentSettings.set(resource, result);
}
}

return result ?? {};
Expand Down

0 comments on commit 544eeab

Please sign in to comment.