mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -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 { ITextResourcePropertiesService } from 'vs/editor/common/services/textResourceConfiguration';
|
||||||
import { IEditorResolverService } from 'vs/workbench/services/editor/common/editorResolverService';
|
import { IEditorResolverService } from 'vs/workbench/services/editor/common/editorResolverService';
|
||||||
import { isEqual } from 'vs/base/common/resources';
|
import { isEqual } from 'vs/base/common/resources';
|
||||||
|
import { NotebookEditor } from 'sql/workbench/contrib/notebook/browser/notebookEditor';
|
||||||
|
|
||||||
export type ModeViewSaveHandler = (handle: number) => Thenable<boolean>;
|
export type ModeViewSaveHandler = (handle: number) => Thenable<boolean>;
|
||||||
const languageAssociationRegistry = Registry.as<ILanguageAssociationRegistry>(LanguageAssociationExtensions.LanguageAssociations);
|
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 {
|
public get languageMode(): string {
|
||||||
return this._textInput.getLanguageId();
|
return this._textInput.getLanguageId();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user