import { window , TextEditor , Uri , ViewColumn } from "vscode" ; import { DocumentContentManagerInterface } from "./documentContentManagerInterface" ; export class NoneDocumentContentManager implements DocumentContentManagerInterface { private _editor : TextEditor ; public constructor ( editor ) { this . _editor = editor ; return this ; } public editor ( ) { return this . _editor ; } public async createContentSnippet ( ) { return this . getErrorMessage ( ) ; } public sendPreviewCommand ( _previewUri , _displayColumn ) { window . showWarningMessage ( this . getErrorMessage ( ) ) ; return Promise . resolve ( ) ; } private getErrorMessage ( ) { return "Couldn't determine type to preview, please choose." ; } }