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

Feat: block completion inside children, blocks or capitalized prop #40

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Brunight
Copy link
Collaborator

Enhanced Block Suggestions in VTEX IO Intellisense

This PR improves the block suggestion functionality in the VTEX IO Intellisense extension by:

  • Context-aware suggestions: Only suggests blocks in appropriate contexts:

    • Inside "children" arrays
    • Inside "blocks" arrays
    • In values of "props" object properties with capitalized keys
  • Smart quote handling: Automatically adds quotes when needed, improving the developer experience

  • Code organization: Extracted completion logic to a dedicated module for better maintainability

These enhancements make the extension more intuitive and helpful when working with VTEX IO blocks, reducing errors and improving developer productivity.

Copy link
Collaborator

@Vavarine Vavarine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made some "pitacos", i tested then my self but i think you shold too

Copy link
Collaborator

@Vavarine Vavarine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

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

Successfully merging this pull request may close these issues.

3 participants