//		void UpdateFormatting()
        //		{
        //			IEnumerable<string> fileNames = addinPath.GetPowerShellFormattingFileNames();
        //			powerShellHost.UpdateFormatting(fileNames);
        //		}
        //
        void RedefineClearHostFunction()
        {
            //			string command = "function Clear-Host { $host.PrivateData.ClearHost() }";
            string command = "function Clear-Host { (Get-Host).PrivateData.ClearHost() }";

            powerShellHost.ExecuteCommand(command);
        }
Example #2
0
        void UpdateWorkingDirectory(string directory)
        {
            if (powerShellHost == null)
            {
                return;
            }

            string command = String.Format("Set-Location {0}", directory);

            PackageManagementBackgroundDispatcher.Dispatch(() => {
                powerShellHost.ExecuteCommand(command);
            });
        }
Example #3
0
        void UpdateWorkingDirectory(string directory)
        {
            string command = String.Format("Set-Location {0}", directory);

            powerShellHost.ExecuteCommand(command);
        }