@prisma/orm-toolchain 8.0.0-rc.17-dev.29 → 8.0.0-rc.17-dev.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -6909,7 +6909,7 @@ const lspCommand = defineServerCommand({
6909
6909
  } },
6910
6910
  handler: async (args, io) => {
6911
6911
  const exitCode = await withoutClientProcessIdInArgv(async () => {
6912
- const { startServer } = await import("./exports-D997yN01.mjs");
6912
+ const { startServer } = await import("./exports-DMsKSD65.mjs");
6913
6913
  return startServer({
6914
6914
  stdin: io.stdin,
6915
6915
  stdout: io.stdout,
@@ -12,7 +12,7 @@ import { format, resolveFormatOptions } from "@prisma/orm-framework/psl-parser/f
12
12
  import { EMPTY_DATA_TYPES, assembleAttributeSpecs, blockSpecContext, blockSpecFactoryOf, buildSymbolTable, createBinder, entityReference, findBlockDescriptor, isNamespaceLike, isPrismaNextSchema, isPslIdentifier, matchesSelector, memberEntries, renameLegacyDirective, typeReferenceNode } from "@prisma/orm-framework/psl-parser";
13
13
  import { CompletionItemKind, CompletionItemTag, ConnectionError, ConnectionErrors, DiagnosticSeverity, DidChangeWatchedFilesNotification, DocumentDiagnosticReportKind, FoldingRangeKind, InsertTextFormat, LSPErrorCodes, MarkupKind, ProposedFeatures, RegistrationRequest, ResponseError, SemanticTokenModifiers, SemanticTokenTypes, TextDocumentSyncKind, createConnection } from "vscode-languageserver";
14
14
  import { TextDocument } from "vscode-languageserver-textdocument";
15
- import { ArrayLiteralAst, AttributeArgAst, AttributeArgListAst, BooleanLiteralExprAst, CompositeTypeDeclarationAst, FieldAttributeAst, FieldDeclarationAst, FunctionCallAst, GenericBlockDeclarationAst, IdentifierAst, KeyValuePairAst, MixinDeclarationAst, ModelAttributeAst, ModelDeclarationAst, NamespaceDeclarationAst, NumberLiteralExprAst, ObjectLiteralExprAst, PathExprAst, PslSources, StringLiteralExprAst, SyntaxNode, SyntaxToken, TaggedLiteralExprAst, TypesBlockAst, any, isTrivia, nonTriviaSibling, parse, skipTriviaToken } from "@prisma/orm-framework/psl-parser/syntax";
15
+ import { ArrayLiteralAst, AttributeArgAst, AttributeArgListAst, BooleanLiteralExprAst, CompositeTypeDeclarationAst, FieldAttributeAst, FieldDeclarationAst, FunctionCallAst, GenericBlockDeclarationAst, IdentifierAst, KeyValuePairAst, MixinDeclarationAst, MixinInclusionAst, ModelAttributeAst, ModelDeclarationAst, NamespaceDeclarationAst, NumberLiteralExprAst, ObjectLiteralExprAst, PathExprAst, PslSources, StringLiteralExprAst, SyntaxNode, SyntaxToken, TaggedLiteralExprAst, TypesBlockAst, any, isTrivia, nonTriviaSibling, parse, skipTriviaToken } from "@prisma/orm-framework/psl-parser/syntax";
16
16
  import { hasPslInterpreter } from "@prisma/orm-framework/psl-parser/interpret";
17
17
  import { isAuthoringPslBlockDescriptor } from "@prisma/orm-framework/components/authoring";
18
18
  import { ProposedFeatures as ProposedFeatures$1, StreamMessageReader, StreamMessageWriter, createConnection as createConnection$1, createProtocolConnection } from "vscode-languageserver/node";
@@ -1045,7 +1045,7 @@ function scopeCompletionItems(entries, binder, range, capabilities, selection) {
1045
1045
  for (const [name, resolution] of entries) {
1046
1046
  if (selection !== void 0) {
1047
1047
  if (!offersEntity(resolution, selection)) continue;
1048
- } else if (resolution.kind === "block") continue;
1048
+ } else if (resolution.kind === "block" || resolution.kind === "mixin") continue;
1049
1049
  const item = {
1050
1050
  label: name,
1051
1051
  filterText: name,
@@ -1601,6 +1601,7 @@ function pslSymbolOf(resolution) {
1601
1601
  case "block":
1602
1602
  case "field":
1603
1603
  case "namespace": return resolution.symbol;
1604
+ case "mixin":
1604
1605
  case "contributedType":
1605
1606
  case "contributedNamespace":
1606
1607
  case "crossSpace":
@@ -2370,7 +2371,8 @@ function mapAttributeEdit(input) {
2370
2371
  case "block": return blockTakesMap(symbol, input) ? blockMapEdit(symbol, input) : void 0;
2371
2372
  case "compositeType":
2372
2373
  case "namedType":
2373
- case "namespace": return;
2374
+ case "namespace":
2375
+ case "mixin": return;
2374
2376
  }
2375
2377
  }
2376
2378
  function renamedSymbol(input) {
@@ -2592,6 +2594,7 @@ function collectNamedTypeDeclaration(declaration, source, tokens) {
2592
2594
  }
2593
2595
  function collectGenericBlockMembers(members, source, tokens) {
2594
2596
  for (const member of members) {
2597
+ if (member instanceof MixinInclusionAst) continue;
2595
2598
  if ("key" in member) {
2596
2599
  addIdentifier(member.key(), "property", tokens);
2597
2600
  collectExpression(member.value(), source, tokens);
@@ -2602,6 +2605,7 @@ function collectGenericBlockMembers(members, source, tokens) {
2602
2605
  }
2603
2606
  function collectBlockMembers(members, source, tokens) {
2604
2607
  for (const member of members) {
2608
+ if (member instanceof MixinInclusionAst) continue;
2605
2609
  if (member instanceof FieldDeclarationAst) {
2606
2610
  collectField(member, source, tokens);
2607
2611
  continue;
@@ -3795,4 +3799,4 @@ function startServer(streams) {
3795
3799
  //#endregion
3796
3800
  export { startServer };
3797
3801
 
3798
- //# sourceMappingURL=exports-D997yN01.mjs.map
3802
+ //# sourceMappingURL=exports-DMsKSD65.mjs.map