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

PostgreSQL only: Add autocompletion in the datasource block for extensions when postgresqlExtensions preview feature is set #1265

Closed
Jolg42 opened this issue Oct 20, 2022 · 1 comment · Fixed by #1303
Assignees
Labels
kind/feature A request for a new feature. team/schema Issue for team Schema. topic: autocompletion
Milestone

Comments

@Jolg42
Copy link
Member

Jolg42 commented Oct 20, 2022

Problem

There is no autocompletion for the datasource property extensions

Suggested solution

if the provider is postgres / postgresql
If the postgresqlExtensions preview feature is set

We can suggest extensions = []

Inside [], should we suggest anything?
We could have a hard-coded list to suggest like postgis, citext, pg_tgrm, pgcrypto...?
Note uuid-ossp needs to be suggested as uuidOssp(map: "uuid-ossp")

Docs: https://www.prisma.io/docs/concepts/components/prisma-schema/postgresql-extensions

@Jolg42 Jolg42 added kind/feature A request for a new feature. topic: autocompletion team/schema Issue for team Schema. labels Oct 20, 2022
@Jolg42
Copy link
Member Author

Jolg42 commented Nov 8, 2022

We decided to only suggest extensions = [] for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature A request for a new feature. team/schema Issue for team Schema. topic: autocompletion
Development

Successfully merging a pull request may close this issue.

2 participants