@@ -21,7 +21,7 @@ import { ICodeEditorService } from 'vs/editor/browser/services/codeEditorService
2121import { ICommandDelegate } from 'vs/editor/browser/view/viewController' ;
2222import { IContentWidgetData , IOverlayWidgetData , View } from 'vs/editor/browser/view/viewImpl' ;
2323import { ViewUserInputEvents } from 'vs/editor/browser/view/viewUserInputEvents' ;
24- import { ConfigurationChangedEvent , EditorLayoutInfo , IEditorOptions , EditorOption , IComputedEditorOptions , FindComputedEditorOptionValueById , IEditorConstructionOptions , filterValidationDecorations } from 'vs/editor/common/config/editorOptions' ;
24+ import { ConfigurationChangedEvent , EditorLayoutInfo , IEditorOptions , EditorOption , IComputedEditorOptions , FindComputedEditorOptionValueById , filterValidationDecorations } from 'vs/editor/common/config/editorOptions' ;
2525import { Cursor } from 'vs/editor/common/controller/cursor' ;
2626import { CursorColumns } from 'vs/editor/common/controller/cursorCommon' ;
2727import { ICursorPositionChangedEvent , ICursorSelectionChangedEvent } from 'vs/editor/common/controller/cursorEvents' ;
@@ -208,6 +208,7 @@ export class CodeEditorWidget extends Disposable implements editorBrowser.ICodeE
208208 private readonly _telemetryData ?: object ;
209209
210210 private readonly _domElement : HTMLElement ;
211+ private readonly _overflowWidgetsDomNode : HTMLElement | undefined ;
211212 private readonly _id : number ;
212213 private readonly _configuration : editorCommon . IConfiguration ;
213214
@@ -237,7 +238,7 @@ export class CodeEditorWidget extends Disposable implements editorBrowser.ICodeE
237238
238239 constructor (
239240 domElement : HTMLElement ,
240- options : IEditorConstructionOptions ,
241+ options : editorBrowser . IEditorConstructionOptions ,
241242 codeEditorWidgetOptions : ICodeEditorWidgetOptions ,
242243 @IInstantiationService instantiationService : IInstantiationService ,
243244 @ICodeEditorService codeEditorService : ICodeEditorService ,
@@ -248,14 +249,17 @@ export class CodeEditorWidget extends Disposable implements editorBrowser.ICodeE
248249 @IAccessibilityService accessibilityService : IAccessibilityService
249250 ) {
250251 super ( ) ;
252+
253+ options = options || { } ;
254+
251255 this . _domElement = domElement ;
256+ this . _overflowWidgetsDomNode = options . overflowWidgetsDomNode ;
252257 this . _id = ( ++ EDITOR_ID ) ;
253258 this . _decorationTypeKeysToIds = { } ;
254259 this . _decorationTypeSubtypes = { } ;
255260 this . isSimpleWidget = codeEditorWidgetOptions . isSimpleWidget || false ;
256261 this . _telemetryData = codeEditorWidgetOptions . telemetryData ;
257262
258- options = options || { } ;
259263 this . _configuration = this . _register ( this . _createConfiguration ( options , accessibilityService ) ) ;
260264 this . _register ( this . _configuration . onDidChange ( ( e ) => {
261265 this . _onDidChangeConfiguration . fire ( e ) ;
@@ -324,7 +328,7 @@ export class CodeEditorWidget extends Disposable implements editorBrowser.ICodeE
324328 this . _codeEditorService . addCodeEditor ( this ) ;
325329 }
326330
327- protected _createConfiguration ( options : IEditorConstructionOptions , accessibilityService : IAccessibilityService ) : editorCommon . IConfiguration {
331+ protected _createConfiguration ( options : editorBrowser . IEditorConstructionOptions , accessibilityService : IAccessibilityService ) : editorCommon . IConfiguration {
328332 return new Configuration ( this . isSimpleWidget , options , this . _domElement , accessibilityService ) ;
329333 }
330334
@@ -1613,7 +1617,8 @@ export class CodeEditorWidget extends Disposable implements editorBrowser.ICodeE
16131617 this . _configuration ,
16141618 this . _themeService ,
16151619 viewModel ,
1616- viewUserInputEvents
1620+ viewUserInputEvents ,
1621+ this . _overflowWidgetsDomNode
16171622 ) ;
16181623
16191624 return [ view , true ] ;
0 commit comments