language-tools icon indicating copy to clipboard operation
language-tools copied to clipboard

Auto completion suggests `@map` although already present

Open janpio opened this issue 3 years ago • 1 comments

image

For reproduction:

generator client {
    provider        = "prisma-client-js"
    previewFeatures = "mongoDb"
}

datasource pg {
    provider = "mongodb"
    url      = env("TEST_DB_URL")
}

model with_id_and_compound_unique {
  id   Int    @id @map("_id") @
}

janpio avatar Mar 11 '22 20:03 janpio

Probably not mongodb specific, there is sometimes some logic to deduplicate but not always

Jolg42 avatar Mar 15 '22 14:03 Jolg42