Skip to content

feat: add external code editor support with VS Code and Cursor deep linking#1676

Merged
kpal81xd merged 19 commits intomainfrom
ext-link
Mar 19, 2026
Merged

feat: add external code editor support with VS Code and Cursor deep linking#1676
kpal81xd merged 19 commits intomainfrom
ext-link

Conversation

@kpal81xd
Copy link
Copy Markdown
Contributor

@kpal81xd kpal81xd commented Jan 9, 2026

Important

Requirements

What's Changed

  • Added a new Editor setting - Code Editor
  • When clicking edit on a text based asset for VSCode and Cursor will now deep link directly to opening the script in the extension
  • Added a dismissible banner in the code editor prompting users to install the VSCode extension (localStorage-persisted dismissal)

Testing

  • Open code editor from toolbar (no asset selected)
  • Open asset asset panel
  • Open asset from inspector panel
  • Error stack track link
  • VSCode extension banner appears at top of code editor
  • Dismiss button hides banner and persists across refreshes
  • Install Extension button opens marketplace in new tab
  • Banner hidden in file-only mode

Preview

image image image image

@kpal81xd kpal81xd self-assigned this Jan 9, 2026
@kpal81xd kpal81xd added area: code editor enhancement New feature or request labels Jan 9, 2026
@kpal81xd kpal81xd requested review from Copilot and willeastcott and removed request for willeastcott January 9, 2026 16:07
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for external code editor linking, enabling users to open scripts directly in VSCode or Cursor via deep links. Users can now select their preferred code editor from a new setting in the Editor settings panel.

Key changes:

  • Added a new "Code Editor" setting in the Editor settings panel with options for Web, VSCode, and Cursor
  • Modified the code editor picker to detect the selected IDE and generate deep links for VSCode and Cursor
  • Added TypeScript type definitions to the AssetInspector class for improved type safety

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
src/editor/toolbar/toolbar-code-editor.ts Implements deep linking logic for VSCode and Cursor, checking the user's code editor preference and opening the appropriate editor
src/editor/inspector/settings-panels/editor.ts Adds the "Code Editor" dropdown setting with Web, VSCode, and Cursor options
src/editor/inspector/asset.ts Adds TypeScript type definitions to the AssetInspector class and fixes style.flex type issues (number to string)
src/editor/attributes/reference/settings.ts Adds documentation for the new code editor setting reference

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/editor/toolbar/toolbar-code-editor.ts
Comment thread src/editor/toolbar/toolbar-code-editor.ts Outdated
Comment thread src/editor/inspector/asset.ts Outdated
Comment thread src/editor/toolbar/toolbar-code-editor.ts Outdated
@Maksims
Copy link
Copy Markdown
Collaborator

Maksims commented Jan 9, 2026

There is also one more case in launcher, if runtime error happens, clicking on script in a bottom panel, will open IDE and highlight the necessary line (with error).

Comment thread src/editor/inspector/settings-panels/editor.ts Outdated
@Maksims
Copy link
Copy Markdown
Collaborator

Maksims commented Jan 23, 2026

Before this is deployed, please test dramatically, and provide some beta access to those users who can test it in real environment. Many attempts of using VSCode/Claudie with Editor, so far were not possible due to bugs and issues.

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
editor Ready Ready Preview, Comment Mar 19, 2026 4:17pm

Request Review

@kpal81xd kpal81xd changed the title External code editor linking feat: add external code editor support with VS Code and Cursor deep linking Mar 18, 2026
@kpal81xd kpal81xd merged commit 4f243ee into main Mar 19, 2026
7 checks passed
@kpal81xd kpal81xd deleted the ext-link branch March 19, 2026 16:18
@Maksims
Copy link
Copy Markdown
Collaborator

Maksims commented Mar 19, 2026

Is this hidden behind some flag, or is it public to users?

@kpal81xd
Copy link
Copy Markdown
Contributor Author

Is this hidden behind some flag, or is it public to users?

This is released now but has to specifically be switched to use vscode/cursor. Default is still online IDE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: code editor enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants