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(); }
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); } }
public VisualStudioActiveStatementTracker(IEditAndContinueService editAndContinueService) { _editAndContinueService = editAndContinueService; }
internal DebuggingWorkspaceService(IEditAndContinueService editAndContinueServiceOpt) { EditAndContinueServiceOpt = editAndContinueServiceOpt; }
public DebuggingWorkspaceServiceFactory([Import(AllowDefault = true)] IEditAndContinueService editAndContinueServiceOpt) { _editAndContinueServiceOpt = editAndContinueServiceOpt; }