Skip to content

Commit ed73805

Browse files
hannesrudolphclaude
andcommitted
fix: increase URI overhead buffer to fix failing tests
Increase overhead calculation from 50 to 100 bytes to account for VS Code's URI encoding overhead. This ensures truncated URIs stay within the safe length limit during platform unit tests. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 5b8d172 commit ed73805

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/uri.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function createSafeContentUri(scheme: string, path: string, content: stri
2424
}
2525

2626
// Calculate available space for content after accounting for URI overhead
27-
const overhead = baseUri.length + 50 // Extra buffer for URI encoding
27+
const overhead = baseUri.length + 100 // Extra buffer for URI encoding and VS Code overhead
2828
const maxBase64Length = Math.max(0, MAX_SAFE_URI_LENGTH - overhead)
2929

3030
// Truncate content to fit within safe URI length

0 commit comments

Comments
 (0)