mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-22 09:35:37 -05:00
Specify an editor ID for notebook inputs. (#21900)
This commit is contained in:
@@ -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<boolean>;
|
||||
const languageAssociationRegistry = Registry.as<ILanguageAssociationRegistry>(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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user