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

Autocomplete in mock files #6

Open
mvsde opened this issue Jul 15, 2022 · 1 comment
Open

Autocomplete in mock files #6

mvsde opened this issue Jul 15, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@mvsde
Copy link
Member

mvsde commented Jul 15, 2022

Usually component files have a schema, determining what data they accept. The mock file can use this schema to provide autocomplete for keys.

@mvsde mvsde added the enhancement New feature or request label Jul 15, 2022
@mvsde mvsde self-assigned this Jul 15, 2022
@mvsde
Copy link
Member Author

mvsde commented Aug 2, 2022

The VS Code YAML extension allows associating schema files (https://github.com/redhat-developer/vscode-yaml#associating-schemas). Unfortunately this doesn’t work when dealing with “dynamic” schema paths.

A solution could be dynamic text documents (microsoft/vscode#127812), but I still don’t know how to associate these with the mocks.yaml files.

Another solution could be manually constructing the autocomplete data (https://code.visualstudio.com/api/language-extensions/programmatic-language-features#show-code-completion-proposals).

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

No branches or pull requests

1 participant