Esempio n. 1
0
        public void Initialize(CompileScorePackage package, IServiceProvider serviceProvider)
        {
            _package         = package;
            _serviceProvider = serviceProvider;

            DocumentLifetimeManager.FileWatchedChanged += OnFileWatchedChanged;

            RefreshInstance();
        }
Esempio n. 2
0
        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);
        }
Esempio n. 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
        }