From 319e0811f160cd38c9bf0dab9752398e1b56d290 Mon Sep 17 00:00:00 2001 From: Cory Rivera Date: Thu, 9 Feb 2023 14:08:19 -0800 Subject: [PATCH] Specify an editor ID for notebook inputs. (#21900) --- .../contrib/notebook/browser/models/notebookInput.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sql/workbench/contrib/notebook/browser/models/notebookInput.ts b/src/sql/workbench/contrib/notebook/browser/models/notebookInput.ts index 85457f167a..1719f5b1e6 100644 --- a/src/sql/workbench/contrib/notebook/browser/models/notebookInput.ts +++ b/src/sql/workbench/contrib/notebook/browser/models/notebookInput.ts @@ -41,6 +41,7 @@ import { NotebookLanguage } from 'sql/workbench/common/constants'; import { ITextResourcePropertiesService } from 'vs/editor/common/services/textResourceConfiguration'; import { IEditorResolverService } from 'vs/workbench/services/editor/common/editorResolverService'; import { isEqual } from 'vs/base/common/resources'; +import { NotebookEditor } from 'sql/workbench/contrib/notebook/browser/notebookEditor'; export type ModeViewSaveHandler = (handle: number) => Thenable; const languageAssociationRegistry = Registry.as(LanguageAssociationExtensions.LanguageAssociations); @@ -261,6 +262,10 @@ export abstract class NotebookInput extends EditorInput implements INotebookInpu } } + public override get editorId(): string { + return NotebookEditor.ID; + } + public get languageMode(): string { return this._textInput.getLanguageId(); }