feat: fix enabling AI Copilot Action in the editor settings

This commit is contained in:
purocean
2024-08-05 11:34:55 +08:00
parent 2b5e373d87
commit 776e1c76ac
+1 -1
View File
@@ -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: [] }
}