This commit is contained in:
Johannes Rieken 2020-08-20 12:57:30 +02:00
parent 89a2411190
commit 88b7db2815
3 changed files with 10 additions and 1 deletions

View file

@ -580,6 +580,11 @@ export interface ICodeEditor extends editorCommon.IEditor {
*/
getRawOptions(): IEditorOptions;
/**
* @internal
*/
getOverflowWidgetsDomNode(): HTMLElement | undefined;
/**
* @internal
*/

View file

@ -379,6 +379,10 @@ export class CodeEditorWidget extends Disposable implements editorBrowser.ICodeE
return this._configuration.getRawOptions();
}
public getOverflowWidgetsDomNode(): HTMLElement | undefined {
return this._overflowWidgetsDomNode;
}
public getConfiguredWordAtPosition(position: Position): IWordAtPosition | null {
if (!this._modelData) {
return null;

View file

@ -37,7 +37,7 @@ export class EmbeddedCodeEditorWidget extends CodeEditorWidget {
@INotificationService notificationService: INotificationService,
@IAccessibilityService accessibilityService: IAccessibilityService
) {
super(domElement, parentEditor.getRawOptions(), {}, instantiationService, codeEditorService, commandService, contextKeyService, themeService, notificationService, accessibilityService);
super(domElement, { ...parentEditor.getRawOptions(), overflowWidgetsDomNode: parentEditor.getOverflowWidgetsDomNode() }, {}, instantiationService, codeEditorService, commandService, contextKeyService, themeService, notificationService, accessibilityService);
this._parentEditor = parentEditor;
this._overwriteOptions = options;