Skip to content

Commit

Permalink
feat(view): dev mode에서도 Github Info를 fetch하도록 기능 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
seungineer committed Oct 14, 2024
1 parent 79bbf99 commit bcf0931
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/view/src/ide/FakeIDEAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ export default class FakeIDEAdapter implements IDEPort {
return events.handleChangeAnalyzedData(payload ? JSON.parse(payload) : undefined);
case "fetchBranchList":
return events.handleChangeBranchList(payload ? JSON.parse(payload) : undefined);
case "fetchGithubInfo":
return events.handleGithubInfo(payload ? JSON.parse(payload) : undefined);
default:
console.log("Unknown Message");
}
Expand Down Expand Up @@ -54,6 +56,13 @@ export default class FakeIDEAdapter implements IDEPort {
this.sendMessageToMe(message);
}

public sendFetchGithubInfo() {
const message: IDEMessage = {
command: "fetchGithubInfo",
};
this.sendMessageToMe(message);
}

public setCustomTheme(color: string) {
sessionStorage.setItem("PRIMARY_COLOR", color);
const message: IDEMessage = {
Expand Down

0 comments on commit bcf0931

Please sign in to comment.