@prisma/orm-toolchain 8.0.0-rc.24-dev.14 → 8.0.0-rc.24-dev.15
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.d.mts +2 -2
- package/dist/cli.mjs +3 -3
- package/dist/cli.mjs.map +1 -1
- package/dist/cli__config-types.d.mts +2 -2
- package/dist/cli__control-api.d.mts +11 -11
- package/dist/cli__control-api.d.mts.map +1 -1
- package/dist/cli__control-api__testing.d.mts +1 -1
- package/dist/config-loader.d.mts +2 -2
- package/dist/{db-sign-BP5u4sSV-CLAaoQ2M.d.mts → db-sign-DGSaPRQ--B_9CmDng.d.mts} +4 -4
- package/dist/{db-sign-BP5u4sSV-CLAaoQ2M.d.mts.map → db-sign-DGSaPRQ--B_9CmDng.d.mts.map} +1 -1
- package/dist/{exports-Byp-xgRY.mjs → exports-YPUSt6NF.mjs} +6 -6
- package/dist/exports-YPUSt6NF.mjs.map +1 -0
- package/dist/{index-CWPFeYyi.d.mts → index-BhNbc269.d.mts} +8 -8
- package/dist/{index-CWPFeYyi.d.mts.map → index-BhNbc269.d.mts.map} +1 -1
- package/package.json +12 -12
- package/dist/exports-Byp-xgRY.mjs.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ContractConfig, ContractSourceContext,
|
|
2
|
-
export { type ContractConfig, type ContractSourceContext, type
|
|
1
|
+
import { ContractConfig, ContractSourceContext, PrismaConfig, defineConfig } from "@prisma/orm-framework/config/config-types";
|
|
2
|
+
export { type ContractConfig, type ContractSourceContext, type PrismaConfig, defineConfig };
|
|
@@ -5,8 +5,8 @@ import "./contract-snapshot-store-DXFizCe8.mjs";
|
|
|
5
5
|
import { i as Refs, n as RefEntry } from "./refs-BNCUu58Y-BIso5Jfg.mjs";
|
|
6
6
|
import { n as MigrationGraph } from "./graph-bDjJ4GL9-BhFevsJS.mjs";
|
|
7
7
|
import { a as MigrationRef, t as ContractRef } from "./ref-resolution-BPhR-kta.mjs";
|
|
8
|
-
import { A as ExecuteDbSignOptions, B as PlannerWarningsListener, C as DbUpdateSuccess, D as EmitOptions, E as EmitFailureCode, G as RenderContractDtsSuccess, H as RenderContractDtsFailureCode, I as OnControlProgress, J as StatementVerb, K as SchemaVerifyOptions, L as PlanAnswer, M as ExecuteDbVerifyOptions, N as ExecuteDbVerifyResult, O as EmitResult, P as IntrospectOptions, Q as executeDbVerify, R as PlanQuestion, S as DbUpdateResult, T as EmitFailure, U as RenderContractDtsOptions, V as RenderContractDtsFailure, W as RenderContractDtsResult, X as VerifyOptions, Y as TemporaryValueReport, Z as executeDbSign, _ as DbInitSuccess, a as ChangedStorageEntity, b as DbSignSpaceOutcome, c as ContractEmitOptions, d as ControlClient, f as ControlClientOptions, g as DbInitResult, h as DbInitOptions, i as AskedSubject, j as ExecuteDbSignResult, k as EmitSuccess, l as ContractEmitResult, m as CreateControlClient, n as AppliedStatementReport, o as CliInvocation, p as ControlProgressEvent, q as StatementText, r as AskedDataLoss, s as CliStructuredError$2, t as AnswerPlanQuestions, u as ControlActionName, v as DbSignOptions, w as EmitContractConfig, x as DbUpdateOptions, y as DbSignSpaceFailure, z as PlanQuestionVerb } from "./db-sign-
|
|
9
|
-
import { s as
|
|
8
|
+
import { A as ExecuteDbSignOptions, B as PlannerWarningsListener, C as DbUpdateSuccess, D as EmitOptions, E as EmitFailureCode, G as RenderContractDtsSuccess, H as RenderContractDtsFailureCode, I as OnControlProgress, J as StatementVerb, K as SchemaVerifyOptions, L as PlanAnswer, M as ExecuteDbVerifyOptions, N as ExecuteDbVerifyResult, O as EmitResult, P as IntrospectOptions, Q as executeDbVerify, R as PlanQuestion, S as DbUpdateResult, T as EmitFailure, U as RenderContractDtsOptions, V as RenderContractDtsFailure, W as RenderContractDtsResult, X as VerifyOptions, Y as TemporaryValueReport, Z as executeDbSign, _ as DbInitSuccess, a as ChangedStorageEntity, b as DbSignSpaceOutcome, c as ContractEmitOptions, d as ControlClient, f as ControlClientOptions, g as DbInitResult, h as DbInitOptions, i as AskedSubject, j as ExecuteDbSignResult, k as EmitSuccess, l as ContractEmitResult, m as CreateControlClient, n as AppliedStatementReport, o as CliInvocation, p as ControlProgressEvent, q as StatementText, r as AskedDataLoss, s as CliStructuredError$2, t as AnswerPlanQuestions, u as ControlActionName, v as DbSignOptions, w as EmitContractConfig, x as DbUpdateOptions, y as DbSignSpaceFailure, z as PlanQuestionVerb } from "./db-sign-DGSaPRQ--B_9CmDng.mjs";
|
|
9
|
+
import { s as PrismaConfig$1 } from "./index-BhNbc269.mjs";
|
|
10
10
|
import { a as emit } from "./index-BHYAWGxJ.mjs";
|
|
11
11
|
import { f as IntegrityQueryOptions, l as ContractSpaceAggregate, m as IntegrityViolation, t as AggregateContractSpace } from "./aggregate-BmhAhXYL.mjs";
|
|
12
12
|
import "./metadata-BtscDay2.mjs";
|
|
@@ -17,7 +17,7 @@ import "@prisma/orm-framework/utils/structured-error";
|
|
|
17
17
|
import { Contract, ContractWithDomain } from "@prisma/orm-framework/contract/types";
|
|
18
18
|
import { Result } from "@prisma/orm-framework/utils/result";
|
|
19
19
|
import { TargetBoundComponentDescriptor } from "@prisma/orm-framework/components/components";
|
|
20
|
-
import { ContractSourceDiagnostic,
|
|
20
|
+
import { ContractSourceDiagnostic, PrismaConfig } from "@prisma/orm-framework/config/config-types";
|
|
21
21
|
//#region ../../../1-framework/3-tooling/cli/dist/exports/control-api.d.mts
|
|
22
22
|
//#region src/control-api/client.d.ts
|
|
23
23
|
declare function createControlClient(options: ControlClientOptions): ControlClient;
|
|
@@ -77,7 +77,7 @@ declare function executeContractEmit(options: ContractEmitOptions, dependencies?
|
|
|
77
77
|
//#endregion
|
|
78
78
|
//#region src/control-api/operations/contract-snapshot-resolution.d.ts
|
|
79
79
|
interface ResolveContractRefToSnapshotBaseOptions {
|
|
80
|
-
readonly config:
|
|
80
|
+
readonly config: PrismaConfig;
|
|
81
81
|
readonly migrationsDir: string;
|
|
82
82
|
/** User-supplied contract reference (hash, prefix, ref name, migration dir name, or <dir>^). */
|
|
83
83
|
readonly refInput: string;
|
|
@@ -188,7 +188,7 @@ declare function loadContractRawSafely(config: {
|
|
|
188
188
|
* stand-in ({@link appContractStandInFromIdentity}), so these commands
|
|
189
189
|
* load without requiring a readable contract.
|
|
190
190
|
*/
|
|
191
|
-
declare function buildReadAggregate(config:
|
|
191
|
+
declare function buildReadAggregate(config: PrismaConfig, options: {
|
|
192
192
|
readonly migrationsDir: string;
|
|
193
193
|
/** Command-scoped verifier to share the verified-hash memo; defaults to one built from `config`. */
|
|
194
194
|
readonly verifySnapshotContent?: SnapshotContentVerifier;
|
|
@@ -433,7 +433,7 @@ interface ContractSourceFailure {
|
|
|
433
433
|
* source's warnings follow its findings as `warn` findings
|
|
434
434
|
* @throws {DOMException} `AbortError` if cancelled via `signal`
|
|
435
435
|
*/
|
|
436
|
-
declare function loadContractSource(config:
|
|
436
|
+
declare function loadContractSource(config: PrismaConfig, options?: {
|
|
437
437
|
readonly signal?: AbortSignal;
|
|
438
438
|
}): Promise<Result<LoadedContractSource, ContractSourceFailure>>;
|
|
439
439
|
//#endregion
|
|
@@ -449,7 +449,7 @@ interface MigrateShowMigration {
|
|
|
449
449
|
readonly to: string;
|
|
450
450
|
}
|
|
451
451
|
interface ExecuteMigrateShowPlanOptions {
|
|
452
|
-
readonly config:
|
|
452
|
+
readonly config: PrismaConfig;
|
|
453
453
|
/** Directory the command was invoked from. */
|
|
454
454
|
readonly cwd: string;
|
|
455
455
|
readonly db?: string;
|
|
@@ -618,7 +618,7 @@ declare function runMigrationCheck(inputs: RunMigrationCheckInputs): Promise<Res
|
|
|
618
618
|
/**
|
|
619
619
|
* The integrity violations of the project's contract spaces. A contract the family refuses to load, the app's or a snapshot's, such as one holding a default its column type does not hold, is the error, with the refusal's meta; any other failure to load the aggregate leaves the violations to the other checks.
|
|
620
620
|
*/
|
|
621
|
-
declare function loadAggregateIntegrityViolations(config:
|
|
621
|
+
declare function loadAggregateIntegrityViolations(config: PrismaConfig$1, migrationsDir: string, verifySnapshotContent?: SnapshotContentVerifier): Promise<Result<readonly IntegrityViolation[], CliStructuredError$2>>;
|
|
622
622
|
interface MigrationCheckOutcome {
|
|
623
623
|
readonly result?: MigrationCheckResult;
|
|
624
624
|
readonly error?: CliStructuredError$2;
|
|
@@ -705,7 +705,7 @@ declare function runMigrationList(inputs: RunMigrationListInputs): Result<Migrat
|
|
|
705
705
|
//#endregion
|
|
706
706
|
//#region src/control-api/operations/migration-new.d.ts
|
|
707
707
|
interface MigrationNewOptions {
|
|
708
|
-
readonly config:
|
|
708
|
+
readonly config: PrismaConfig;
|
|
709
709
|
/** Directory the command was invoked from. */
|
|
710
710
|
readonly cwd: string;
|
|
711
711
|
/** The project's directory, normally the validated config's `baseDir`; locates the project manifest. */
|
|
@@ -726,7 +726,7 @@ declare function executeMigrationNewCommand(options: MigrationNewOptions): Promi
|
|
|
726
726
|
//#endregion
|
|
727
727
|
//#region src/control-api/operations/migration-plan.d.ts
|
|
728
728
|
interface MigrationPlanOptions {
|
|
729
|
-
readonly config:
|
|
729
|
+
readonly config: PrismaConfig;
|
|
730
730
|
/** Directory the command was invoked from. */
|
|
731
731
|
readonly cwd: string;
|
|
732
732
|
/** The project's directory, normally the validated config's `baseDir`; locates the project manifest. */
|
|
@@ -935,7 +935,7 @@ interface RefListResult {
|
|
|
935
935
|
readonly refs: Record<string, RefEntry>;
|
|
936
936
|
}
|
|
937
937
|
interface RefOperationOptions {
|
|
938
|
-
readonly config:
|
|
938
|
+
readonly config: PrismaConfig;
|
|
939
939
|
/** Directory the command was invoked from. */
|
|
940
940
|
readonly cwd: string;
|
|
941
941
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli__control-api.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/exports/control-api.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;iBAkBiB,oBAAoB,SAAS,uBAAuB;;;;;;iBAMpD,eAAe,IAAI,UAAU,YA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AAqB;WACrB,QAAQ;WACR,aAAa;;;;;;;;;iBASP,kBAAkB,OAAO,yBAAyB,gBAAgB,gCAAgC;;;iBAGlG,iBAAiB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as MigrateResult, N as ExecuteDbVerifyResult, O as EmitResult, S as DbUpdateResult, W as RenderContractDtsResult, d as ControlClient, g as DbInitResult, j as ExecuteDbSignResult } from "./db-sign-
|
|
1
|
+
import { F as MigrateResult, N as ExecuteDbVerifyResult, O as EmitResult, S as DbUpdateResult, W as RenderContractDtsResult, d as ControlClient, g as DbInitResult, j as ExecuteDbSignResult } from "./db-sign-DGSaPRQ--B_9CmDng.mjs";
|
|
2
2
|
import { CoreSchemaView, OperationPreview, VerifyDatabaseResult, VerifyDatabaseSchemaResult } from "@prisma/orm-framework/components/control";
|
|
3
3
|
import { ContractMarkerRecord, LedgerEntryRecord } from "@prisma/orm-framework/contract/types";
|
|
4
4
|
import { PslDocumentAst } from "@prisma/orm-framework/components/psl-ast";
|
package/dist/config-loader.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as loadConfigForSections, a as LoadedConfig, b as requireConfigSections, c as buildLoadedConfig, d as findNearestConfigPathForFile, f as globContractInputMatching, g as loadConfigForFile, h as loadConfigFiles, i as ConfigSection, l as evaluateConfigModule, m as loadConfig, n as ConfigFile, o as ORM_CONFIG_SECTION_NAME, p as isConfigSection, r as ConfigFiles, s as
|
|
2
|
-
export { CONFIG_FILENAME, type ConfigFile, type ConfigFiles, type ConfigSection, type LoadedConfig, ORM_CONFIG_SECTION_NAME, type
|
|
1
|
+
import { _ as loadConfigForSections, a as LoadedConfig, b as requireConfigSections, c as buildLoadedConfig, d as findNearestConfigPathForFile, f as globContractInputMatching, g as loadConfigForFile, h as loadConfigFiles, i as ConfigSection, l as evaluateConfigModule, m as loadConfig, n as ConfigFile, o as ORM_CONFIG_SECTION_NAME, p as isConfigSection, r as ConfigFiles, s as PrismaConfig, t as CONFIG_FILENAME, u as expandContractInputs, v as ormConfigSchema, x as validateOrmSection, y as ormConfigSection } from "./index-BhNbc269.mjs";
|
|
2
|
+
export { CONFIG_FILENAME, type ConfigFile, type ConfigFiles, type ConfigSection, type LoadedConfig, ORM_CONFIG_SECTION_NAME, type PrismaConfig, buildLoadedConfig, evaluateConfigModule, expandContractInputs, findNearestConfigPathForFile, globContractInputMatching, isConfigSection, loadConfig, loadConfigFiles, loadConfigForFile, loadConfigForSections, ormConfigSchema, ormConfigSection, requireConfigSections, validateOrmSection };
|
|
@@ -11,9 +11,9 @@ import { PslDocumentAst } from "@prisma/orm-framework/components/psl-ast";
|
|
|
11
11
|
import { Result } from "@prisma/orm-framework/utils/result";
|
|
12
12
|
import { TargetBoundComponentDescriptor } from "@prisma/orm-framework/components/components";
|
|
13
13
|
import "@prisma/cli-engine/protocol";
|
|
14
|
-
import { ContractSourceDiagnostic, ContractSourceDiagnostics, ContractSourceProvider,
|
|
14
|
+
import { ContractSourceDiagnostic, ContractSourceDiagnostics, ContractSourceProvider, PrismaConfig } from "@prisma/orm-framework/config/config-types";
|
|
15
15
|
import { AuthoringPslBlockDescriptorNamespace } from "@prisma/orm-framework/components/authoring";
|
|
16
|
-
//#region ../../../1-framework/3-tooling/cli/dist/db-sign-
|
|
16
|
+
//#region ../../../1-framework/3-tooling/cli/dist/db-sign-DGSaPRQ-.d.mts
|
|
17
17
|
//#region src/control-api/statements/statement-text.d.ts
|
|
18
18
|
/** The verbs a statement can have. */
|
|
19
19
|
type StatementVerb = 'rename' | 'delete' | 'allow' | 'convert' | 'backfill';
|
|
@@ -802,7 +802,7 @@ type MigrateResult = Result<MigrateSuccess, CliStructuredError$2>;
|
|
|
802
802
|
*/
|
|
803
803
|
interface ContractEmitOptions {
|
|
804
804
|
/** The already-loaded config. Callers own loading; this operation never reads it from disk. */
|
|
805
|
-
readonly config:
|
|
805
|
+
readonly config: PrismaConfig;
|
|
806
806
|
/** Directory the caller was invoked from. */
|
|
807
807
|
readonly cwd: string;
|
|
808
808
|
/**
|
|
@@ -1087,4 +1087,4 @@ type ExecuteDbSignResult = Result<ExecuteDbSignSuccess, CliStructuredError$2>;
|
|
|
1087
1087
|
declare function executeDbSign<TFamilyId extends string, TTargetId extends string>(options: ExecuteDbSignOptions<TFamilyId, TTargetId>): Promise<ExecuteDbSignResult>;
|
|
1088
1088
|
//#endregion
|
|
1089
1089
|
export { ExecuteDbSignOptions as A, PlannerWarningsListener as B, DbUpdateSuccess as C, EmitOptions as D, EmitFailureCode as E, MigrateResult as F, RenderContractDtsSuccess as G, RenderContractDtsFailureCode as H, OnControlProgress as I, StatementVerb as J, SchemaVerifyOptions as K, PlanAnswer as L, ExecuteDbVerifyOptions as M, ExecuteDbVerifyResult as N, EmitResult as O, IntrospectOptions as P, executeDbVerify as Q, PlanQuestion as R, DbUpdateResult as S, EmitFailure as T, RenderContractDtsOptions as U, RenderContractDtsFailure as V, RenderContractDtsResult as W, VerifyOptions as X, TemporaryValueReport as Y, executeDbSign as Z, DbInitSuccess as _, ChangedStorageEntity as a, DbSignSpaceOutcome as b, ContractEmitOptions as c, ControlClient as d, ControlClientOptions as f, DbInitResult as g, DbInitOptions as h, AskedSubject as i, ExecuteDbSignResult as j, EmitSuccess as k, ContractEmitResult as l, CreateControlClient as m, AppliedStatementReport as n, CliInvocation as o, ControlProgressEvent as p, StatementText as q, AskedDataLoss as r, CliStructuredError$2 as s, AnswerPlanQuestions as t, ControlActionName as u, DbSignOptions as v, EmitContractConfig as w, DbUpdateOptions as x, DbSignSpaceFailure as y, PlanQuestionVerb as z };
|
|
1090
|
-
//# sourceMappingURL=db-sign-
|
|
1090
|
+
//# sourceMappingURL=db-sign-DGSaPRQ--B_9CmDng.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"db-sign-
|
|
1
|
+
{"version":3,"file":"db-sign-DGSaPRQ--B_9CmDng.d.mts","names":[],"sources":["../../../../1-framework/3-tooling/cli/dist/db-sign-DGSaPRQ-.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AAQ;;;;;;EAMtB,kBAAkB,QAAQ,oBAAoB;;;;;;EAM9C,WAAW,iBAAiB,iBAAiB;;;;;;;;;;;;;;EAc7C,QAAQ,SAAS,iBAAiB,QAAQ;;;;;;;EAO1C,WAAW,UAAU,oBAAoB;;;;;;;;EAQzC,aAAa,oBAAoB;;;;;;;;EAQjC,iBAAiB,oBAAoB,QAAQ;;;;;;;;EAQ7C,0BAA0B;;;;;;;;;EAS1B,mBAAmB,qBAAqB,2BAA2B;;;;;;;;EAQnE,KAAK,SAAS,cAAc,QAAQ;;;;;;;;EAQpC,kBAAkB,SAAS,2BAA2B,QAAQ;;;;UAItD,qBAAqB,0BAA0B;WAC9C,QAAQ,sBAAsB,WAAW;WACzC,gBAAgB,sBAAsB;;WAEtC,UAAU;WACV;WACA,UAAU;WACV,YAAY,cAAc,2BAA2B,WAAW;WAChE,qBAAqB,cAAc,+BAA+B,WAAW;WAC7E,wBAAwB;WACxB,aAAa;;;UAGd;WACC;WACA;WACA,UAAU;WACV,QAAQ;;;UAGT;WACC;WACA;WACA,UAAU;WACV;WACA,SAAS;;;;;KAKf,qBAAqB,iBAAiB,qBAAqB;UACtD;;WAEC,iBAAiB;;KAEvB,sBAAsB,OAAO,sBAAsB;;;;iBAIvC,cAAc,0BAA0B,0BAA0B,SAAS,qBAAqB,WAAW,aAAa,QAAQ"}
|
|
@@ -12,7 +12,7 @@ import { EMPTY_GENERATOR_FUNCTIONS } from "@prisma/orm-framework/components/comp
|
|
|
12
12
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
13
13
|
import { normalize as normalize$1 } from "node:path";
|
|
14
14
|
import { format, resolveFormatOptions } from "@prisma/orm-framework/psl-parser/format";
|
|
15
|
-
import { EMPTY_DATA_TYPES, assembleAttributeSpecs, blockSpecContext, blockSpecFactoryOf, buildSymbolTable, chosenTypeConstructor, contributedTypeOf, createBinder, entityReference, findBlockDescriptor, groupedTypeLabel, isContributedTypeChoice, isNamespaceLike,
|
|
15
|
+
import { EMPTY_DATA_TYPES, assembleAttributeSpecs, blockSpecContext, blockSpecFactoryOf, buildSymbolTable, chosenTypeConstructor, contributedTypeOf, createBinder, entityReference, findBlockDescriptor, groupedTypeLabel, isContributedTypeChoice, isNamespaceLike, isPrisma8Schema, isPslIdentifier, matchesSelector, memberEntries, printTypeConstructorCall, readResolvedConstructorCall, renameLegacyDirective, typeReferenceNode } from "@prisma/orm-framework/psl-parser";
|
|
16
16
|
import { CompletionItemKind, CompletionItemTag, ConnectionError, ConnectionErrors, DiagnosticSeverity, DidChangeWatchedFilesNotification, DocumentDiagnosticReportKind, FoldingRangeKind, InsertTextFormat, LSPErrorCodes, MarkupKind, ProposedFeatures, RegistrationRequest, ResponseError, SemanticTokenModifiers, SemanticTokenTypes, TextDocumentSyncKind, UnregistrationRequest, createConnection } from "vscode-languageserver";
|
|
17
17
|
import { TextDocument } from "vscode-languageserver-textdocument";
|
|
18
18
|
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, TypeAnnotationAst, TypesBlockAst, any, filterChildren, isTrivia, nonTriviaSibling, parse, skipTriviaToken } from "@prisma/orm-framework/psl-parser/syntax";
|
|
@@ -69,7 +69,7 @@ async function resolveSchemaInputs(config, readText) {
|
|
|
69
69
|
function isMember(uri) {
|
|
70
70
|
if (!identities.has(canonicalFileIdentity(uri))) return false;
|
|
71
71
|
const text = readText(uri);
|
|
72
|
-
return text !== void 0 &&
|
|
72
|
+
return text !== void 0 && isPrisma8Schema(text);
|
|
73
73
|
}
|
|
74
74
|
return {
|
|
75
75
|
includes: isMember,
|
|
@@ -2425,7 +2425,7 @@ var ProjectArtifacts = class {
|
|
|
2425
2425
|
character: 1
|
|
2426
2426
|
}
|
|
2427
2427
|
},
|
|
2428
|
-
code: "
|
|
2428
|
+
code: "PRISMA_INTERPRETATION_FAILED",
|
|
2429
2429
|
message: "Semantic diagnostics are unavailable because of an internal error. A subsequent diagnostic request or edit will retry.",
|
|
2430
2430
|
severity: ParseDiagnosticSeverity.Error
|
|
2431
2431
|
}];
|
|
@@ -2438,7 +2438,7 @@ var ProjectArtifacts = class {
|
|
|
2438
2438
|
const identity = canonicalFileIdentity(uri);
|
|
2439
2439
|
const readSnapshot = this.#readSnapshot;
|
|
2440
2440
|
const stored = readSnapshot(uri);
|
|
2441
|
-
if (stored === void 0 || !this.#inputs.includes(uri) || !
|
|
2441
|
+
if (stored === void 0 || !this.#inputs.includes(uri) || !isPrisma8Schema(stored.text)) {
|
|
2442
2442
|
if (this.#documents.delete(identity)) this.#refreshSources();
|
|
2443
2443
|
return;
|
|
2444
2444
|
}
|
|
@@ -3585,7 +3585,7 @@ function createServerOn(connection) {
|
|
|
3585
3585
|
const document = getOpenDocument(uri);
|
|
3586
3586
|
if (document === void 0) return [];
|
|
3587
3587
|
const source = document.getText();
|
|
3588
|
-
if (!
|
|
3588
|
+
if (!isPrisma8Schema(source)) return [];
|
|
3589
3589
|
const formatted = await (await projects.nearestProject(uri))?.formatDocument(uri, source);
|
|
3590
3590
|
if (formatted === void 0 || formatted === source) return [];
|
|
3591
3591
|
return [{
|
|
@@ -4009,4 +4009,4 @@ function startServer(streams) {
|
|
|
4009
4009
|
//#endregion
|
|
4010
4010
|
export { startServer };
|
|
4011
4011
|
|
|
4012
|
-
//# sourceMappingURL=exports-
|
|
4012
|
+
//# sourceMappingURL=exports-YPUSt6NF.mjs.map
|