File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -782,10 +782,16 @@ export async function activateRoslynLanguageServer(
782
782
}
783
783
784
784
function getServerPath ( options : Options , platformInfo : PlatformInformation ) {
785
- let serverPath = options . commonOptions . serverPath ;
786
- if ( ! serverPath ) {
787
- // Option not set, use the path from the extension.
788
- serverPath = getInstalledServerPath ( platformInfo ) ;
785
+ let serverPath = process . env . DOTNET_ROSLYN_SERVER_PATH ;
786
+
787
+ if ( serverPath ) {
788
+ _channel . appendLine ( `Using server path override from DOTNET_ROSLYN_SERVER_PATH: ${ serverPath } ` ) ;
789
+ } else {
790
+ serverPath = options . commonOptions . serverPath ;
791
+ if ( ! serverPath ) {
792
+ // Option not set, use the path from the extension.
793
+ serverPath = getInstalledServerPath ( platformInfo ) ;
794
+ }
789
795
}
790
796
791
797
if ( ! fs . existsSync ( serverPath ) ) {
You can’t perform that action at this time.
0 commit comments