"use strict" ; import * as vscode from "vscode" ; import * as terminal from "./terminal" ; export function activate ( context ) { console . log ( 'Congratulations, your extension "rails-run-spec-vscode" is now active!' ) ; context . subscriptions . push ( vscode . commands . registerCommand ( "extension.runAllSpecFiles" , ( ) => terminal . runSpecFile ( { path : "/" } ) ) ) ; context . subscriptions . push ( vscode . commands . registerCommand ( "extension.runFileSpecs" , ( ) => terminal . runSpecFile ( { } ) ) ) ; context . subscriptions . push ( vscode . commands . registerCommand ( "extension.runSpecsFromMenu" , ( fileUri ? ) => { terminal . runSpecFile ( { path : fileUri . fsPath } ) ; } ) ) ; context . subscriptions . push ( vscode . commands . registerCommand ( "extension.runSpecLine" , ( ) => { let currentPosition = vscode . window . activeTextEditor . selection . active ; terminal . runSpecFile ( { lineNumber : currentPosition . line + 1 } ) ; } ) ) ; context . subscriptions . push ( vscode . commands . registerCommand ( "extension.runLastSpec" , terminal . runLastSpec ) ) ; } export function deactivate ( ) { }