[go: up one dir, main page]

Skip to content

Preserve unsaved edits while establishing a remote connection in the Web IDE

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Problem to solve

As discussed in gitlab-web-ide#46 (comment 1169646981), establishing a connection to a remote development environment in VS Code destroys the current session and effectively restarts the Web IDE. This means that any unsaved, uncommitted changes will be lost in the transition.

Proposal

Stash, in some way, all unsaved changes from the standalone Web IDE before connecting to a remote development environment. Apply those changes automatically to the newly-created remote environment. Warn of any potential conflicts.

Details

Questions

  1. Is the best approach to store a git diff in the local browser storage, then apply the diff after establishing the connection?
  2. Is it easier to prompt the user about the data loss and let them decide how to proceed? Would there be a situation where they don't want to bring over unsaved changes? If they create a patch file then they could recover from a failed connection or apply the changes in another tab.

This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.

Edited by 🤖 GitLab Bot 🤖