Beispiel #1
0
        public void Initialize(CompileScorePackage package, IServiceProvider serviceProvider)
        {
            _package         = package;
            _serviceProvider = serviceProvider;

            DocumentLifetimeManager.FileWatchedChanged += OnFileWatchedChanged;

            RefreshInstance();
        }
        private void InitSystems()
        {
            var package         = new CompileScorePackage();
            var serviceProvider = new VSFakeServiceProvider();

            OutputLog.Initialize(serviceProvider);
            CompilerData.Instance.Initialize(package, serviceProvider);
            Timeline.CompilerTimeline.Instance.Initialize(package);
            DocumentLifetimeManager.Initialize(serviceProvider);
        }
Beispiel #3
0
        public void Initialize(CompileScorePackage package, IServiceProvider serviceProvider)
        {
            ThreadHelper.ThrowIfNotOnUIThread();

            Package         = package;
            ServiceProvider = serviceProvider;

            DocumentLifetimeManager.FileWatchedChanged += OnFileWatchedChanged;
            SettingsManager.SettingsChanged            += OnSolutionSettingsChanged;

            var EditorContextInstance = EditorContext.Instance;

            EditorContextInstance.ModeChanged          += OnEditorModeChanged;
            EditorContextInstance.ConfigurationChanged += OnSolutionSettingsChanged; //Refresh settings for potential macro variables change
        }