Skip to content

Add on-demand project loading setting - #9758

Open
JoeRobich wants to merge 2 commits into
mainfrom
dev/jorobich/on-demand-loading-client-option
Open

JoeRobich wants to merge 2 commits into
mainfrom
dev/jorobich/on-demand-loading-client-option

Conversation

@JoeRobich

Copy link
Copy Markdown
Member

Adds the VS Code configuration counterpart for Roslyn on-demand project loading.

The Roslyn language server requests this setting as projects.dotnet_load_on_demand; the configuration middleware maps it to dotnet.projects.loadOnDemand.

Counterpart to dotnet/roslyn#85234.

Expose the Roslyn LSP project loading option through VS Code configuration.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 5615e2cd-8b86-40a5-808b-47f8fa893b35
Copilot AI lite review requested due to automatic review settings September 14, 2026 15:55
@JoeRobich
JoeRobich requested a review from a team as a code owner September 14, 2026 15:55
Verify the Roslyn option name maps to the contributed VS Code setting.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 5615e2cd-8b86-40a5-808b-47f8fa893b35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

Two moderate review issues remain unresolved.

Review tier: Lite
Findings: None

What changed in this PR

Adds the VS Code configuration counterpart for Roslyn on-demand project loading.

Changes:

  • Declares dotnet.projects.loadOnDemand as a boolean enabled by default.
  • Adds its English configuration description.
File Summary Review
package.nls.json Adds the setting description. Moderate: add the key to every locale file. (1 vote)
package.json Declares the new configuration setting. Moderate: add coverage to configurationMiddleware.test.ts. (1 vote)

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Copilot AI review requested due to automatic review settings September 14, 2026 15:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

Runtime synchronization/reload handling and localized resource updates remain outstanding.

Review tier: Lite
Findings: None

Comment thread package.nls.json
"configuration.dotnet.server.environmentVariables": "Custom environment variables to pass to the language server process. Specify as key-value pairs, for example: { \"DOTNET_GCName\": \"libclrgc.dylib\" }. (Requires extension restart)",
"configuration.dotnet.enableXamlTools": "Enables XAML tools when using C# Dev Kit. (Requires extension restart)",
"configuration.dotnet.projects.enableAutomaticRestore": "Enables automatic NuGet restore if the extension detects assets are missing.",
"configuration.dotnet.projects.loadOnDemand": "Loads projects when a language feature first requests a file they contain instead of loading every project at startup.",

@jasonmalinowski jasonmalinowski Sep 17, 2026

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.

Suggested change
"configuration.dotnet.projects.loadOnDemand": "Loads projects when a language feature first requests a file they contain instead of loading every project at startup.",
"configuration.dotnet.projects.loadOnDemand": "Discovers and loads projects when you open C# files",

"when a language feature first requests a file" was a bit pithy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants