public void RazorDocumentChanged(RazorFileChangeEventArgs args)
        {
            if (args is null)
            {
                throw new ArgumentNullException(nameof(args));
            }

            if (args.Kind != RazorFileChangeKind.Changed)
            {
                return;
            }

            var projectFilePath  = args.UnevaluatedProjectInstance.ProjectFileLocation.File;
            var documentFilePath = args.FilePath;

            Task.Factory.StartNew(
                () => _projectManager.DocumentChanged(projectFilePath, documentFilePath),
                CancellationToken.None, TaskCreationOptions.None, _foregroundDispatcher.ForegroundScheduler);
        }
        public void RazorDocumentChanged(RazorFileChangeEventArgs args)
        {
            if (args is null)
            {
                throw new ArgumentNullException(nameof(args));
            }

            if (args.Kind != RazorFileChangeKind.Changed)
            {
                return;
            }

            var projectFilePath  = args.UnevaluatedProjectInstance.ProjectFileLocation.File;
            var documentFilePath = args.FilePath;

            _ = _projectSnapshotManagerDispatcher.RunOnDispatcherThreadAsync(
                () => _projectManager.DocumentChanged(projectFilePath, documentFilePath),
                CancellationToken.None).ConfigureAwait(false);
        }