Skip to content

Commit

Permalink
fix: 불필요한 주석 제거 및 빌드 문제 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
BeA-Pro committed Oct 22, 2024
1 parent 15a87ef commit fb7975a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 16 deletions.
2 changes: 0 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions packages/vscode/src/utils/git.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,6 @@ export async function fetchGitLogInParallel(gitPath: string, currentWorkspacePat
currentWorkspacePath,
skipCount,
limitCount,
COMMIT_SEPARATOR,
GIT_LOG_SEPARATOR,
},
});

Expand Down
16 changes: 8 additions & 8 deletions packages/vscode/src/utils/git.worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@ import { parentPort, workerData } from "worker_threads";

import { resolveSpawnOutput } from "./git.util";

const { gitPath, currentWorkspacePath, skipCount, limitCount, COMMIT_SEPARATOR, GIT_LOG_SEPARATOR } = workerData;
const { gitPath, currentWorkspacePath, skipCount, limitCount } = workerData;

async function getPartialGitLog() {
const gitLogFormat =
COMMIT_SEPARATOR +
"%n%n" +
[
"%H", // commit hash (id)
"%P", // parent hashes
"%D", // ref names (branches, tags)
"%an", // author name
"%ae", // author email
"%ad", // author date
"%cn",
"%ce",
"%cd", // committer name, committer email and committer date
"%B", // commit message (subject and body)
].join(GIT_LOG_SEPARATOR) +
GIT_LOG_SEPARATOR;
"%cn", // committer name
"%ce", // committer email
"%cd", // committer date
"%w(0,0,4)%s", // commit message subject
"%b", // commit message body
].join("%n");

const args = [
"--no-pager",
Expand Down
6 changes: 2 additions & 4 deletions packages/vscode/src/webview-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export default class WebviewLoader implements vscode.Disposable {
const { fetchClusterNodes, fetchBranches, fetchCurrentBranch, fetchGithubInfo } = fetcher;
const viewColumn = vscode.ViewColumn.One;

//캐시 초기화
console.log("Initialize cache data");
context.workspaceState.keys().forEach((key) => {
context.workspaceState.update(key, undefined);
Expand Down Expand Up @@ -50,7 +49,6 @@ export default class WebviewLoader implements vscode.Disposable {
context.workspaceState.update(`${ANALYZE_DATA_KEY}_${baseBranchName}`, analyzedData);
} else console.log("Cache data exists");

// 현재 캐싱된 Branch
console.log("Current Stored data");
context.workspaceState.keys().forEach((key) => {
console.log(key);
Expand All @@ -75,10 +73,10 @@ export default class WebviewLoader implements vscode.Disposable {
payload: branches,
});
}

if (command === "fetchGithubInfo") {
const githubInfo = await fetchGithubInfo();
await this.respondToMessage({
await this.respondToMessage({
...message,
payload: githubInfo,
});
Expand Down

0 comments on commit fb7975a

Please sign in to comment.