Skip to content

Commit f970e00

Browse files
authored
Always set includeDebugDetails to true in VS Code (#8818)
1 parent 15a67f9 commit f970e00

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

firebase-vscode/src/data-connect/service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ export class DataConnectService {
146146
return {
147147
impersonate:
148148
userMock.kind === UserMockKind.AUTHENTICATED
149-
? { authClaims: JSON.parse(userMock.claims) }
150-
: { unauthenticated: true },
149+
? { authClaims: JSON.parse(userMock.claims), includeDebugDetails: true }
150+
: { unauthenticated: true, includeDebugDetails: true },
151151
};
152152
}
153153

src/dataconnect/types.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ export interface ExecuteGraphqlRequest {
220220
query: string;
221221
operationName?: string;
222222
variables?: { [key: string]: string };
223-
extensions?: { impersonate?: Impersonation };
223+
extensions?: { impersonate?: Impersonation; includeDebugDetails?: boolean };
224224
}
225225

226226
export interface GraphqlResponse {
@@ -242,9 +242,11 @@ export const isGraphQLResponseError = (g: any): g is GraphqlResponseError => !!g
242242

243243
interface ImpersonationAuthenticated {
244244
authClaims: any;
245+
includeDebugDetails?: boolean;
245246
}
246247
interface ImpersonationUnauthenticated {
247248
unauthenticated: boolean;
249+
includeDebugDetails?: boolean;
248250
}
249251
export type Impersonation = ImpersonationAuthenticated | ImpersonationUnauthenticated;
250252

0 commit comments

Comments
 (0)