Skip to content

Commit

Permalink
Implement the "dotNetCliPaths" option to support custom .NET SDK loca…
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoritzinsky authored Sep 2, 2021
1 parent 0d95e19 commit dacb9e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/omnisharp/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,10 @@ export class OmniSharpServer {
args.push('RoslynExtensionsOptions:EnableAsyncCompletion=true');
}

for (let i = 0; i < options.dotNetCliPaths.length; i++) {
args.push(`DotNetCliOptions:LocationPaths:${i}=${options.dotNetCliPaths[i]}`);
}

let launchInfo: LaunchInfo;
try {
launchInfo = await this._omnisharpManager.GetOmniSharpLaunchInfo(this.packageJSON.defaults.omniSharp, options.path, serverUrl, latestVersionFileServerPath, installPath, this.extensionPath);
Expand Down

0 comments on commit dacb9e4

Please sign in to comment.