Skip to content

Retain the version information of script infos when they are deleted#25249

Merged
sheetalkamat merged 3 commits into
masterfrom
openSameFileWithDifferentText
Jul 2, 2018
Merged

Retain the version information of script infos when they are deleted#25249
sheetalkamat merged 3 commits into
masterfrom
openSameFileWithDifferentText

Conversation

@sheetalkamat
Copy link
Copy Markdown
Member

This helps in having to not restart the versioning,
which could potentially have same version but different contents and project could confuse with it

This helps in having to not restart the versioning,
which could potentially have same version but different contents and project could confuse with it
Comment thread src/server/editorServices.ts Outdated
* Container of all known scripts
*/
private readonly filenameToScriptInfo = createMap<ScriptInfo>();
private readonly filenameToScriptInfo = createMap<ScriptInfoOrVersion>();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

would it be simpler to have a different map of deleted scripts with their versions instead of a union type? we only need to touch that on add and delete.

@sheetalkamat sheetalkamat merged commit aa92568 into master Jul 2, 2018
@sheetalkamat sheetalkamat deleted the openSameFileWithDifferentText branch July 2, 2018 19:51
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants