internal object GetDocumentView(IVsTextLines documentBuffer, string filePath)
        {
            var codeWindow = CreateVsCodeWindow(documentBuffer);

            // in case the designer is not supported, we return the current VsCodeWindow that we just created.
            if (!_designerSettings.IsDesignerEnabled)
            {
                return(codeWindow);
            }

            var AvaloniaDesignerPane = new AvaloniaDesignerPane(codeWindow, documentBuffer, filePath, _designerSettings);

            SiteObject(AvaloniaDesignerPane);
            return(AvaloniaDesignerPane);
        }
        internal object GetDocumentView(IVsTextLines documentBuffer, string filePath)
        {
            var codeWindow = CreateVsCodeWindow(documentBuffer);

            // in case the designer is not supported, we return the current VsCodeWindow that we just created.
            if (!_designerSettings.IsDesignerEnabled)
            {
                return codeWindow;
            }

            var AvaloniaDesignerPane = new AvaloniaDesignerPane(codeWindow, documentBuffer, filePath, _designerSettings);
            SiteObject(AvaloniaDesignerPane);
            return AvaloniaDesignerPane;
        }