Skip to content

Improve configuration via file#140

Merged
jjonescz merged 15 commits intomainfrom
config-improvements
Mar 24, 2026
Merged

Improve configuration via file#140
jjonescz merged 15 commits intomainfrom
config-improvements

Conversation

@jjonescz
Copy link
Copy Markdown
Owner

No description provided.

@jjonescz jjonescz requested a review from Copilot March 24, 2026 20:29
@jjonescz jjonescz added the enhancement New feature or request label Mar 24, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR enhances the “configuration via file” experience and related editor/diagnostics behavior, including better configurability of compilation, improved diagnostics severity handling, and an option to preview rendered HTML output.

Changes:

  • Add support for configuration code to customize the final CSharpCompilation and improve configuration-language-services behavior by preloading compiler assemblies.
  • Refactor diagnostic-to-marker conversions to support severity mapping (e.g., include hidden diagnostics behavior).
  • Add an HTML output toolbar option to preview rendered HTML (via iframe srcdoc) and bump Roslyn/Razor package versions.

Reviewed changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
test/UnitTests/Utils/TestUtil.cs Adds test-time logging hook for compilation inputs.
test/UnitTests/LanguageServiceTests.cs Adds coverage for hidden diagnostics inclusion behavior.
test/UnitTests/CompilerProxyTests.cs Adds test for configuration-driven compilation mutation (missing member scenario).
src/WorkerApi/Lab/CompilerProxyOptions.cs Adds a delegate hook to log compilation inputs.
src/Worker/Lab/CompilerProxy.cs Implements compiler-assembly loader, adds compilation input logging, and makes built-in cache concurrent.
src/Shared/MonacoEditor.cs Replaces downgradeInfo boolean with a severity-mapping function.
src/Shared/ILanguageServices.cs Introduces ICompilerAssemblyLoader for preloading built-in assemblies.
src/Shared/ICompiler.cs Threads severity mapping into marker conversion API surface.
src/Shared/Executor.cs Allows user assemblies to configure DI before HTML rendering.
src/RoslynAccess/RoslynAccessors.cs Adds WithIgnoreAccessibility() helper for configuration compilation options.
src/Compiler/Utils/Utils.cs Adds severity mapping to Diagnostic -> DiagnosticData conversion.
src/Compiler/LanguageServices.cs Preloads compiler assemblies for configuration and refactors compiler-assembly reference updates; adjusts marker severity mapping usage.
src/Compiler/Compiler.cs Makes configuration execution async, upgrades hidden diagnostic severity when requested, enables internal/ignore-accessibility for configuration, and applies Config compilation transforms.
src/Compiler/Api.cs Adds Config.CSharpCompilation(...) customization pipeline.
src/App/Lab/Page.razor Adds “Rendered” HTML preview toggle and iframe-based rendering.
README.md Adds more external links (REPLs/playgrounds).
Directory.Packages.props Updates Roslyn/Razor package version properties.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jjonescz jjonescz marked this pull request as ready for review March 24, 2026 21:02
@jjonescz jjonescz merged commit 3e42585 into main Mar 24, 2026
3 checks passed
@jjonescz jjonescz deleted the config-improvements branch March 24, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants