Skip to content

Commit 28f648f

Browse files
committed
[vscode] #713 요구사항 반영
1 parent 3b1da9c commit 28f648f

File tree

4 files changed

+7
-12
lines changed

4 files changed

+7
-12
lines changed

packages/vscode/.eslintrc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
],
1414
"simple-import-sort/exports": "error",
1515
"no-duplicate-imports": "error",
16-
"import/no-commonjs": "off"
1716
},
1817
"overrides": [
1918
{

packages/vscode/src/extension.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,6 @@ export async function activate(context: vscode.ExtensionContext) {
8080
console.time('Multi log')
8181
const gitLog = await fetchGitLogInParallel(gitPath, currentWorkspacePath);
8282
console.timeEnd('Multi log')
83-
84-
// console.time('Single log')
85-
// const testGitLog = await getGitLog(gitPath, currentWorkspacePath);
86-
// console.timeEnd('Single log')
87-
8883

8984
const gitConfig = await getGitConfig(gitPath, currentWorkspacePath, "origin");
9085

packages/vscode/src/utils/git.util.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ export async function getGitLog(gitPath: string, currentWorkspacePath: string):
188188
}
189189

190190
export async function getLogCount(gitPath: string, currentWorkspacePath: string): Promise<number> {
191+
const decimal = 10;
191192
return new Promise((resolve, reject) => {
192193
const args = [
193194
"rev-list",
@@ -204,7 +205,7 @@ export async function getLogCount(gitPath: string, currentWorkspacePath: string)
204205
const { code, error } = status;
205206

206207
if (code === 0 && !error) {
207-
const commitCount = parseInt(stdout.toString().trim(), 10); // Buffer를 문자열로 변환 후 숫자로 변환
208+
const commitCount = parseInt(stdout.toString().trim(), decimal); // Buffer를 문자열로 변환 후 숫자로 변환
208209
resolve(commitCount); // 숫자를 반환
209210
} else {
210211
reject(stderr);

packages/vscode/src/webview-loader.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default class WebviewLoader implements vscode.Disposable {
4343
const storedAnalyzedData = context.workspaceState.get<ClusterNode[]>(
4444
`${ANALYZE_DATA_KEY}_${baseBranchName}`
4545
);
46-
let analyzedData = storedAnalyzedData;
46+
analyzedData = storedAnalyzedData;
4747
if (!storedAnalyzedData) {
4848
console.log("No cache Data");
4949
console.log("baseBranchName : ", baseBranchName);
@@ -87,10 +87,10 @@ export default class WebviewLoader implements vscode.Disposable {
8787
console.error("An error occurred while processing the webview message:", e);
8888
}
8989
});
90-
if (!analyzedData) {
91-
this.dispose();
92-
throw new Error("Project not connected to Git.");
93-
}
90+
// if (!analyzedData) {
91+
// this.dispose();
92+
// throw new Error("Project not connected to Git.");
93+
// }
9494
this._panel.webview.html = this.getWebviewContent(this._panel.webview);
9595
}
9696

0 commit comments

Comments
 (0)