Skip to content

Commit

Permalink
fix: resolve upstream issues
Browse files Browse the repository at this point in the history
  • Loading branch information
acao committed Jun 1, 2024
1 parent 45eb768 commit 419bd70
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions src/features/__tests__/json-completion.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { describe, it } from "vitest";

import { expectCompletion } from "./__helpers__/completion.js";
import { MODES } from "../../constants.js";
import { testSchema3, testSchema4 } from "./__fixtures__/schemas.js";
import { expectCompletion } from "./__helpers__/completion";
import { MODES } from "../../constants";
import { testSchema3, testSchema4 } from "./__fixtures__/schemas";

describe.each([
{
Expand Down
20 changes: 10 additions & 10 deletions src/features/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ import type { EditorView, ViewUpdate } from "@codemirror/view";
import { type Diagnostic } from "@codemirror/lint";
import { Draft04, type Draft, type JsonError } from "json-schema-library";

import { getJSONSchema, schemaStateField } from "./state.js";
import { joinWithOr } from "./utils/formatting.js";
import { JSONMode, JSONPointerData, RequiredPick } from "./types.js";
import { parseJSONDocumentState } from "./utils/parseJSONDocument.js";
import { el } from "./utils/dom.js";
import { renderMarkdown } from "./utils/markdown.js";
import { MODES } from "./constants.js";
import { parseYAMLDocumentState } from "./utils/parse-yaml-document.js";
import { parseJSON5DocumentState } from "./utils/parseJSON5Document.js";
import { debug } from "./utils/debug.js";
import { getJSONSchema, schemaStateField } from "./state";
import { joinWithOr } from "../utils/formatting";
import { JSONMode, JSONPointerData, RequiredPick } from "../types";
import { parseJSONDocumentState } from "../utils/parse-json-document";
import { el } from "../utils/dom";
import { renderMarkdown } from "../utils/markdown";
import { MODES } from "../constants";
import { parseYAMLDocumentState } from "../utils/parse-yaml-document";
import { parseJSON5DocumentState } from "../utils/parse-json5-document";
import { debug } from "../utils/debug";

const getDefaultParser = (mode: JSONMode): typeof parseJSONDocumentState => {
switch (mode) {
Expand Down

0 comments on commit 419bd70

Please sign in to comment.