Skip to content

Commit 9e583cf

Browse files
committed
Cleanup
1 parent ff8ecca commit 9e583cf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/lsptoolshost/roslynLanguageServer.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -657,16 +657,14 @@ function getServerPath(options: Options, platformInfo: PlatformInformation) {
657657
return serverPath;
658658
}
659659

660-
function getInstalledServerPath(platformInfo: PlatformInformation) {
660+
function getInstalledServerPath(platformInfo: PlatformInformation): string {
661661
const clientRoot = __dirname;
662662
const serverFilePath = path.join(clientRoot, '..', '.roslyn', 'Microsoft.CodeAnalysis.LanguageServer');
663663

664664
let extension = '';
665665
if (platformInfo.isWindows()) {
666666
extension = '.exe';
667-
}
668-
669-
if (platformInfo.isMacOS()) {
667+
} else if (platformInfo.isMacOS()) {
670668
// MacOS executables must be signed with codesign. Currently all Roslyn server executables are built on windows
671669
// and therefore dotnet publish does not automatically sign them.
672670
// Tracking bug - https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1767519/

0 commit comments

Comments
 (0)