Skip to content
Draft
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
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1548,14 +1548,20 @@
"type": "boolean",
"default": true,
"description": "%configuration.dotnet.projects.enableFileBasedPrograms%",
"deprecationMessage": "%configuration.dotnet.projects.enableFileBasedPrograms.deprecationMessage%",
"tags": [
"preview"
]
},
"dotnet.projects.enableFileBasedProgramsWhenAmbiguous": {
"dotnet.fileBasedApps.enable": {
"type": "boolean",
"default": true,
"description": "%configuration.dotnet.projects.enableFileBasedProgramsWhenAmbiguous%",
"description": "%configuration.dotnet.fileBasedApps.enable%"
},
"dotnet.fileBasedApps.enableAutomaticDiscovery": {
"type": "boolean",
"default": true,
"description": "%configuration.dotnet.fileBasedApps.enableAutomaticDiscovery%",
"tags": [
"preview"
]
Expand Down
4 changes: 3 additions & 1 deletion package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@
"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.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.projects.enableFileBasedPrograms.deprecationMessage": "The setting 'dotnet.projects.enableFileBasedPrograms' has been deprecated in favor of 'dotnet.fileBasedApps.enable'.",
"configuration.dotnet.fileBasedApps.enable": "Enables the \"file-based apps\" (dotnet run app.cs) experience.",
"configuration.dotnet.fileBasedApps.enableAutomaticDiscovery": "Enables automatic discovery of C# file-based apps in the workspace.",
"configuration.dotnet.projects.binaryLogPath": "Sets a path where MSBuild binary logs are written to when loading projects, to help diagnose loading errors.",
"configuration.dotnet.server.sourceGeneratorExecution": "Controls when source generators are executed. (Requires extension restart)",
"configuration.dotnet.server.sourceGeneratorExecution.balanced": "Source generators are executed after an explicit user action, including save, build, or the [Rerun source generators](command:csharp.rerunSourceGenerators) command.",
Expand Down
4 changes: 4 additions & 0 deletions src/shared/migrateOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ export const migrateOptions = [
oldName: 'omnisharp.organizeImportsOnFormat',
newName: 'dotnet.formatting.organizeImportsOnFormat',
},
{
oldName: 'dotnet.projects.enableFileBasedPrograms',
newName: 'dotnet.fileBasedApps.enable',
},
];

export async function MigrateOptions(vscode: vscode): Promise<void> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"dotnet.defaultSolution": "b_SecondInOrder_SlnFile.sln",
"dotnet.server.useOmnisharp": false,
"dotnet.preferCSharpExtension": false,
"dotnet.projects.enableFileBasedPrograms": true
"dotnet.fileBasedApps.enable": true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"dotnet.defaultSolution": "b_SecondInOrder_SlnFile.sln",
"dotnet.server.useOmnisharp": false,
"dotnet.preferCSharpExtension": true,
"dotnet.projects.enableFileBasedPrograms": true
"dotnet.fileBasedApps.enable": true
}
}
Loading