From 0684040d3430a6809fddc6328d7cb6d562003dec Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Fri, 22 Oct 2021 13:36:29 -0700 Subject: [PATCH] Fix backups not restoring in correct editor (#17466) (#17468) --- src/sql/workbench/common/constants.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/sql/workbench/common/constants.ts b/src/sql/workbench/common/constants.ts index 96375fad44..71eee33bf0 100644 --- a/src/sql/workbench/common/constants.ts +++ b/src/sql/workbench/common/constants.ts @@ -29,10 +29,11 @@ export const SearchViewFocusedKey = new RawContextKey('notebookSearchVi export const InputBoxFocusedKey = new RawContextKey('inputBoxFocus', false); export const SearchInputBoxFocusedKey = new RawContextKey('searchInputBoxFocus', false); +// !! Do not change these or updates won't be able to deserialize editors correctly !! export const UNTITLED_NOTEBOOK_TYPEID = 'workbench.editorinputs.untitledNotebookInput'; -export const UNTITLED_QUERY_EDITOR_TYPEID = 'workbench.editorinputs.untitledQueryInput'; -export const FILE_QUERY_EDITOR_TYPEID = 'workbench.editorinputs.fileQueryInput'; -export const RESOURCE_VIEWER_TYPEID = 'workbench.editorinputs.resourceViewerInput'; +export const UNTITLED_QUERY_EDITOR_TYPEID = 'workbench.editorInput.untitledQueryInput'; +export const FILE_QUERY_EDITOR_TYPEID = 'workbench.editorInput.fileQueryInput'; +export const RESOURCE_VIEWER_TYPEID = 'workbench.editorInput.resourceViewerInput'; export const JUPYTER_PROVIDER_ID = 'jupyter';