File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -615,6 +615,13 @@ export class RoslynLanguageServer {
615615 path . join ( razorPath , 'Targets' , 'Microsoft.NET.Sdk.Razor.DesignTime.targets' )
616616 ) ;
617617
618+ const razorExtensionPath =
619+ razorOptions . razorExtensionPath === ''
620+ ? path . join ( context . extension . extensionPath , '.razorExtension' )
621+ : razorOptions . razorExtensionPath ;
622+
623+ additionalExtensionPaths . push ( path . join ( razorExtensionPath , 'Microsoft.VisualStudioCode.RazorExtension.dll' ) ) ;
624+
618625 // Get the brokered service pipe name from C# Dev Kit (if installed).
619626 // We explicitly call this in the LSP server start action instead of awaiting it
620627 // in our activation because C# Dev Kit depends on C# activation completing.
Original file line number Diff line number Diff line change @@ -88,6 +88,9 @@ export interface RazorOptions {
8888 readonly razorDevMode : boolean ;
8989 readonly razorPluginPath : string ;
9090 readonly razorServerPath : string ;
91+
92+ // Folder that contains Microsoft.VisualStudioCode.RazorExtension.dll
93+ readonly razorExtensionPath : string ;
9194}
9295
9396class CommonOptionsImpl implements CommonOptions {
@@ -430,6 +433,9 @@ class RazorOptionsImpl implements RazorOptions {
430433 public get razorServerPath ( ) {
431434 return readOption < string > ( 'razor.languageServer.directory' , '' ) ;
432435 }
436+ public get razorExtensionPath ( ) {
437+ return readOption < string > ( 'razor.extension.path' , '' ) ;
438+ }
433439}
434440
435441export const commonOptions : CommonOptions = new CommonOptionsImpl ( ) ;
You can’t perform that action at this time.
0 commit comments