/// <summary>
        /// Invokes the DiagnosticProvider to assemble diagnsotics
        /// </summary>
        /// <returns>Diagnostics ready to publish</returns>
        private PublishDiagnosticsParams GetDiagnostics(Uri uri, IFileRepository fileRepository)
        {
            _log.LogInformation(Resources.LoggingMessages.request_update_diagnostics);
            _mss.SendCurrentDocumentInProcess(fileRepository.PhysicalFile.Filepath);
            IFileRepository      repo     = _workspaceManager.GetFileRepository(uri);
            IDiagnosticsProvider provider = new DiagnosticsProvider(repo);
            var diags = provider.GetPublishableDiagnostics();

            return(diags);
        }