From 776e1c76acf10c0567424fb41c2f93d734aeeb18 Mon Sep 17 00:00:00 2001 From: purocean Date: Mon, 5 Aug 2024 11:34:55 +0800 Subject: [PATCH] feat: fix enabling AI Copilot Action in the editor settings --- src/renderer/plugins/ai-copilot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/plugins/ai-copilot.ts b/src/renderer/plugins/ai-copilot.ts index bc2efa3c..80b99754 100644 --- a/src/renderer/plugins/ai-copilot.ts +++ b/src/renderer/plugins/ai-copilot.ts @@ -14,7 +14,7 @@ export default { provideCodeActions (): languages.CodeActionList { const actionTitle = ctx.i18n.t('edit-or-generate-text-using-ai') - const enabled = ctx.setting.getSetting('editor.enable-ai-copilot-action') + const enabled = ctx.setting.getSetting('editor.enable-ai-copilot-action', true) if (!getInitialized() || checkExtensionLoaded() || !enabled) { return { dispose: () => 0, actions: [] } }