Skip to content

Conversation

@solvedDev
Copy link
Member

Description

Initial implementation for quickly switching between editor types. Two major issues:

  • History entries cannot persist upon switching editors
  • Transferring current (unsaved) document state over is complex

Possible solution: Only allow this action to work if the tab does not contain unsaved content.

Motivation

closes #801

@solvedDev solvedDev added the feature Request of a new feature label Jan 24, 2023
@solvedDev solvedDev self-assigned this Jan 24, 2023
@bolt-new-by-stackblitz
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@outercloudstudio
Copy link
Member

I propose a solution to both of the issues:

  1. We don't need to save history between editors. The action of switching editors kind of acts as switching workspaces. The new workspace won't include edit history.

  2. If there is invalid JSON we show a popup notifying the user. If the JSON and the file is saved, we switch editors. Otherwise, we prompt the user to save and switch editors allowing them to cancel.

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

Labels

feature Request of a new feature

Projects

Status: ⏳ In Progress

Development

Successfully merging this pull request may close these issues.

3 participants