Ejemplo n.º 1
0
        public VsReadOnlyDocumentTracker(IEditAndContinueService encService, IVsEditorAdaptersFactoryService adapters)
            : base(assertIsForeground: true)
        {
            Debug.Assert(encService.DebuggingSession != null);

            _encService = encService;
            _adapters   = adapters;
            _workspace  = encService.DebuggingSession.InitialSolution.Workspace;

            _workspace.DocumentOpened += OnDocumentOpened;
            UpdateWorkspaceDocuments();
        }
Ejemplo n.º 2
0
        public ReadOnlyDocumentTracker(IThreadingContext threadingContext, IEditAndContinueService encService, Action <DocumentId, SessionReadOnlyReason, ProjectReadOnlyReason> onReadOnlyDocumentEditAttempt)
            : base(threadingContext, assertIsForeground: true)
        {
            Debug.Assert(encService.DebuggingSession != null);

            _encService      = encService;
            _readOnlyRegions = new Dictionary <DocumentId, IReadOnlyRegion>();
            _workspace       = encService.DebuggingSession.InitialSolution.Workspace;
            _onReadOnlyDocumentEditAttempt = onReadOnlyDocumentEditAttempt;

            _workspace.DocumentClosed += OnDocumentClosed;
            _workspace.DocumentOpened += OnDocumentOpened;

            foreach (var documentId in _workspace.GetOpenDocumentIds())
            {
                TrackDocument(documentId);
            }
        }
Ejemplo n.º 3
0
 public VisualStudioActiveStatementTracker(IEditAndContinueService editAndContinueService)
 {
     _editAndContinueService = editAndContinueService;
 }
Ejemplo n.º 4
0
 internal DebuggingWorkspaceService(IEditAndContinueService editAndContinueServiceOpt)
 {
     EditAndContinueServiceOpt = editAndContinueServiceOpt;
 }
 public DebuggingWorkspaceServiceFactory([Import(AllowDefault = true)] IEditAndContinueService editAndContinueServiceOpt)
 {
     _editAndContinueServiceOpt = editAndContinueServiceOpt;
 }