Rename directory "engines" to "languages"
This commit is contained in:
@ -5,7 +5,7 @@ import {
|
||||
DocumentEdit,
|
||||
DocumentRange,
|
||||
MonacoTokensProvider,
|
||||
} from "../../engines/types";
|
||||
} from "../../languages/types";
|
||||
import {
|
||||
createHighlightRange,
|
||||
createMonacoDocEdit,
|
||||
@ -16,7 +16,7 @@ import { useEditorBreakpoints } from "./use-editor-breakpoints";
|
||||
import darkTheme from "./themes/dark.json";
|
||||
import lightTheme from "./themes/light.json";
|
||||
import { useDarkMode } from "../providers/dark-mode-provider";
|
||||
import { WorkerParseError } from "../../engines/worker-errors";
|
||||
import { WorkerParseError } from "../../languages/worker-errors";
|
||||
import { useCodeValidator } from "./use-code-validator";
|
||||
|
||||
/** Keeps track of user's original program and modifications done to it */
|
||||
|
@ -1,6 +1,6 @@
|
||||
import monaco from "monaco-editor";
|
||||
import { DocumentEdit, DocumentRange } from "../../engines/types";
|
||||
import { WorkerParseError } from "../../engines/worker-errors";
|
||||
import { DocumentEdit, DocumentRange } from "../../languages/types";
|
||||
import { WorkerParseError } from "../../languages/worker-errors";
|
||||
|
||||
/** Type alias for an instance of Monaco editor */
|
||||
export type EditorInstance = monaco.editor.IStandaloneCodeEditor;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import * as React from "react";
|
||||
import { WorkerParseError } from "../../engines/worker-errors";
|
||||
import { WorkerParseError } from "../../languages/worker-errors";
|
||||
import {
|
||||
createValidationMarker,
|
||||
EditorInstance,
|
||||
|
@ -1,6 +1,6 @@
|
||||
import React from "react";
|
||||
import { useMonaco } from "@monaco-editor/react";
|
||||
import { MonacoTokensProvider } from "../../engines/types";
|
||||
import { MonacoTokensProvider } from "../../languages/types";
|
||||
|
||||
type ConfigParams = {
|
||||
languageId: string;
|
||||
|
Reference in New Issue
Block a user