Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1561,6 +1561,11 @@
"default": true,
"description": "%configuration.dotnet.projects.enableAutomaticRestore%"
},
"dotnet.projects.loadOnDemand": {
"type": "boolean",
"default": true,
"description": "%configuration.dotnet.projects.loadOnDemand%"
},
"dotnet.projects.enableFileBasedPrograms": {
"type": "boolean",
"default": true,
Expand Down
1 change: 1 addition & 0 deletions package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"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.

"configuration.dotnet.projects.enableFileBasedPrograms": "Enables the \"file-based programs\" (dotnet run app.cs) experience.",
"configuration.dotnet.projects.enableFileBasedProgramsWhenAmbiguous": "Enables the \"file-based programs\" (dotnet run app.cs) experience in files where the editor is unable to determine with certainty whether the file is a file-based program. Only respected when `dotnet.projects.enableFileBasedPrograms` is `true`.",
"configuration.dotnet.fileBasedApps.enableAutomaticDiscovery": "Enables automatic discovery of C# file-based apps in the workspace.",
Expand Down
7 changes: 7 additions & 0 deletions test/lsptoolshost/unitTests/configurationMiddleware.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { convertServerOptionNameToClientConfigurationName } from '../../../src/l
import { describe, test, expect } from '@jest/globals';

const editorBehaviorSection = 1;
const lspServerSection = 3;
const testData = [
{
serverOption: 'csharp|symbol_search.dotnet_search_reference_assemblies',
Expand Down Expand Up @@ -273,6 +274,12 @@ const testData = [
declareInPackageJson: true,
section: editorBehaviorSection,
},
{
serverOption: 'projects.dotnet_load_on_demand',
vsCodeConfiguration: 'dotnet.projects.loadOnDemand',
declareInPackageJson: true,
section: lspServerSection,
},
];

describe('Server option name to vscode configuration name test', () => {
Expand Down
Loading