marcelovani / drupal-recipes-autocomplete-vscode

VS Code plugin to provide autocomplete for Drupal Recipes
MIT License
6 stars 0 forks source link

Implement dynamic suggestions for config actions #7

Open marcelovani opened 1 week ago

marcelovani commented 1 week ago

On This issue we implemented contextualised suggestions for config actions. These suggestions work based on Json schema.

Task

Implement dynamic properties for the relevant config actions, example:

config:
  actions:
      user.role.authenticated:
      grantPermissions:
        - 'access help pages' <- Dynamic suggestion for grantPermissions
        - 'access shortcuts'
        - 'access user profiles'
        - 'delete own files'
        - 'use advanced search'
        - 'view own unpublished content'

When using autocomplete under grantPermissions, it should suggest the permissions specific to the role.

Tasks

marcelovani commented 19 hours ago

This ticket is 80% done, the list of Actions supported can be found here https://github.com/marcelovani/drupal-recipes-autocomplete-vscode/wiki/Properties