import * as vscode from 'vscode' ; import TextEditor from './text-editor' ; import { QuickPickItem , TextEditor as VsTextEditor } from 'vscode' ; export default class WindowAdaptor { constructor ( private readonly window ) { } get visibleTextEditors ( ) : TextEditor [ ] { return this . window . visibleTextEditors . map ( ( editor ) => new TextEditor ( editor ) ) ; } async showQuickPick < T extends QuickPickItem > ( items ) { return this . window . showQuickPick ( items , { canPickMany : true } ) ; } async showInformationMessage ( message ) { return this . window . showInformationMessage ( message ) ; } }