Module Not Found - VS Code Extensions Failing to Activate

Hello.

I use Cursor 1.0.0 and several VS Code extensions are failing to activate with “Cannot find module” errors, despite being properly installed. These extensions work correctly in VS Code.

Affected Extensions

  1. Laravel Blade Formatter (shufo.vscode-blade-formatter v0.24.6)
  2. PHP Tools (DEVSENSE.phptools-vscode v1.58.17223)
  3. Todo Highlight (wayou.vscode-todo-highlight v1.0.5)
  4. Composer PHP (DEVSENSE.composer-php-vscode v1.58.17223)

Error Messages

All extensions show similar errors. Here are the error messages from the extension host log:

Error: Cannot find module 'c:\Users\Georgina\.cursor\extensions\shufo.vscode-blade-formatter-0.24.6\dist\extension.js'

Require stack:

- c:\Users\Georgina\AppData\Local\Programs\cursor\resources\app\out\vs\workbench\api\node\extensionHostProcess.js


Error: Cannot find module 'c:\Users\Georgina\.cursor\extensions\devsense.phptools-vscode-1.58.17223-win32-x64\out\src\extension.js'

Require stack:

- c:\Users\Georgina\AppData\Local\Programs\cursor\resources\app\out\vs\workbench\api\node\extensionHostProcess.js


Error: Cannot find module 'c:\Users\Georgina\.cursor\extensions\wayou.vscode-todo-highlight-1.0.5\src\extension'

Require stack:

- c:\Users\Georgina\AppData\Local\Programs\cursor\resources\app\out\vs\workbench\api\node\extensionHostProcess.js


Error: Cannot find module 'c:\Users\Georgina\.cursor\extensions\devsense.composer-php-vscode-1.58.17223\out\src\extension'

Require stack:

- c:\Users\Georgina\AppData\Local\Programs\cursor\resources\app\out\vs\workbench\api\node\extensionHostProcess.js

Steps to Reproduce

  1. Install any of the mentioned extensions from the marketplace
  2. Open a project that would typically use these extensions
  3. Check the extension host log at: %AppData%\Cursor\logs\[timestamp]\window1\exthost\exthost.log

Expected Behavior

  • Extensions should activate properly upon installation and when needed
  • Extensions should function as they do in VS Code

Actual Behavior

  • Extensions fail to activate
  • Error logs show “Cannot find module” errors for extension files
  • The required .js files appear to be missing from the extension directories

From the errors, it seems that Cursor is either not properly installing or extracting the extensions. All errors point to missing files in the extension directories.

I ran into a similar issue where my custom VS Code extension (and even the default “Hello World” extension) would not activate in Cursor, even though everything worked perfectly in regular VS Code. There were no errors or logs, just silent failure.

Solution:

Make sure the “engines.vscode” field in your extension’s package.json matches the VS Code version that Cursor is based on. For example, if you’re using Cursor 1.1.6 (which uses VS Code 1.96.2), set:

"engines": {

"vscode": "^1.96.0"

}

I had ^1.101.0, Cursor version 1.1.6 instead.
After changing this, my extension activated and worked as expected in Cursor!
Hope this helps anyone else running into the same problem.