Skip to content

Missing icon and syntax highlighting in VS Code #1979

@mondesirm

Description

@mondesirm

Bug description

Around 1 hour ago, I noticed two things:

  1. The extension icon is missing (weird but I can still click it)
Image
  1. Syntax highlighting isn't applied (autocompletion, code lens, linting and formatting still work)
Image

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:

  1. Uninstall and reinstall
  2. Close VS Code (+ a PC restart)
  3. Switch back to an old theme in case the new VS Code themes overrode anything
  4. Check if the following is in settings:
{
  "[prisma]": {
    "editor.defaultFormatter": "Prisma.prisma"
  }
}

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:

Image

Environment & setup

  • OS: Windows
  • Editor: VS Code
  • Editor version: 1.113.0
  • Extension version: 31.7.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions