mirror of
https://github.com/purocean/yn.git
synced 2026-09-24 15:46:02 +08:00
feat: fix enabling AI Copilot Action in the editor settings
This commit is contained in:
@@ -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: [] }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user