Skip to content

Commit deb6ef4

Browse files
committed
fix: address bot review comments
- Fix typo in zh-TW translation (duplicate '預' character) - Fix typo in Hindi translation (incorrect character 'ਹੈ' to 'है') - Fix inconsistent default value in webviewMessageHandler.ts (100 to 50) - Remove unused 'diagnosticCount' variable in diagnostics/index.ts
1 parent fd0900f commit deb6ef4

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

src/core/webview/webviewMessageHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,7 @@ export const webviewMessageHandler = async (
12521252
await provider.postStateToWebview()
12531253
break
12541254
case "maxDiagnosticMessages":
1255-
await updateGlobalState("maxDiagnosticMessages", message.value ?? 100)
1255+
await updateGlobalState("maxDiagnosticMessages", message.value ?? 50)
12561256
await provider.postStateToWebview()
12571257
break
12581258
case "setHistoryPreviewCollapsed": // Add the new case handler

src/integrations/diagnostics/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ export async function diagnosticsToProblemsString(
8585
const documents = new Map<vscode.Uri, vscode.TextDocument>()
8686
const fileStats = new Map<vscode.Uri, vscode.FileStat>()
8787
let result = ""
88-
let diagnosticCount = 0
8988

9089
// If we have a limit, we need to collect all diagnostics first, sort by severity, then limit
9190
if (maxDiagnosticMessages && maxDiagnosticMessages > 0) {
@@ -213,7 +212,6 @@ export async function diagnosticsToProblemsString(
213212
} catch {
214213
result += `\n- [${source}${label}] ${line} | (unavailable) : ${diagnostic.message}`
215214
}
216-
diagnosticCount++
217215
}
218216
}
219217
}

webview-ui/src/i18n/locales/hi/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@
484484
"selectProfile": "प्रोफ़ाइल के लिए सीमा कॉन्फ़िगर करें",
485485
"defaultProfile": "वैश्विक डिफ़ॉल्ट (सभी प्रोफ़ाइल)",
486486
"defaultDescription": "जब संदर्भ इस प्रतिशत तक पहुंचता है, तो यह सभी प्रोफ़ाइल के लिए स्वचालित रूप से संघनित हो जाएगा जब तक कि उनकी कस्टम सेटिंग्स न हों",
487-
"profileDescription": "केवल इस प्रोफ़ाइल के लिए कस्टम सीमा (वैश्विक डिफ़ॉल्ट को ओवरराइड करता ਹੈ)",
487+
"profileDescription": "केवल इस प्रोफ़ाइल के लिए कस्टम सीमा (वैश्विक डिफ़ॉल्ट को ओवरराइड करता है)",
488488
"inheritDescription": "यह प्रोफ़ाइल वैश्विक डिफ़ॉल्ट सीमा को इनहेरिट करता है ({{threshold}}%)",
489489
"usesGlobal": "(वैश्विक {{threshold}}% का उपयोग करता है)"
490490
}

webview-ui/src/i18n/locales/zh-TW/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@
485485
"defaultProfile": "全域預設(所有檔案)",
486486
"defaultDescription": "當上下文達到此百分比時,將自動為所有檔案壓縮,除非它們有自訂設定",
487487
"profileDescription": "僅此檔案的自訂閾值(覆蓋全域預設)",
488-
"inheritDescription": "此檔案繼承全域預預設閾值({{threshold}}%)",
488+
"inheritDescription": "此檔案繼承全域預設閾值({{threshold}}%)",
489489
"usesGlobal": "(使用全域 {{threshold}}%)"
490490
}
491491
},

0 commit comments

Comments
 (0)