Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DEMO] Completion Features #1

Closed
yaegassy opened this issue Jul 14, 2023 · 27 comments
Closed

[DEMO] Completion Features #1

yaegassy opened this issue Jul 14, 2023 · 27 comments

Comments

@yaegassy
Copy link
Owner

No description provided.

@yaegassy
Copy link
Owner Author

Config completion

PHP:

config-1-php.mp4

Blade:

config-2-blade.mp4

@yaegassy
Copy link
Owner Author

Env completion

PHP:

env-1-php.mp4

Blade:

env-2-blade.mp4

@yaegassy
Copy link
Owner Author

Validation completion

validation-1-php.mp4

@yaegassy
Copy link
Owner Author

Route completion

PHP:

route-1-php.mp4

Blade:

route-2-blade.mp4

@yaegassy
Copy link
Owner Author

View completion

PHP:

view-1-php.mp4

Blade:

view-2-blade.mp4

@yaegassy
Copy link
Owner Author

Middleware completion

middleware-1-php.mp4

@yaegassy
Copy link
Owner Author

Guard completion

PHP:

guard-1-php.mp4

Blade:

guard-2-blade.mp4

@yaegassy
Copy link
Owner Author

Translation Completion

Blade:

translation-1-blade.mp4

@yaegassy

This comment was marked as outdated.

@yaegassy

This comment was marked as outdated.

@yaegassy
Copy link
Owner Author

yaegassy commented Jul 20, 2023

PHP Function Completion

  • Contents of completion items
    • Standard function obtained by parsing phpstorm-stubs. By default standard, date, and Core are parsed. Can be changed by setting laravel.stubs.useStubs.
    • Function obtained by parsing the vendor directory. Functions with namespaces are also supported. You can also exclude a specific vendor in the laravel.project.excludeVendors settings.
php-function-1-blade.mp4

@yaegassy yaegassy changed the title DEMO [DEMO] Completion Features Jul 21, 2023
@yaegassy
Copy link
Owner Author

yaegassy commented Jul 24, 2023

Method directive parameter completion

completion-method-directive-parameter-completion.mp4

@yaegassy
Copy link
Owner Author

Component Completion

blade-component-completion-demo.mp4

@yaegassy
Copy link
Owner Author

Directive completion

1-Directive-completion.mp4

@yaegassy
Copy link
Owner Author

yaegassy commented Jul 31, 2023

Livewire tag completion

1-livewire-tag-completion.mp4

@yaegassy
Copy link
Owner Author

yaegassy commented Jul 31, 2023

Livewire action completion

Setting items related to this feature:

  • laravel.livewire.wireClickAttributes: List of click related action to be added to wire:xxxx, default: ["click", "click.prefetch"]
  • laravel.livewire.wireModelAttributes: List of model related action to be added to wire:xxxx, default: ["model", "model.debounce.100ms", "model.lazy", "model.defer"]
2-livewire-action-completion.mp4

@yaegassy
Copy link
Owner Author

yaegassy commented Jul 31, 2023

Livewire event completion

Setting items related to this feature:

  • laravel.livewire.wireEventAttributes: List of browser events to be added to wire:xxxx. No need for wire:model or wire:click. default: Omitted due to the large number of settings..., See configuration in package.json
3-livewire-event-completion.mp4

@yaegassy
Copy link
Owner Author

Livewire directive completion

1-Livewire-directive.completion.mp4

@yaegassy
Copy link
Owner Author

yaegassy commented Aug 1, 2023

Livewire property completion

Livewire-property-completion.mp4

@yaegassy
Copy link
Owner Author

yaegassy commented Aug 9, 2023

PHP Class Completion

  • Contents of completion items
    • Standard class obtained by parsing phpstorm-stubs. By default standard, date, and Core are parsed. Can be changed by setting laravel.stubs.useStubs.
    • Class obtained by parsing the vendor directory. This includes class, interface, trait, and enum. You can also exclude a specific vendor in the laravel.project.excludeVendors settings.
php-class-completion.mp4

@yaegassy
Copy link
Owner Author

yaegassy commented Aug 9, 2023

PHP Constant completion

  • Contents of completion items
    • Standard constant obtained by parsing phpstorm-stubs. By default standard, date, and Core are parsed. Can be changed by setting laravel.stubs.useStubs.
    • Constant obtained by parsing the vendor directory. You can also exclude a specific vendor in the laravel.project.excludeVendors settings.

@yaegassy
Copy link
Owner Author

yaegassy commented Aug 9, 2023

PHP Keyword completion

@yaegassy
Copy link
Owner Author

yaegassy commented Aug 11, 2023

PHP Static Class completion

Complementary items are displayed by entering :: in the class. e.g. DateTime::|.

This feature uses PHP's ReflectionAPI in the background, so PHP in your environment must be able to run correctly.

php-scope-resolution-completion.mp4

@yaegassy
Copy link
Owner Author

PHP Variable completion

this completion feature of variables or objects defined in inline-php region (<?php ... ?>) and php-directive region (@php ... @endphp) in the blade file. Variables defined above the current cursor position are targeted.

The details that are displayed when a completion item is selected are displayed using PHP reflection in the case of an object to identify what kind of object it is.

As a side note, there are other php-related regions in the blade file besides inline-php and php-directive, but I thought that I wouldn't define variables there, so I don't support them at the moment. The processing also needs a bit of work.

php-variable-completion.mp4

@yaegassy
Copy link
Owner Author

PHP Object Member completion

php-object-member-completion.mp4

@yaegassy
Copy link
Owner Author

yaegassy commented Aug 25, 2023

Eloquent Model Field completion

Completion feature using _ide_helper_models.php file generated by laravel-ide-helper

eloquent-model-field-completion.mp4

@yaegassy
Copy link
Owner Author

View Reference Variable completion

This feature completes the variables specified in the view function of the php file with the blade file. Variables passed in with method can also be completed.

Unfortunately, the use of the compact function cannot be completed at this time.

viewReferenceVariableCompletion.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant