vscode-intelephense icon indicating copy to clipboard operation
vscode-intelephense copied to clipboard

GitHub Copilot autocommit dockblock

Open exbit opened this issue 3 years ago • 1 comments

If you install GitHub Copilot, then dockblock autocommit does not work:

When I type: /**

instead of autocomplete intelephense, autocomplete copilot appears:

snap_screen_20220710124332

If copilot is disabled, then intelephense autocomplete works:

/**
 * @param \App\Models\Transaction $transaction
 *
 * @return void
 *
 * @throws \Illuminate\Contracts\Container\BindingResolutionException
 * @throws \GuzzleHttp\Exception\GuzzleException
 * @throws \Throwable
 */
public function __invoke(Transaction $transaction): void
{

Debian 11, PHP 8.1, PHP Intelephense v1.8.2

exbit avatar Jul 10 '22 10:07 exbit

Yep, I get this a bit. Also, namespace imports aren't suggested half the time (half the time they are?).

$product = Product should yield an autocomplete list including an import suggestion of App\Models\Product but copilot thinks its clever and suggests code without the import (e.g. Product::first()). Even if you tab in the copilot suggestion and move the cursor back to the class name (and backspace then retype last character) it won't suggest the class import.

The two plugins are clashing.. out of Intelephense and copilot, it'll be copilot that's first to go for me, but I'd like to see if they can work harmoniously

bradietilley avatar Sep 04 '22 23:09 bradietilley

+1

gautiermichelin avatar May 04 '23 05:05 gautiermichelin