Skip to content

Ignore documents from projects that do not support EnC when calculating active statements#59839

Merged
tmat merged 1 commit intodotnet:release/dev17.2from
tmat:GetBaseActiveStatementSpansAsyncFix
Mar 4, 2022
Merged

Ignore documents from projects that do not support EnC when calculating active statements#59839
tmat merged 1 commit intodotnet:release/dev17.2from
tmat:GetBaseActiveStatementSpansAsyncFix

Conversation

@tmat
Copy link
Copy Markdown
Member

@tmat tmat commented Mar 1, 2022

Fixes #59826

@tmat tmat requested a review from a team as a code owner March 1, 2022 17:45
@ghost ghost added the Area-Interactive label Mar 1, 2022
@tmat
Copy link
Copy Markdown
Member Author

tmat commented Mar 1, 2022

@davidwengier PTAL

@tmat tmat changed the base branch from main to release/dev17.2 March 1, 2022 18:03

var project = solution.AddProject("dummy_proj", "dummy_proj", DummyLanguageService.LanguageName);
var document = project.AddDocument("test", SourceText.From("dummy1"));
var project = solution.AddProject("dummy_proj", "dummy_proj", designTimeOnly ? LanguageNames.CSharp : DummyLanguageService.LanguageName);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I admit it's not terribly obvious to me why designTimeOnly controls both the language and also the flag on the document -- should those being independent be tested as well?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DesignTimeOnly only matters in C#/VB projects since all docs from other projects are ignored completely.

@jinujoseph jinujoseph added this to the 17.2.P2 milestone Mar 4, 2022
@tmat tmat merged commit be223bb into dotnet:release/dev17.2 Mar 4, 2022
@tmat tmat deleted the GetBaseActiveStatementSpansAsyncFix branch March 4, 2022 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

InvalidOperationException from DebuggingSession.GetBaseActiveStatementSpansAsync

3 participants