Skip to content

Commit 33d74db

Browse files
authored
Add second opt-out flag for file-based programs (#8823)
2 parents a350898 + 00e5671 commit 33d74db

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,26 @@
2424
* Fix: Support compound assignments in "Use null propagation" analyzer (PR: [#81328](https://github.com/dotnet/roslyn/pull/81328))
2525
* Fix IDE0032: Code fixer adds setter for static properties with instance constructor writes (PR: [#81327](https://github.com/dotnet/roslyn/pull/81327))
2626
* Add 'add extension completion' support for modern extensions. (PR: [#81239](https://github.com/dotnet/roslyn/pull/81239))
27+
* Add second opt-out flag for file-based programs (PR: [#8823](https://github.com/dotnet/vscode-csharp/pull/8823))
28+
* Update Roslyn to 5.3.0-2.25603.1 (PR: [#8823](https://github.com/dotnet/vscode-csharp/pull/8823))
29+
* Improve error message for misplaced variable designator in property patterns (PR: [#81287](https://github.com/dotnet/roslyn/pull/81287))
30+
* Add EnableFileBasedProgramsWhenAmbiguous flag (PR: [#81513](https://github.com/dotnet/roslyn/pull/81513))
31+
* Include extension properties in object initializer completion (PR: [#81498](https://github.com/dotnet/roslyn/pull/81498))
32+
* Fix IDE0048 to trigger consistently for `is null` and `is not null` in coalesce expressions (PR: [#81489](https://github.com/dotnet/roslyn/pull/81489))
33+
* Do not offer to add a `using namespace` on an alias qualified name. (PR: [#81487](https://github.com/dotnet/roslyn/pull/81487))
34+
* Add code refactoring to offer usings for fully qualified names (PR: [#81484](https://github.com/dotnet/roslyn/pull/81484))
35+
* Fix RemoveUnusedMembers handling of default parameter reads (PR: [#80810](https://github.com/dotnet/roslyn/pull/80810))
36+
* Fix exception in InlineMethodRefactoringProvider for recursive calls (PR: [#81469](https://github.com/dotnet/roslyn/pull/81469))
37+
* Fix issue where we weren't offering snippets inline after an expression (PR: [#81466](https://github.com/dotnet/roslyn/pull/81466))
38+
* Follow user naming preferences when generating type snippets (PR: [#81465](https://github.com/dotnet/roslyn/pull/81465))
39+
* Fix 'use var' with forr/for snippets (PR: [#81464](https://github.com/dotnet/roslyn/pull/81464))
40+
* Map edits in LSP rename, like in VS (PR: [#81450](https://github.com/dotnet/roslyn/pull/81450))
41+
* Remove more unused bits of Razor EA (PR: [#81452](https://github.com/dotnet/roslyn/pull/81452))
42+
* Fix for-snippet not simplifying (PR: [#81461](https://github.com/dotnet/roslyn/pull/81461))
43+
* Fix duplicate parameter names in introduce parameter refactoring (PR: [#81404](https://github.com/dotnet/roslyn/pull/81404))
44+
* Fade out portion of linq expression that can be simplified (PR: [#81419](https://github.com/dotnet/roslyn/pull/81419))
45+
* Improve LSP conformance in MS.CA.LanguageServer (PR: [#81174](https://github.com/dotnet/roslyn/pull/81174))
46+
* Improve 'else' indentation in a couple more cases (PR: [#81411](https://github.com/dotnet/roslyn/pull/81411))
2747

2848
# 2.102.x
2949
* Update Roslyn to 5.3.0-2.25568.9 (PR: [#8799](https://github.com/dotnet/vscode-csharp/pull/8799))

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"workspace"
4141
],
4242
"defaults": {
43-
"roslyn": "5.3.0-2.25571.4",
43+
"roslyn": "5.3.0-2.25603.1",
4444
"omniSharp": "1.39.14",
4545
"razor": "10.0.0-preview.25577.1",
4646
"razorOmnisharp": "7.0.0-preview.23363.1",
@@ -1520,6 +1520,14 @@
15201520
"preview"
15211521
]
15221522
},
1523+
"dotnet.projects.enableFileBasedProgramsWhenAmbiguous": {
1524+
"type": "boolean",
1525+
"default": true,
1526+
"description": "%configuration.dotnet.projects.enableFileBasedProgramsWhenAmbiguous%",
1527+
"tags": [
1528+
"preview"
1529+
]
1530+
},
15231531
"razor.languageServer.directory": {
15241532
"type": "string",
15251533
"scope": "machine-overridable",

package.nls.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
"configuration.dotnet.server.useServerGC": "Configure the language server to use .NET server garbage collection. Server garbage collection generally provides better performance at the expensive of higher memory consumption.",
4343
"configuration.dotnet.enableXamlTools": "Enables XAML tools when using C# Dev Kit",
4444
"configuration.dotnet.projects.enableAutomaticRestore": "Enables automatic NuGet restore if the extension detects assets are missing.",
45-
"configuration.dotnet.projects.enableFileBasedPrograms": "Enables the preview \"file-based programs\" (dotnet run app.cs) experience.",
45+
"configuration.dotnet.projects.enableFileBasedPrograms": "Enables the \"file-based programs\" (dotnet run app.cs) experience.",
46+
"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`.",
4647
"configuration.dotnet.projects.binaryLogPath": "Sets a path where MSBuild binary logs are written to when loading projects, to help diagnose loading errors.",
4748
"configuration.dotnet.preferCSharpExtension": "Forces projects to load with the C# extension only. This can be useful when using legacy project types that are not supported by C# Dev Kit. (Requires window reload)",
4849
"configuration.dotnet.typeMembers.memberInsertionLocation": "The insertion location of properties, events, and methods When implement interface or abstract class.",

0 commit comments

Comments
 (0)