File tree Expand file tree Collapse file tree 3 files changed +22
-5
lines changed Expand file tree Collapse file tree 3 files changed +22
-5
lines changed Original file line number Diff line number Diff line change 4
4
- Debug from .csproj and .sln [ #5876 ] ( https://github.com/dotnet/vscode-csharp/issues/5876 )
5
5
6
6
# 2.90.x
7
- * Bump Razor to 10.0.0-preview.25416.1 (PR: [ #8557 ] ( https://github.com/dotnet/vscode-csharp/pull/8557 ) )
7
+ * Bump Roslyn to 5.0.0-2.25424.1 (PR: [ #8559 ] ( https://github.com/dotnet/vscode-csharp/pull/8559 ) )
8
+ * Generate ` init ` accessor for required properties inside ` readonly struct ` s (PR: [ #80004 ] ( https://github.com/dotnet/roslyn/pull/80004 ) )
9
+ * Allow Razor cohosting to work with non-Razor SDK projects (PR: [ #79953 ] ( https://github.com/dotnet/roslyn/pull/79953 ) )
10
+ * Update 'use expr body' to be a purely syntactic analyzer (PR: [ #79979 ] ( https://github.com/dotnet/roslyn/pull/79979 ) )
11
+ * Implement "Simplify property accessor" feature (PR: [ #79754 ] ( https://github.com/dotnet/roslyn/pull/79754 ) )
12
+ * Allow Razor to hook up the source generator in misc files (PR: [ #79891 ] ( https://github.com/dotnet/roslyn/pull/79891 ) )
13
+ * Bump Razor to 10.0.0-preview.25424.9 (PR: [ #8559 ] ( https://github.com/dotnet/vscode-csharp/pull/8559 ) )
14
+ * Allow Razor cohosting to work with non-Razor SDK projects (PR: [ #12118 ] ( https://github.com/dotnet/razor/pull/12118 ) )
15
+ * Allow the source generator to produce results for miscellaneous files (PR: [ #12106 ] ( https://github.com/dotnet/razor/pull/12106 ) )
8
16
* Fix range formatting in the presence of K&R braces (PR: [ #12121 ] ( https://github.com/dotnet/razor/pull/12121 ) )
9
17
* Add codelens endpoints and services for cohosting (PR: [ #12078 ] ( https://github.com/dotnet/razor/pull/12078 ) )
10
18
* Support Go To Def for Mvc tag helpers in cohosting (PR: [ #12102 ] ( https://github.com/dotnet/razor/pull/12102 ) )
Original file line number Diff line number Diff line change 40
40
" workspace"
41
41
],
42
42
"defaults" : {
43
- "roslyn" : " 5.0.0-2.25412.5 " ,
44
- "omniSharp" : " 1.39.14" ,
45
- "razor" : " 10.0.0-preview.25419.3 " ,
43
+ "roslyn" : " 5.0.0-2.25424.1 " ,
44
+ "omniSharp" : " 1.39.14" ,
45
+ "razor" : " 10.0.0-preview.25424.9 " ,
46
46
"razorOmnisharp" : " 7.0.0-preview.23363.1" ,
47
47
"xamlTools" : " 17.14.36106.43"
48
48
},
Original file line number Diff line number Diff line change @@ -666,7 +666,7 @@ export class RoslynLanguageServer {
666
666
667
667
args . push (
668
668
'--razorDesignTimePath' ,
669
- path . join ( razorPath , 'Targets' , 'Microsoft.NET.Sdk.Razor.DesignTime.targets' )
669
+ path . join ( razorSourceGeneratorPath , 'Targets' , 'Microsoft.NET.Sdk.Razor.DesignTime.targets' )
670
670
) ;
671
671
672
672
// Get the brokered service pipe name from C# Dev Kit (if installed).
@@ -706,6 +706,15 @@ export class RoslynLanguageServer {
706
706
// Set command enablement to use roslyn standalone commands.
707
707
await vscode . commands . executeCommand ( 'setContext' , 'dotnet.server.activationContext' , 'Roslyn' ) ;
708
708
_wasActivatedWithCSharpDevkit = false ;
709
+
710
+ if ( razorOptions . cohostingEnabled ) {
711
+ // Razor has code in Microsoft.CSharp.DesignTime.targets to handle non-Razor-SDK projects, but that doesn't get imported outside
712
+ // of DevKit so we polyfill with a mini-version that Razor provides for that scenario.
713
+ args . push (
714
+ '--csharpDesignTimePath' ,
715
+ path . join ( razorComponentPath , 'Targets' , 'Microsoft.CSharpExtension.DesignTime.targets' )
716
+ ) ;
717
+ }
709
718
}
710
719
711
720
for ( const extensionPath of additionalExtensionPaths ) {
You can’t perform that action at this time.
0 commit comments