mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 16:18:58 +01:00
Git - more git blame code cleanup (#234739)
* Cleanup code * Fix multi-file diff editor uri/title
This commit is contained in:
@@ -288,6 +288,10 @@ export function detectUnicodeEncoding(buffer: Buffer): Encoding | null {
|
||||
return null;
|
||||
}
|
||||
|
||||
export function truncate(value: string, maxLength = 20): string {
|
||||
return value.length <= maxLength ? value : `${value.substring(0, maxLength)}\u2026`;
|
||||
}
|
||||
|
||||
function normalizePath(path: string): string {
|
||||
// Windows & Mac are currently being handled
|
||||
// as case insensitive file systems in VS Code.
|
||||
|
||||
Reference in New Issue
Block a user