import * as path from 'path' ; import Workspace from './workspace' ; import { DEVMODE } from '../utils/environment' ; import { ViewType } from './view/index' ; const opts = { filePath : path . resolve ( __dirname , '..' , 'xi' , 'plugins' , 'xi_plugin' , 'cache.py' ) , coreOptions : { env : Object . assign ( { RUST_BACKTRACE : 1 } , process . env ) } , viewOptions : { type : ViewType . Canvas , scrollPastEnd : true } } ; const workspace = new Workspace ( document . body , opts ) ; if ( DEVMODE ) { ( < any > window ) . Core = require ( './core' ) . default ; ( < any > window ) . workspace = workspace ; document . title += ` -- ViewType: ${ opts . viewOptions . type }` ; }