Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support using .NET 6 OmniSharp #4926

Merged
merged 7 commits into from
Dec 6, 2021
Merged

Support using .NET 6 OmniSharp #4926

merged 7 commits into from
Dec 6, 2021

Conversation

333fred
Copy link
Member

@333fred 333fred commented Dec 4, 2021

Adds an option for using the .NET 6 version of OmniSharp, and supports getting it and the right executables on all platforms.

Closes #4843

333fred and others added 3 commits December 3, 2021 18:39
Adds an option for using the .NET 6 version of OmniSharp, and supports getting it and the right executables on all platforms.
package.json Outdated
"integrity": "43D6B18F390B8ED92231044E87413831E565E9AB5938223B19CA97B3628DDDF4"
},
{
"id": "OmniSharp",
"description": "OmniSharp for Linux (x86)",
"description": "OmniSharp for OSX (.NET 6)",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you are missing a split into x64 and arm64 here

Copy link
Member

@JoeRobich JoeRobich Dec 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch. We don't have one currently, because we install the x64 for both architectures. Since the net6 builds are currently being built as self-contained this might cause issues. Certainly wouldn't perform as well.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added profiles for the other platforms. @filipw, can you give it a try on Mac?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I went through this list and updated our profiles based on it, from the beta83 publish of omnisharp-roslyn:

1.37.18-beta.83/omnisharp-win-x86.zip
1.37.18-beta.83/omnisharp-win-x86-net6.0.zip
1.37.18-beta.83/omnisharp-win-x64.zip
1.37.18-beta.83/omnisharp-win-x64-net6.0.zip
1.37.18-beta.83/omnisharp-win-arm64.zip
1.37.18-beta.83/omnisharp-win-arm64-net6.0.zip
1.37.18-beta.83/omnisharp-osx.zip
1.37.18-beta.83/omnisharp-osx.tar.gz
1.37.18-beta.83/omnisharp-osx-x64-net6.0.zip
1.37.18-beta.83/omnisharp-osx-x64-net6.0.tar.gz
1.37.18-beta.83/omnisharp-osx-arm64-net6.0.zip
1.37.18-beta.83/omnisharp-osx-arm64-net6.0.tar.gz
1.37.18-beta.83/omnisharp-mono.zip
1.37.18-beta.83/omnisharp-mono.tar.gz
1.37.18-beta.83/omnisharp-linux-x86.zip
1.37.18-beta.83/omnisharp-linux-x86.tar.gz
1.37.18-beta.83/omnisharp-linux-x64.zip
1.37.18-beta.83/omnisharp-linux-x64.tar.gz
1.37.18-beta.83/omnisharp-linux-x64-net6.0.zip
1.37.18-beta.83/omnisharp-linux-x64-net6.0.tar.gz
1.37.18-beta.83/omnisharp-linux-arm64.zip
1.37.18-beta.83/omnisharp-linux-arm64.tar.gz

@@ -5,48 +5,56 @@

import { Package } from "../packageManager/Package";

export function GetPackagesFromVersion(version: string, runTimeDependencies: Package[], serverUrl: string, installPath: string): Package[] {
export const modernNetVersion = "6.0";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filed OmniSharp/omnisharp-roslyn#2294 to track removing the need for this constant.

333fred and others added 2 commits December 4, 2021 15:33
Copy link
Contributor

@filipw filipw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JoeRobich JoeRobich merged commit e44bb44 into dotnet:master Dec 6, 2021
@333fred 333fred deleted the net6 branch December 6, 2021 18:48
@tverboon
Copy link

@333fred, @JoeRobich, @filipw just configured Omnisharp with the useModernNet. Whoa, performance is much, much better. In some larger projects I was barely able to type sometimes. It's really snappy with .Net 6 on my iMac.

Just wanted to let you know this, because it might solve a lot of open performance issues for a lot of people.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate running OmniSharp on .NET 6
4 participants