'use strict' ; import * as vscode from 'vscode' ; import * as CRSFunctions from './CRSFunctions' ; import { CRSExtensionPublicApi } from './api/CRSExtensionPublicApi' ; import * as CRSStatusBar from './UI/CRSStatusBar' ; import { GetTerminal } from './CRSTerminal' ; export function Terminal ( ) { return GetTerminal ( ) ; } export function activate ( context ) { console . log ( 'Extension "crs-al-language-extension" is now activated!' ) ; let commandlist = [ vscode . commands . registerCommand ( 'crs.InstallWaldosModules' , CRSFunctions . InstallWaldosModules ) , vscode . commands . registerCommand ( 'crs.CreateGraphVizDependencyGraph' , CRSFunctions . CreateGraphVizDependencyGraph ) , vscode . commands . registerCommand ( 'crs.RunCurrentObjectWeb' , ( currFile ) => CRSFunctions . RunCurrentObjectWeb ( currFile ) ) , vscode . commands . registerCommand ( 'crs.PublishAndRunCurrentObjectWeb' , CRSFunctions . PublishAndRunCurrentObjectWeb ) , vscode . commands . registerCommand ( 'crs.RunObjectWeb' , CRSFunctions . RunObjectWeb ) , vscode . commands . registerCommand ( 'crs.RunObjectTablet' , CRSFunctions . RunObjectTablet ) , vscode . commands . registerCommand ( 'crs.RunObjectPhone' , CRSFunctions . RunObjectPhone ) , vscode . commands . registerCommand ( 'crs.RunObjectWindows' , CRSFunctions . RunObjectWindows ) , vscode . commands . registerCommand ( 'crs.RunTestTool' , CRSFunctions . RunTestTool ) , vscode . commands . registerCommand ( 'crs.RunEventSubscribers' , CRSFunctions . RunEventSubscribers ) , vscode . commands . registerCommand ( 'crs.RunDatabaseLocks' , CRSFunctions . RunDatabaseLocks ) , vscode . commands . registerCommand ( 'crs.RenameCurrentFile' , CRSFunctions . RenameCurrentFile ) , vscode . commands . registerCommand ( 'crs.RenameAllFiles' , CRSFunctions . RenameAllFiles ) , vscode . commands . registerCommand ( 'crs.ReorganizeCurrentFile' , CRSFunctions . ReorganizeCurrentFile ) , vscode . commands . registerCommand ( 'crs.ReorganizeAllFiles' , CRSFunctions . ReorganizeAllFiles ) , vscode . commands . registerCommand ( 'crs.SearchMicrosoftDocs' , CRSFunctions . SearchMicrosoftDocs ) , vscode . commands . registerCommand ( 'crs.SearchGoogle' , CRSFunctions . SearchGoogle ) , vscode . commands . registerCommand ( 'crs.SearchObjectNames' , CRSFunctions . SearchObjectNames ) , vscode . commands . registerCommand ( 'crs.SetupSnippets' , CRSFunctions . SetupSnippets ) , vscode . commands . registerCommand ( 'crs.ConfigureBestPracticeNaming' , CRSFunctions . ConfigureBestPracticeNaming ) , vscode . commands . registerCommand ( 'crs.CompileDGML' , CRSFunctions . CompileDGML ) ] ; let componentlist = [ CRSStatusBar . RunObjectFromStatusBar ] ; context . subscriptions . concat ( commandlist , componentlist ) ; context . subscriptions . push ( vscode . workspace . onDidSaveTextDocument ( CRSFunctions . HandleOnSaveTextDocument ) ) ; context . subscriptions . push ( vscode . window . onDidChangeActiveTextEditor ( CRSFunctions . HandleOnChangeActiveTextEditor ) ) ; vscode . commands . executeCommand ( 'crs.SetupSnippets' ) ; let extensionApi = new CRSExtensionPublicApi ( ) ; return extensionApi ; } export function deactivate ( ) { console . log ( 'You just deactivated "crs-al-language-extension".  Sad to see you go!' ) ; }