[6.17.x] Extremely slow formatting and lint on save in vscode

Hello! Just posting to see if anyone has a fix for prisma taking a long time to format and to save in vscode? We switch from using the wasm and it has become really slow on formatting and saving. prisma.config.ts
import "dotenv/config";
import path from "node:path";
import { defineConfig } from "prisma/config";

export default defineConfig({
schema: path.join('prisma'),
})
import "dotenv/config";
import path from "node:path";
import { defineConfig } from "prisma/config";

export default defineConfig({
schema: path.join('prisma'),
})
schema.prisma
generator client {
provider = "prisma-client"
output = "../src/lib/generated/prisma"
previewFeatures = ["fullTextSearchPostgres"]
engineType = "client"
}

datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
generator client {
provider = "prisma-client"
output = "../src/lib/generated/prisma"
previewFeatures = ["fullTextSearchPostgres"]
engineType = "client"
}

datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
3 Replies
Prisma AI Help
Prisma AI Help2mo ago
You selected the carefully hand-crafted route. A dev artisan will respond soon. Meanwhile, the #ask-ai channel awaits if you're curious!
dr.really
dr.reallyOP2mo ago
Issue has already been filed here: https://github.com/prisma/prisma/issues/28162 Just curious if there was a workaround or anything
GitHub
prisma.config.ts - slow formatting · Issue #28162 · prisma/prisma
Bug description nestjs + prisma + webstorm (lang) Since starting to use prisma.config.ts, it has been inconvenient that modifying and saving schema files takes over 10 seconds. There are many model...
Nurul
Nurul4w ago
Does this workaround fix the issue for you?

Did you find this page helpful?