diff --git a/lib/locales/en/tab-completion.json b/lib/locales/en/tab-completion.json index 8e398f93db091596bae3bad2fa0de298fe96147c..296a7ba89b6d6c6afa66a03d2baf6a33e4fc395f 100644 --- a/lib/locales/en/tab-completion.json +++ b/lib/locales/en/tab-completion.json @@ -33,6 +33,7 @@ "warn-script-install": "Cannot install tab-completion", "warn-not-confirmed-removal": ["You didn't confirm the removal uninstallation may not be completed", "you may encounter errors you may need to remove it manually from here:", "{{path}}"], "warn-script-added": "An error occurred while adding tab-completion script to \"{{path}}\", error: {{errorMsg}}", + "warn-intellij-issue": "Tab-completion won't work in JetBrains IDEs when the 'New Terminal' feature is enabled. Disable it to restore tab-completion functionality for Magnolia CLI.", "error-non-mgnl-error": "Unexpected error occurred:\n{{errorMsg}}", "error-missing-deps": ["Missing required dependencies: {{deps}}", "To use tab-completion you must first install them."], diff --git a/lib/tab-completion.ts b/lib/tab-completion.ts index a6136c5ae4c1ab16a52a90db921c9ac64d5da801..f5a9e5b9fbc327871ddf0bd19ddaae20dc9e3ffe 100644 --- a/lib/tab-completion.ts +++ b/lib/tab-completion.ts @@ -382,6 +382,7 @@ export default class TabCompletion extends PluginTemplate { private logResult(success: boolean, wasInstalledBefore: boolean) { if (success) { this.logger?.info(this.i18nInstance.t('info-script-configured')) + this.logger?.warn(this.i18nInstance.t('warn-intellij-issue')) this.logger?.info(this.i18nInstance.t('info-script-reopen-terminal')) } else if (!wasInstalledBefore) { this.logger?.warn(this.i18nInstance.t('warn-script-install'))