'use strict' ; import { injectable } from 'inversify' ; import { CancellationToken , Disposable , InputBoxOptions , MessageItem , MessageOptions , OpenDialogOptions , Progress , ProgressOptions , QuickPickItem , QuickPickOptions , SaveDialogOptions , StatusBarAlignment , StatusBarItem , Uri , window , WorkspaceFolder , WorkspaceFolderPickOptions } from 'vscode' ; import { IApplicationShell } from './types' ; @ injectable ( ) export class ApplicationShell implements IApplicationShell { public showInformationMessage ( message , ... items ) ; public showInformationMessage ( message , options , ... items ) ; public showInformationMessage < T extends MessageItem > ( message , ... items ) ; public showInformationMessage < T extends MessageItem > ( message , options , ... items ) ; public showInformationMessage ( message , options ? , ... items ) { return window . showInformationMessage ( message , options , ... items ) ; } public showWarningMessage ( message , ... items ) ; public showWarningMessage ( message , options , ... items ) ; public showWarningMessage < T extends MessageItem > ( message , ... items ) ; public showWarningMessage < T extends MessageItem > ( message , options , ... items ) ; public showWarningMessage ( message , options ? , ... items ) { return window . showWarningMessage ( message , options , ... items ) ; } public showErrorMessage ( message , ... items ) ; public showErrorMessage ( message , options , ... items ) ; public showErrorMessage < T extends MessageItem > ( message , ... items ) ; public showErrorMessage < T extends MessageItem > ( message , options , ... items ) ; public showErrorMessage ( message , options ? , ... items ) { return window . showErrorMessage ( message , options , ... items ) ; } public showQuickPick ( items , options ? , token ? ) ; public showQuickPick < T extends QuickPickItem > ( items , options ? , token ? ) ; public showQuickPick ( items , options ? , token ? ) { return window . showQuickPick ( items , options , token ) ; } public showOpenDialog ( options ) { return window . showOpenDialog ( options ) ; } public showSaveDialog ( options ) { return window . showSaveDialog ( options ) ; } public showInputBox ( options ? , token ? ) { return window . showInputBox ( options , token ) ; } public setStatusBarMessage ( text , hideAfterTimeout ) ; public setStatusBarMessage ( text , hideWhenDone ) ; public setStatusBarMessage ( text ) ; public setStatusBarMessage ( text , arg ? ) { return window . setStatusBarMessage ( text , arg ) ; } public createStatusBarItem ( alignment ? , priority ? ) { return window . createStatusBarItem ( alignment , priority ) ; } public showWorkspaceFolderPick ( options ? ) { return window . showWorkspaceFolderPick ( options ) ; } public withProgress < R > ( options , task ) { return window . withProgress ( options , task ) ; } }