コード例 #1
0
 public void UpdateDependencies(DependenciesMessage message)
 {
     dependencies[message.Framework.FrameworkName] = message;
     OnDependenciesChanged();
 }
コード例 #2
0
//        public void OnDocumentChanged(DocumentId documentId, SourceText text)
//        {
//            OnDocumentTextChanged(documentId, text, PreservationMode.PreserveIdentity);
//        }
//
//        public DocumentId GetDocumentId(string filePath)
//        {
//            var documentIds = CurrentSolution.GetDocumentIdsWithFilePath(filePath);
//            return documentIds.FirstOrDefault();
//        }
//
//        public IEnumerable<Document> GetDocuments(string filePath)
//        {
//            return CurrentSolution.GetDocumentIdsWithFilePath(filePath).Select(id => CurrentSolution.GetDocument(id));
//        }
//
//        public Document GetDocument(string filePath)
//        {
//            var documentId = GetDocumentId(filePath);
//            if (documentId == null)
//            {
//                return null;
//            }
//            return CurrentSolution.GetDocument(documentId);
//        }
//
//        public override bool CanApplyChange(ApplyChangesKind feature)
//        {
//            return true;
//        }

        public void DependenciesUpdated(Project project, DependenciesMessage message)
        {
            DnxServices.ProjectService.DependenciesUpdated(project, message);
        }
コード例 #3
0
 //        public void SetCompilationOptions(ProjectId projectId, CompilationOptions options)
 //        {
 //            OnCompilationOptionsChanged(projectId, options);
 //        }
 //
 //        public void SetParseOptions(ProjectId projectId, ParseOptions parseOptions)
 //        {
 //            OnParseOptionsChanged(projectId, parseOptions);
 //        }
 //
 //        public void OnDocumentChanged(DocumentId documentId, SourceText text)
 //        {
 //            OnDocumentTextChanged(documentId, text, PreservationMode.PreserveIdentity);
 //        }
 //
 //        public DocumentId GetDocumentId(string filePath)
 //        {
 //            var documentIds = CurrentSolution.GetDocumentIdsWithFilePath(filePath);
 //            return documentIds.FirstOrDefault();
 //        }
 //
 //        public IEnumerable<Document> GetDocuments(string filePath)
 //        {
 //            return CurrentSolution.GetDocumentIdsWithFilePath(filePath).Select(id => CurrentSolution.GetDocument(id));
 //        }
 //
 //        public Document GetDocument(string filePath)
 //        {
 //            var documentId = GetDocumentId(filePath);
 //            if (documentId == null)
 //            {
 //                return null;
 //            }
 //            return CurrentSolution.GetDocument(documentId);
 //        }
 //
 //        public override bool CanApplyChange(ApplyChangesKind feature)
 //        {
 //            return true;
 //        }
 public void DependenciesUpdated(Project project, DependenciesMessage message)
 {
     DnxServices.ProjectService.DependenciesUpdated(project, message);
 }
コード例 #4
0
 public void UpdateDependencies(DependenciesMessage message)
 {
     dependencies[message.Framework.FrameworkName] = message;
     OnDependenciesChanged ();
 }