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 {
615
615
path . join ( razorPath , 'Targets' , 'Microsoft.NET.Sdk.Razor.DesignTime.targets' )
616
616
) ;
617
617
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
+
618
625
// Get the brokered service pipe name from C# Dev Kit (if installed).
619
626
// We explicitly call this in the LSP server start action instead of awaiting it
620
627
// 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 {
88
88
readonly razorDevMode : boolean ;
89
89
readonly razorPluginPath : string ;
90
90
readonly razorServerPath : string ;
91
+
92
+ // Folder that contains Microsoft.VisualStudioCode.RazorExtension.dll
93
+ readonly razorExtensionPath : string ;
91
94
}
92
95
93
96
class CommonOptionsImpl implements CommonOptions {
@@ -430,6 +433,9 @@ class RazorOptionsImpl implements RazorOptions {
430
433
public get razorServerPath ( ) {
431
434
return readOption < string > ( 'razor.languageServer.directory' , '' ) ;
432
435
}
436
+ public get razorExtensionPath ( ) {
437
+ return readOption < string > ( 'razor.extension.path' , '' ) ;
438
+ }
433
439
}
434
440
435
441
export const commonOptions : CommonOptions = new CommonOptionsImpl ( ) ;
You can’t perform that action at this time.
0 commit comments