@@ -8,24 +8,24 @@ import * as path from 'path';
88 * @returns Transformed editor name
99 */
1010function transformAppNameToEditorName ( appName : string ) : string {
11- if ( ! appName ) { return 'VSCode' ; }
11+ if ( ! appName ) { return 'VSCode' ; }
1212
1313 // Convert to lowercase for easier matching
1414 const lowerAppName = appName . toLowerCase ( ) ;
1515
1616 // Handle special cases and transformations
17- if ( lowerAppName . includes ( 'cursor' ) ) { return 'Cursor' ; }
18- if ( lowerAppName . includes ( 'visual studio code' ) ) { return 'VSCode' ; }
19- if ( lowerAppName . includes ( 'windsurf' ) ) { return 'Windsurf' ; }
20- if ( lowerAppName . includes ( 'insiders' ) ) { return 'VSCodeInsiders' ; }
21- if ( lowerAppName . includes ( 'code - oss' ) ) { return 'VSCodeOSS' ; }
17+ if ( lowerAppName . includes ( 'cursor' ) ) { return 'Cursor' ; }
18+ if ( lowerAppName . includes ( 'visual studio code' ) ) { return 'VSCode' ; }
19+ if ( lowerAppName . includes ( 'windsurf' ) ) { return 'Windsurf' ; }
20+ if ( lowerAppName . includes ( 'insiders' ) ) { return 'VSCodeInsiders' ; }
21+ if ( lowerAppName . includes ( 'code - oss' ) ) { return 'VSCodeOSS' ; }
2222
2323 // Generic transformation: remove special characters, split on whitespace, and camelCase
2424 const cleanName = appName . replace ( / [ ^ \w \s ] / g, '' ) . trim ( ) ;
2525 const words = cleanName . split ( / \s + / ) ;
2626
27- if ( words . length === 0 ) { return 'VSCode' ; }
28- if ( words . length === 1 ) { return words [ 0 ] ; }
27+ if ( words . length === 0 ) { return 'VSCode' ; }
28+ if ( words . length === 1 ) { return words [ 0 ] ; }
2929
3030 // First word lowercase, subsequent words capitalized
3131 return words [ 0 ] . toLowerCase ( ) + words . slice ( 1 ) . map ( word =>
@@ -55,7 +55,7 @@ function detectEditor(): { name: string; version: string } {
5555export function generateUserAgent ( ) : string {
5656 try {
5757 const extensionManifest = vscode . extensions . getExtension ( 'Cloudinary.cloudinary' ) ;
58- const extensionVersion = extensionManifest ?. packageJSON ?. version || '0.0.7 ' ;
58+ const extensionVersion = extensionManifest ?. packageJSON ?. version || '0.1.0 ' ;
5959
6060 const editor = detectEditor ( ) ;
6161
0 commit comments