'use strict' ; import * as vscode from 'vscode' ; import path = require ( 'path' ) ; export function activate ( context ) { let disposable = vscode . commands . registerCommand ( 'terminalHere.create' , ( ) => { let editor = vscode . window . activeTextEditor ; if ( ! editor ) { return ; } let document = editor . document ; if ( ! document ) { return ; } let uri = document . uri ; if ( ! uri ) { return ; } let terminal = vscode . window . createTerminal ( { cwd : path . dirname ( uri . fsPath ) } ) ; terminal . show ( false ) ; } ) ; context . subscriptions . push ( disposable ) ; } export function deactivate ( ) { }