Repository navigation
Do not log missing generated output directory for Venus design-time project - #86533
Conversation
|
Azure Pipelines: Successfully started running 2 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
|
@jasonmalinowski Simple change, ptal |
f1c3744 to
f013cc9
Compare
There was a problem hiding this comment.
🟡 Changes recommended
The new tests lack the required MEF export-provider scope and can fail before assertions, while missing coverage of IgnoreForEditAndContinue leaves the logging regression unprotected.
2 open issues
What changed in this PR
This PR reduces confusing Edit and Continue logging for Venus design-time projects while keeping them excluded from runtime updates.
Changes:
- Adds a heuristic using project names and design-time projection documents to suppress missing generated-output-directory messages for Venus projects.
- Changes remaining project-exclusion messages to warning severity.
- Adds recognition tests covering C# and Visual Basic projections, invalid names, and mismatched or non-design-time documents.
| File | Description |
|---|---|
src/Features/Test/EditAndContinue/ExtensionsTests.cs |
Adds positive and negative tests for Venus project recognition. |
src/Features/Core/Portable/EditAndContinue/Utilities/Extensions.cs |
Adds Venus detection, selectively suppresses logging, and updates exclusion-message severity. |
Review effort: Balanced
There was a problem hiding this comment.
🔵 Needs a closer look
The tests cover only project recognition, so removing the logging guard would still pass them; regression coverage must verify that Venus projects remain silent while ordinary misconfigured projects still log and both remain ignored.
2 open issues
Review effort: Balanced
Mark the MEF-backed tests with UseExportProvider and cover IgnoreForEditAndContinue so Venus projects stay silent while ordinary projects still log the missing directory. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
| /// the number depends on creation order. The returned display name is that URL and retains the underscores. | ||
| /// The page document is the project document whose name ends with ".__projection.g.cs" or ".__projection.g.vb". | ||
| /// </summary> | ||
| internal static bool IsVenusDesignTimeProject(Project project) |
There was a problem hiding this comment.
Don't we have better ways to do this?
|
Updated the code to report we intentionally skipped the project |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>


Adds a simple heuristic to avoid logging confusing messages.