import { CancellationToken , InputBoxOptions , ProgressLocation , TextDocumentShowOptions , TextEditor , Uri , window } from "vscode" ; import { injectable } from "inversify" ; @ injectable ( ) export class WindowProxy { public async showInputBox ( options ? , token ? ) { return window . showInputBox ( options , token ) ; } public async showTextDocument ( uri , options ? ) { return window . showTextDocument ( uri , options ) ; } public showWithProgress ( title , longOperationPromise ) { window . withProgress ( { location : ProgressLocation . Notification , title : title } , ( ) => { return longOperationPromise ; } ) ; } }