Пример #1
0
        public void AddAnalyzerConfigDocument(ProjectId projectId, string filePath)
        {
            var documentId   = DocumentId.CreateNewId(projectId);
            var loader       = new OmniSharpTextLoader(filePath);
            var documentInfo = DocumentInfo.Create(documentId, Path.GetFileName(filePath), filePath: filePath, loader: loader);

            OnAnalyzerConfigDocumentAdded(documentInfo);
        }
        public DocumentId AddDocument(DocumentId documentId, ProjectId projectId, string filePath, SourceCodeKind sourceCodeKind = SourceCodeKind.Regular)
        {
            var loader       = new OmniSharpTextLoader(filePath);
            var documentInfo = DocumentInfo.Create(documentId, filePath, filePath: filePath, loader: loader, sourceCodeKind: sourceCodeKind);

            this.AddDocument(documentInfo);

            return(documentId);
        }
Пример #3
0
        public void ReloadAnalyzerConfigDocument(DocumentId documentId, string filePath)
        {
            var loader = new OmniSharpTextLoader(filePath);

            OnAnalyzerConfigDocumentTextLoaderChanged(documentId, loader);
        }
Пример #4
0
        public void AddAdditionalDocument(ProjectId projectId, string filePath)
        {
            var loader = new OmniSharpTextLoader(filePath);

            AddAdditionalDocument(projectId, filePath, loader);
        }