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

chore(ls): preview features error message wording #1767

Merged
merged 1 commit into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ describe('Linting', () => {
[
{
message: `The preview feature "huh" is not known. Expected one of: ${previewFeatures.join(', ')}.
If this is unexpected, it might be due to your Prisma VS Code Extension being out of date.`,
If this is unexpected, it might be due to your editor's Prisma Extension being out of date.`,
range: {
start: { line: 2, character: 22 },
end: { line: 2, character: 29 },
Expand Down
2 changes: 1 addition & 1 deletion packages/language-server/src/lib/MessageHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export function handleDiagnosticsRequest(
end: document.positionAt(diag.end),
},
message: previewNotKnownRegex.test(diag.text)
? `${diag.text}.\nIf this is unexpected, it might be due to your Prisma VS Code Extension being out of date.`
? `${diag.text}.\nIf this is unexpected, it might be due to your editor's Prisma Extension being out of date.`
: diag.text,
source: 'Prisma',
}
Expand Down
Loading