Пример #1
0
 internal static void GotoSource(this LocationInfo location)
 {
     IronRubyToolsPackage.NavigateTo(
         location.FilePath,
         Guid.Empty,
         location.Line - 1,
         location.Column - 1);
 }
Пример #2
0
        /// <summary>
        /// Default constructor of the package.
        /// Inside this method you can place any initialization code that does not require
        /// any Visual Studio service because at this point the package object is created but
        /// not sited yet inside Visual Studio environment. The place to do all the other
        /// initialization is the Initialize method.
        /// </summary>
        public IronRubyToolsPackage()
        {
            Trace.WriteLine(string.Format(CultureInfo.CurrentCulture, "Entering constructor for: {0}", this.ToString()));
            Instance = this;

            LoadAssemblies();
            InitializeRegistrySettings();
            IronRubyToolsPath         = Path.GetDirectoryName(typeof(IronRubyToolsPackage).Assembly.Location);
            IronRubyBinPath           = GetIronRubyBinPath() ?? IronRubyToolsPath;
            IronRubyExecutable        = Path.Combine(IronRubyBinPath, RubyConstants.IronRubyExecutable);
            IronRubyWindowsExecutable = Path.Combine(IronRubyBinPath, RubyConstants.IronRubyWindowsExecutable);
            GemsBinPath = FindGemBinPath(IronRubyBinPath);
        }
Пример #3
0
        /// <summary>
        /// Default constructor of the package.
        /// Inside this method you can place any initialization code that does not require 
        /// any Visual Studio service because at this point the package object is created but 
        /// not sited yet inside Visual Studio environment. The place to do all the other 
        /// initialization is the Initialize method.
        /// </summary>
        public IronRubyToolsPackage()
        {
            Trace.WriteLine(string.Format(CultureInfo.CurrentCulture, "Entering constructor for: {0}", this.ToString()));
            Instance = this;

            LoadAssemblies();
            InitializeRegistrySettings();
            IronRubyToolsPath = Path.GetDirectoryName(typeof(IronRubyToolsPackage).Assembly.Location);
            IronRubyBinPath = GetIronRubyBinPath() ?? IronRubyToolsPath;
            IronRubyExecutable = Path.Combine(IronRubyBinPath, RubyConstants.IronRubyExecutable);
            IronRubyWindowsExecutable = Path.Combine(IronRubyBinPath, RubyConstants.IronRubyWindowsExecutable);
            GemsBinPath = FindGemBinPath(IronRubyBinPath);
        }