Skip to content

Commit 87bf30a

Browse files
committed
Update dependencies
1 parent c1528bf commit 87bf30a

File tree

6 files changed

+489
-487
lines changed

6 files changed

+489
-487
lines changed

language-server/src/features/diagnostics/validate-references.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe("Feature - Validate References Errors", () => {
1717
await client.stop();
1818
});
1919

20-
test("invalid external reference", async () => {
20+
test("invalid external reference", { retry: 3 }, async () => {
2121
await client.writeDocument("./subject.schema.json", `{
2222
"$schema": "http://json-schema.org/draft-07/schema#",
2323
"properties": {

language-server/src/features/find-references.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ describe("Feature - References", () => {
129129
]);
130130
});
131131

132-
test("match self identified externally", async () => {
132+
test("match self identified externally", { retry: 3 }, async () => {
133133
await client.writeDocument("./subject.schema.json", `{
134134
"$schema":"http://json-schema.org/draft-07/schema#",
135135
"$ref": "https://example.com/schemas/two#/definitions/names",

language-server/src/features/goto-definition.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ describe("Feature - Goto Definition", () => {
161161
]);
162162
});
163163

164-
test("match self identified externally", async () => {
164+
test("match self identified externally", { retry: 3 }, async () => {
165165
await client.writeDocument("./subject.schema.json", `{
166166
"$schema":"http://json-schema.org/draft-07/schema#",
167167
"$ref": "https://example.com/schemas/two#/definitions/names",

language-server/src/model/schema-document.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const fromJsonc = (node, uri, pointer, dialectUri, parent, schemaLocations = new
8383
if (node.type === "object" && (isSchema || !isKnown)) {
8484
let embeddedDialectUri = dialectUri;
8585
const $schemaNode = nodeStep(node, "$schema");
86-
if ($schemaNode && $schemaNode.type === "string") {
86+
if ($schemaNode?.type === "string") {
8787
try {
8888
/** @type unknown */
8989
const value = getNodeValue($schemaNode);

0 commit comments

Comments
 (0)