import { injectable } from 'inversify' ; import { TextDocument , TextDocumentShowOptions , TextEditor , Uri , ViewColumn , window , workspace } from 'vscode' ; import { IDocumentManager } from './types/documentManager' ; @ injectable ( ) export class DocumentManager implements IDocumentManager { public openTextDocument ( uri ) ; public openTextDocument ( fileName ) ; public openTextDocument ( options ? ) ; public openTextDocument ( options ? ) ; public openTextDocument ( ... args ) { return workspace . openTextDocument . call ( window , ... args ) ; } public showTextDocument ( document , column ? , preserveFocus ? ) ; public showTextDocument ( document , options ? ) ; public showTextDocument ( uri , options ? ) ; public showTextDocument ( document , column ? , preserveFocus ? ) ; public showTextDocument ( ... args ) { return window . showTextDocument . call ( window , ... args ) ; } }