We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee7b6bf commit 449396cCopy full SHA for 449396c
1 file changed
packages/code-api/src/github/github.service.ts
@@ -328,7 +328,8 @@ export class GitHubAPIService implements ICodeAPIService {
328
responseType: 'json',
329
}
330
);
331
- return Buffer.from(data.content, data.encoding);
+ // Buffer toJSON 为 { type: 'Buffer', data: [] },通过 rpc 传输后无法自动恢复,ArrayBufferView 额外处理了,可以恢复
332
+ return new Uint8Array(Buffer.from(data.content, data.encoding));
333
},
334
335
getBranches: async (repo: IRepositoryModel): Promise<BranchOrTag[]> => {
0 commit comments