Skip to content

Commit 7c56a0d

Browse files
committed
feat(query compiler): add client engine type to completions
1 parent 87e4eac commit 7c56a0d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

packages/language-server/src/__test__/completions/single-file.test.ts

+4
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,10 @@ describe('Completions', function () {
588588
label: 'binary',
589589
kind: CompletionItemKind.Constant,
590590
},
591+
{
592+
label: 'client',
593+
kind: CompletionItemKind.Constant,
594+
},
591595
],
592596
},
593597
})

packages/language-server/src/lib/completions/completions.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
"label": "engineType",
9999
"insertText": "engineType = \"$0\"",
100100
"documentation": "Defines the query engine type for Prisma Client. Default: `library`. [Learn more](https://pris.ly/d/client-engine-type).",
101-
"fullSignature": "engineType = \"library\" | \"binary\""
101+
"fullSignature": "engineType = \"library\" | \"binary\" | \"client\""
102102
},
103103
{
104104
"label": "binaryTargets",
@@ -403,6 +403,10 @@
403403
{
404404
"label": "binary",
405405
"documentation": "Executable binary."
406+
},
407+
{
408+
"label": "client",
409+
"documentation": "TypeScript based query execution. Node-API library for query compilation."
406410
}
407411
],
408412
"engineTypeArguments": [

0 commit comments

Comments
 (0)