The typescript version of the cursor IDE is downgraded the moment I import extensions from VS Code. I had to manually set my workspace config to overcome this. And because of this downgrade the RAM usage was so huge that my laptop used to crash.
Steps to Reproduce
Open cursor in the Ubuntu machine. And then import extensions from VS Code. Now check the TS version.
Hey, I can see from the screenshot that “Use VS Code’s Version 5.3.0-dev.20230808” clearly points to an old global TypeScript install that your VS Code user-level typescript.tsdk was set to use.
When you import settings from VS Code, Cursor brings over most of your settings.json, including typescript.tsdk and typescript.tsserver.*. These keys don’t get filtered, so Cursor starts using the same old TS as VS Code. That’s why you’re seeing the downgrade, and it likely explains the high RAM usage too, old tsserver plus maybe an inherited typescript.tsserver.maxTsServerMemory.
What to do:
Open user settings: Cmd+Shift+P or Ctrl+Shift+P then Preferences: Open User Settings (JSON)
Remove or fix these keys:
typescript.tsdk
typescript.tsserver.maxTsServerMemory
any typescript.tsserver.* that you didn’t set yourself
Restart the TS server: Cmd+Shift+P or Ctrl+Shift+P then TypeScript: Restart TS Server
Check via TypeScript: Select TypeScript Version, “Use VS Code’s Version” should show the current bundled version in Cursor, not 5.3.0-dev.
The workspace override you already did is also a valid fix, but then you’d need to add node_modules/typescript manually in every new project.
Let me know if RAM usage improves after cleaning up the user settings.
Thanks for the settings.json. In user scope it really is clean. But 5.3.0-dev.20230808 is a TypeScript nightly build from August 2023. That usually comes from the TypeScript Nightly extension ms-vscode.vscode-typescript-next. It looks like it got installed during the VS Code import and is overriding the bundled TypeScript.
Please check two places:
Extensions panel: find TypeScript Nightly publisher Microsoft id ms-vscode.vscode-typescript-next, then Disable or Uninstall it, then run Developer: Reload Window.
Workspace settings in the project where you see the old version: open .vscode/settings.json and make sure there is no typescript.tsdk pointing to some global node_modules/typescript. You mentioned you did a workspace override as a workaround, so it might still be there.
After that, run Cmd+Shift+P or Ctrl+Shift+P then TypeScript: Select TypeScript Version and choose Use VS Code’s Version. You should see a current bundled 5.x there. Then run TypeScript: Restart TS Server.
If after removing Nightly it still shows 5.3.0-dev, please share the output of TypeScript: Select TypeScript Version. A screenshot of all options in the dropdown is enough, it will show where the path is coming from.
Thanks, it works. But can I know why there is a mismatch in the extension version? VS Code has version 6 for the same extension, but the Cursor has v5.3 for the same extensions.
About the version difference: Cursor uses the Open VSX Registry at openvsx.org as its extension source, while VS Code uses the proprietary Microsoft Marketplace. Microsoft doesn’t publish its extensions to OpenVSX, so anything starting with ms-vscode.* or ms-python.* including TypeScript Nightly ms-vscode.vscode-typescript-next gets mirrored there by third party maintainers and is usually behind in version. This isn’t a Cursor bug, it’s a marketplace limitation.
If you need the newest version of a Microsoft extension, you can download the .vsix from their GitHub Releases and install it via Extensions: Install from VSIX..., but for TypeScript Nightly in your case you don’t need that since the bundled TypeScript in Cursor is already up to date.