workaround (fix?) for https://github.com/microsoft/vscode/issues/105073 @rebornix
This commit is contained in:
parent
89a2411190
commit
88b7db2815
|
@ -580,6 +580,11 @@ export interface ICodeEditor extends editorCommon.IEditor {
|
|||
*/
|
||||
getRawOptions(): IEditorOptions;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
getOverflowWidgetsDomNode(): HTMLElement | undefined;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue