Skip to content

Commit e0308fb

Browse files
committed
fix: update
1 parent 49cb282 commit e0308fb

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/copilot/tools/javaContextTools.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,17 @@ function extractTypeSignature(hovers: vscode.Hover[] | undefined): object {
227227
if (match) {
228228
const lines = match[1].trim().split("\n").filter(l => {
229229
const trimmed = l.trim();
230-
if (trimmed.length === 0) return false;
230+
if (trimmed.length === 0) {
231+
return false;
232+
}
231233
// Strip Javadoc and block comment lines
232-
if (trimmed.startsWith("/**") || trimmed.startsWith("*/") || trimmed.startsWith("* ") || trimmed === "*") return false;
234+
if (trimmed.startsWith("/**") || trimmed.startsWith("*/") || trimmed.startsWith("* ") || trimmed === "*") {
235+
return false;
236+
}
233237
// Strip single-line comments
234-
if (trimmed.startsWith("//")) return false;
238+
if (trimmed.startsWith("//")) {
239+
return false;
240+
}
235241
return true;
236242
});
237243
return { type: lines.join("\n") };

0 commit comments

Comments
 (0)