Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vscode plugin formatting bug #187

Closed
beeplin opened this issue May 27, 2020 · 1 comment
Closed

vscode plugin formatting bug #187

beeplin opened this issue May 27, 2020 · 1 comment
Assignees
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. tech/engines Issue for tech Engines. topic: comments topic: formatting
Milestone

Comments

@beeplin
Copy link

beeplin commented May 27, 2020

Bug description

With the new vsode extension, if there is a @unique modifier in a line , the comment following it will be aligned after all the other comments in other lines

How to reproduce

image

Expected behavior

Prisma information

Environment & setup

  • OS: [e.g. Mac OS, Windows, Debian, CentOS, ...]
  • Database: [PostgreSQL, MySQL, MariaDB or SQLite]
  • Prisma version: [Run prisma -v to see your Prisma version]
  • Node.js version: [Run node -v to see your Node.js version]
@janpio janpio transferred this issue from prisma/prisma May 27, 2020
@janpio janpio added topic: formatting topic: comments bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. labels May 27, 2020
@janpio
Copy link
Member

janpio commented May 27, 2020

I can confirm this behavior:

model test {
  id  Int   @default(autoincrement()) @id // Comment 1
  foo foo[] // Comment 2
  bar bar? @relation(fields: [id], references: [id]) // Comment 3
}

becomes

model test {
  id  Int   @default(autoincrement()) @id             // Comment 1
  foo foo[] // Comment 2
  bar bar?  @relation(fields: [id], references: [id]) // Comment 3
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. tech/engines Issue for tech Engines. topic: comments topic: formatting
Projects
None yet
Development

No branches or pull requests

4 participants