bmewburn / vscode-intelephense

PHP intellisense for Visual Studio Code
https://intelephense.com
Other
1.64k stars 94 forks source link

The same completion items from the php extensions #2603

Closed kaermorchen closed 7 months ago

kaermorchen commented 1 year ago

I am the author of the vscode-drupal extension. It extension add some useful features for Drupal projects, like hook autocomplete.

If vscode-intelephense and vscode-drupal are activated in a project, users see the same complete items. For example:

image

The result of hook_cron from vscode-intelephense

hook_cron()

The result of hook_cron from vscode-drupal

/**
 * Implements hook_cron().
 */
function dummy_cron() {

}

Is there a way to hide just the duplication completion items from intelephense in my extension?

bmewburn commented 7 months ago

I believe the vscode api offers a way to check if another extension is active https://code.visualstudio.com/api/references/vscode-api#extensions . I don't think it is possible to intercept another extensions suggestions though.