Blocks should be able to use itself as a child block target in schemas #754
Labels
area:language-server
Bug
Something isn't working
good first issue
Good for newcomers
SEV-3
Normal Severity
Describe the bug
Block type completion should not allow itself as a completion option
Theme check should warn us when we try to use a block within itself
Bonus: Should we also warn when we see a circular block dependency?
Source
![Image](https://private-user-images.githubusercontent.com/2907059/409625203-0c189b71-9d64-4d00-ae6b-65e44ac6b406.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMDI3OTEsIm5iZiI6MTczOTMwMjQ5MSwicGF0aCI6Ii8yOTA3MDU5LzQwOTYyNTIwMy0wYzE4OWI3MS05ZDY0LTRkMDAtYWU2Yi02NWU0NGFjNmI0MDYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTFUMTkzNDUxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YTYwNDk5MGE4Y2VhNjU0ODkxZGI4M2M2OTJlYmI5ZDYzOTE4MzBhMzIwZDQxNGU3MGI3YTMwZTJjNWU3OWQ0ZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.qjTuyW-qc1RQ0CscWFJ5b-brnR3i4qZjXeOF3maY6Ak)
Expected behaviour
blocks
andpresets.[].blocks.[].type
should not include itself as an optionActual behaviour
The text was updated successfully, but these errors were encountered: