Host for contained (embedded) language editors such as R editor inside ``` code ``` blocks in R Markdown.
Inheritance: IContainedLanguageHost
 /// <summary>
 /// Retrieves contained language host for a given text buffer.
 /// </summary>
 /// <param name="textView">Primary text view</param>
 /// <param name="textBuffer">Contained language text buffer</param>
 /// <returns>Contained language host, <seealso cref="IContainedLanguageHost"/></returns>
 public IContainedLanguageHost GetContainedLanguageHost(ITextView textView, ITextBuffer textBuffer) {
     var containedLanguageHost = ServiceManager.GetService<IContainedLanguageHost>(textBuffer);
     if (containedLanguageHost == null) {
         var document = MdEditorDocument.FromTextBuffer(textView.TextDataModel.DocumentBuffer);
         containedLanguageHost = new MdContainedLanguageHost(document, textBuffer, _coreShell);
     }
     return containedLanguageHost;
 }
        /// <summary>
        /// Retrieves contained language host for a given text buffer.
        /// </summary>
        /// <param name="textView">Primary text view</param>
        /// <param name="textBuffer">Contained language text buffer</param>
        /// <returns>Contained language host, <seealso cref="IContainedLanguageHost"/></returns>
        public IContainedLanguageHost GetContainedLanguageHost(ITextView textView, ITextBuffer textBuffer)
        {
            var containedLanguageHost = ServiceManager.GetService <IContainedLanguageHost>(textBuffer);

            if (containedLanguageHost == null)
            {
                var document = MdEditorDocument.FromTextBuffer(textView.TextDataModel.DocumentBuffer);
                containedLanguageHost = new MdContainedLanguageHost(document, textBuffer);
            }
            return(containedLanguageHost);
        }
        /// <summary>
        /// Retrieves contained language host for a given text buffer.
        /// </summary>
        /// <param name="editorView">Primary text view</param>
        /// <param name="editorBuffer">Contained language text buffer</param>
        /// <returns>Contained language host, <seealso cref="IContainedLanguageHost"/></returns>
        public IContainedLanguageHost GetContainedLanguageHost(IEditorView editorView, IEditorBuffer editorBuffer)
        {
            var containedLanguageHost = editorBuffer.GetService <IContainedLanguageHost>();

            if (containedLanguageHost == null)
            {
                var document = editorView.EditorBuffer.GetEditorDocument <IMdEditorDocument>();
                Debug.Assert(document != null);
                containedLanguageHost = new MdContainedLanguageHost(document, editorBuffer);
            }
            return(containedLanguageHost);
        }