-
Notifications
You must be signed in to change notification settings - Fork 52
Missing icon and syntax highlighting in VS Code #1979
Copy link
Copy link
Open
Description
Bug description
Around 1 hour ago, I noticed two things:
- The extension icon is missing (weird but I can still click it)
- Syntax highlighting isn't applied (autocompletion, code lens, linting and formatting still work)
I really don't think updating dependencies in one project affects the VS Code extension but I noticed these oddly specifics bugs after migrating Prisma ORM to v7...
A coincidence, maybe.
How to reproduce
I updated @prisma/client, @prisma/client and @prisma/adapter-pg to ^7.6.0.
I noticed the two bugs happen at the same time.
Then, I've done the following steps:
- Uninstall and reinstall
- Close VS Code (+ a PC restart)
- Switch back to an old theme in case the new VS Code themes overrode anything
- Check if the following is in settings:
Expected behavior
Sidebar icon should be visible and syntax highlighting applied to *.prisma files.
Prisma information
I'm using a minimal config.
/prisma.config.ts
import 'dotenv/config'
import { defineConfig } from 'prisma/config'
import { env } from './src/env'
export default defineConfig({
schema: 'prisma/schema',
datasource: { url: env.DATABASE_URL },
migrations: {
path: 'prisma/migrations',
seed: 'tsx prisma/seed.ts',
},
})I use several schemas located in /prisma/schema/*.prisma.
/prisma/schema/schema.prisma
generator client {
provider = "prisma-client"
output = "../../generated/prisma"
previewFeatures = ["postgresqlExtensions"]
}
datasource db {
provider = "postgresql"
extensions = [pgcrypto]
}
Same issue:
Environment & setup
- OS: Windows
- Editor: VS Code
- Editor version: 1.113.0
- Extension version: 31.7.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
{ "[prisma]": { "editor.defaultFormatter": "Prisma.prisma" } }