Since version 5.15.0, the extension runs very slowly whenever there is a .prisma file in the root directory of the project. Linting and formatting take more than 2 seconds to respond. However, when moving the .prisma file to any other folder, the running speed returns to normal.
How to reproduce
Create a project with a .prisma file in the root directory.
Use the extension to lint or format the file.
Notice the delay in response (more than 2 seconds).
Move the .prisma file to a different folder.
Use the extension again and observe that the response time is normal.
Expected behavior
Linting and formatting should respond quickly even when the .prisma file is located in the root directory of the project.
Prisma information
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "sqlserver"
url = env("DATABASE_URL")
}
model User {
id Int @id @default(autoincrement())
name String
email String @unique
posts Post[]
}
model Post {
id Int @id @default(autoincrement())
title String
content String?
published Boolean @default(false)
authorId Int
author User @relation(fields: [authorId], references: [id])
}
Bug description
Since version 5.15.0, the extension runs very slowly whenever there is a .prisma file in the root directory of the project. Linting and formatting take more than 2 seconds to respond. However, when moving the .prisma file to any other folder, the running speed returns to normal.
How to reproduce
Expected behavior
Linting and formatting should respond quickly even when the .prisma file is located in the root directory of the project.
Prisma information
Environment & setup