Skip to content
Open
Changes from 1 commit
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
8 changes: 7 additions & 1 deletion packages/insomnia/src/main/ipc/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,11 @@ export interface RendererToMainBridgeAPI {
bodyCompression?: 'zip' | null;
}) => Promise<string>;
getAuthHeader: (renderedRequest: RenderedRequest, url: string) => Promise<RequestHeader | undefined>;
getOAuth2Token: (requestId: string, authentication: AuthTypeOAuth2, forceRefresh?: boolean) => Promise<OAuth2Token | undefined>;
getOAuth2Token: (
requestId: string,
authentication: AuthTypeOAuth2,
forceRefresh?: boolean,
) => Promise<OAuth2Token | undefined>;
secureReadFile: (options: { path: string }) => Promise<string>;
insecureReadFile: (options: { path: string }) => Promise<string>;
insecureReadFileWithEncoding: (options: {
Expand Down Expand Up @@ -339,6 +343,8 @@ export function registerMainHandlers() {
process.on('error', err => {
console.error('[lint-process] error:', err);
reject({ error: err.toString() });
process?.kill();
process = null;
});
Comment thread
ZxBing0066 marked this conversation as resolved.

process.postMessage({ documentContent, rulesetPath });
Expand Down
Loading