mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-04-18 16:30:32 +08:00
Revert "fix(editor): restore syntax highlighting for JS/CSS in Monaco editor"
This reverts commit 55ac25b1a69f51c48def07caccdacc45211d2fbf. vite-plugin-monaco-editor-esm has handled it
This commit is contained in:
parent
0b641992e7
commit
272c2f3467
@ -25,15 +25,6 @@ import { ReactNode, useEffect, useMemo, useRef, useState } from "react";
|
|||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import pac from "types-pac/pac.d.ts?raw";
|
import pac from "types-pac/pac.d.ts?raw";
|
||||||
|
|
||||||
// Ensure Monaco language contributions are registered for proper syntax highlighting.
|
|
||||||
// - basic-languages registers the language ids and tokenizers
|
|
||||||
// - language/* contributions wire up workers and rich language features
|
|
||||||
// Without these, non-YAML editors (e.g. javascript/css) may appear uncolored.
|
|
||||||
import "monaco-editor/esm/vs/basic-languages/javascript/javascript.contribution";
|
|
||||||
import "monaco-editor/esm/vs/language/typescript/monaco.contribution";
|
|
||||||
import "monaco-editor/esm/vs/basic-languages/css/css.contribution";
|
|
||||||
import "monaco-editor/esm/vs/language/css/monaco.contribution";
|
|
||||||
|
|
||||||
import { showNotice } from "@/services/noticeService";
|
import { showNotice } from "@/services/noticeService";
|
||||||
import { useThemeMode } from "@/services/states";
|
import { useThemeMode } from "@/services/states";
|
||||||
import debounce from "@/utils/debounce";
|
import debounce from "@/utils/debounce";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user