/// <summary>
        /// Called to initialize the extension.
        /// </summary>
        /// <param name="host">WebMatrix host interface.</param>
        /// <param name="initData">Extension initialization data.</param>
        protected override void Initialize(IWebMatrixHost host, ExtensionInitData initData)
        {
            _webMatrixHost = host;

            initData.RibbonItems.Add(
                new RibbonGroup(
                    "TypeScript",
                    new RibbonItem[]
                        {
                            new RibbonButton(
                        "Compile TypeScript",
                        new DelegateCommand(CanExecute, HandleRibbonButtonCompileTypeScriptInvoke),
                        null,
                        _typescriptCompileImageSmall,
                        _typescriptCompileImageLarge),
                            new RibbonButton(
                        "Update software",
                        new DelegateCommand(CanExecute, HandleRibbonButtonUpdateSoftwareInvoke),
                        null,
                        _typescriptUpdateImageSmall,
                        _typescriptUpdateImageLarge)
                        }));

            _executer = DesignFactory.WebMatrix.ExecuterFactory.GetExecuter(
                "TypeScript", _webMatrixHost, _editorTaskPanel);

            _webMatrixHost.WebSiteChanged += (sender, e) => _executer.InitializeTabs();

            // Register handler for right-click context menu
            _webMatrixHost.ContextMenuOpening += new EventHandler<ContextMenuOpeningEventArgs>(webMatrixHost_ContextMenuOpening);
        }
        /// <summary>
        /// Called to initialize the extension.
        /// </summary>
        /// <param name="host">WebMatrix host interface.</param>
        /// <param name="initData">Extension initialization data.</param>
        protected override void Initialize(IWebMatrixHost host, ExtensionInitData initData)
        {
            _webMatrixHost = host;

            initData.RibbonItems.Add(
                new RibbonGroup(
                    "TypeScript",
                    new RibbonItem[]
            {
                new RibbonButton(
                    "Compile TypeScript",
                    new DelegateCommand(CanExecute, HandleRibbonButtonCompileTypeScriptInvoke),
                    null,
                    _typescriptCompileImageSmall,
                    _typescriptCompileImageLarge),
                new RibbonButton(
                    "Update software",
                    new DelegateCommand(CanExecute, HandleRibbonButtonUpdateSoftwareInvoke),
                    null,
                    _typescriptUpdateImageSmall,
                    _typescriptUpdateImageLarge)
            }));

            _executer = DesignFactory.WebMatrix.ExecuterFactory.GetExecuter(
                "TypeScript", _webMatrixHost, _editorTaskPanel);

            _webMatrixHost.WebSiteChanged += (sender, e) => _executer.InitializeTabs();

            // Register handler for right-click context menu
            _webMatrixHost.ContextMenuOpening += new EventHandler <ContextMenuOpeningEventArgs>(webMatrixHost_ContextMenuOpening);
        }