From 7442191a0c72d4c75bd0183ab9df5d7bacf0c902 Mon Sep 17 00:00:00 2001 From: pompurin404 Date: Mon, 19 Aug 2024 20:20:19 +0800 Subject: [PATCH] fix editor --- changelog.md | 1 + electron.vite.config.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 2fd1905..a876ff6 100644 --- a/changelog.md +++ b/changelog.md @@ -6,3 +6,4 @@ ### Bug Fixes - 修复托盘菜单在Linux下崩溃的问题 +- 修复编辑器补全/提示/格式化问题 diff --git a/electron.vite.config.ts b/electron.vite.config.ts index 4dad0b1..b1c86d5 100644 --- a/electron.vite.config.ts +++ b/electron.vite.config.ts @@ -31,7 +31,7 @@ export default defineConfig({ react(), monacoEditorPlugin({ languageWorkers: ['editorWorkerService', 'typescript', 'json'], - customDistPath: () => 'out/renderer', + customDistPath: (_, out) => `${out}/monacoeditorwork`, customWorkers: [ { label: 'yaml',