We don't have an LSP for Strawberry Django, but in case we add one I think this feature would be neat to have.
We allow to use fields="__all__", which might lead to security issues, so the LSP could warn when using that, and also provide a code action that does what __all__ does, but with code
From this:
@strawberry.django.type(models.Flyer, fields="__all__")
class Flyer:
...
To this:
@strawberry.django.type(models.Flyer)
class Flyer:
id: auto
title: auto
We could also add code action to expose additional fields :)
Upvote & Fund
We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.
We don't have an LSP for Strawberry Django, but in case we add one I think this feature would be neat to have.
We allow to use
fields="__all__"
, which might lead to security issues, so the LSP could warn when using that, and also provide a code action that does what__all__
does, but with codeFrom this:
To this:
We could also add code action to expose additional fields :)
Upvote & Fund