@@ -651,7 +651,7 @@ export class RoslynLanguageServer {
651651 : razorOptions . razorServerPath ;
652652
653653 let razorComponentPath = '' ;
654- getComponentPaths ( 'razorExtension' , languageServerOptions ) . forEach ( ( extPath ) => {
654+ getComponentPaths ( 'razorExtension' , languageServerOptions , channel ) . forEach ( ( extPath ) => {
655655 additionalExtensionPaths . push ( extPath ) ;
656656 razorComponentPath = path . dirname ( extPath ) ;
657657 } ) ;
@@ -695,10 +695,10 @@ export class RoslynLanguageServer {
695695 // Set command enablement as soon as we know devkit is available.
696696 await vscode . commands . executeCommand ( 'setContext' , 'dotnet.server.activationContext' , 'RoslynDevKit' ) ;
697697
698- const csharpDevKitArgs = this . getCSharpDevKitExportArgs ( additionalExtensionPaths ) ;
698+ const csharpDevKitArgs = this . getCSharpDevKitExportArgs ( additionalExtensionPaths , channel ) ;
699699 args = args . concat ( csharpDevKitArgs ) ;
700700
701- await this . setupDevKitEnvironment ( dotnetInfo . env , csharpDevkitExtension , additionalExtensionPaths ) ;
701+ await this . setupDevKitEnvironment ( dotnetInfo . env , csharpDevkitExtension , additionalExtensionPaths , channel ) ;
702702 } else {
703703 // C# Dev Kit is not installed - continue C#-only activation.
704704 channel . info ( 'Activating C# standalone...' ) ;
@@ -1012,10 +1012,13 @@ export class RoslynLanguageServer {
10121012 ) ;
10131013 }
10141014
1015- private static getCSharpDevKitExportArgs ( additionalExtensionPaths : string [ ] ) : string [ ] {
1015+ private static getCSharpDevKitExportArgs (
1016+ additionalExtensionPaths : string [ ] ,
1017+ channel : vscode . LogOutputChannel
1018+ ) : string [ ] {
10161019 const args : string [ ] = [ ] ;
10171020
1018- const devKitDepsPath = getComponentPaths ( 'roslynDevKit' , languageServerOptions ) ;
1021+ const devKitDepsPath = getComponentPaths ( 'roslynDevKit' , languageServerOptions , channel ) ;
10191022 if ( devKitDepsPath . length > 1 ) {
10201023 throw new Error ( 'Expected only one devkit deps path' ) ;
10211024 }
@@ -1026,7 +1029,7 @@ export class RoslynLanguageServer {
10261029
10271030 // Also include the Xaml Dev Kit extensions, if enabled.
10281031 if ( languageServerOptions . enableXamlTools ) {
1029- getComponentPaths ( 'xamlTools' , languageServerOptions ) . forEach ( ( path ) =>
1032+ getComponentPaths ( 'xamlTools' , languageServerOptions , channel ) . forEach ( ( path ) =>
10301033 additionalExtensionPaths . push ( path )
10311034 ) ;
10321035 }
@@ -1086,7 +1089,8 @@ export class RoslynLanguageServer {
10861089 private static async setupDevKitEnvironment (
10871090 env : NodeJS . ProcessEnv ,
10881091 csharpDevkitExtension : vscode . Extension < CSharpDevKitExports > ,
1089- additionalExtensionPaths : string [ ]
1092+ additionalExtensionPaths : string [ ] ,
1093+ channel : vscode . LogOutputChannel
10901094 ) : Promise < void > {
10911095 const exports : CSharpDevKitExports = await csharpDevkitExtension . activate ( ) ;
10921096
@@ -1096,7 +1100,7 @@ export class RoslynLanguageServer {
10961100 await exports . setupTelemetryEnvironmentAsync ( env ) ;
10971101 }
10981102
1099- getComponentPaths ( 'roslynCopilot' , languageServerOptions ) . forEach ( ( extPath ) => {
1103+ getComponentPaths ( 'roslynCopilot' , languageServerOptions , channel ) . forEach ( ( extPath ) => {
11001104 additionalExtensionPaths . push ( extPath ) ;
11011105 } ) ;
11021106 }
0 commit comments