Cursor fails to install extensions when user's name contains an apostrophe, causing "Unexpected identifier" syntax error

:lady_beetle: Clear Description of the Bug

When attempting to install an extension in Cursor, the installation fails with a JavaScript syntax error: SyntaxError: Unexpected identifier ‘Brien’. This occurs because Cursor is improperly parsing user names that contain apostrophes (specifically “O’Brien” in this case). The apostrophe character appears to be breaking the JavaScript module loading process, causing the name to be split and treated as separate identifiers.

:counterclockwise_arrows_button: How to Reproduce the Bug

  1. Have a user account/system where the name contains an apostrophe (e.g., “O’Brien”)

  2. Open Cursor

  3. Attempt to install any extension from the extension marketplace

  4. The installation will fail with the syntax error related to the apostrophe in the name

:camera: Screenshots/Recordings

:laptop: Operating System and Cursor Version

Version: 1.0.0 (user setup)
VSCode Version: 1.96.2
Commit: 53b99ce608cba35127ae3a050c1738a959750860
Date: 2025-06-04T19:44:25.253Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100

:prohibited: Impact on Cursor Usage

This issue prevents users with apostrophes in their names from installing any extensions, significantly limiting the functionality and customization options available in Cursor. While the core editor functionality may still work, the inability to install extensions severely impacts the development experience.

Additional Technical Details

The error appears in the renderer log as:

2025-06-10 15:36:57.002 [error] Unexpected identifier 'Brien': SyntaxError: Unexpected identifier 'Brien'
    at compileSourceTextModule (node:internal/modules/esm/utils:341:16)
    at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:146:18)
    at #translate (node:internal/modules/esm/loader:431:12)
    at ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:478:27)
    at async ModuleJob._link (node:internal/modules/esm/module_job:110:19) Unexpected identifier 'Brien'

This suggests the issue is in the JavaScript module loading system where user names are not being properly escaped or quoted when used in code generation or configuration.