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

Update Omnisharp-roslyn #5544

Merged
merged 1 commit into from
Jan 19, 2023
Merged

Update Omnisharp-roslyn #5544

merged 1 commit into from
Jan 19, 2023

Conversation

dibarbet
Copy link
Member

No description provided.

let potentialVersionPart = nameParts[nameParts.length - 1];
let versions = findVersions(potentialVersionPart, { loose: true });
if (!versions || versions.length == 0) {
if (fileName.startsWith("omnisharp")) {
Copy link
Member Author

@dibarbet dibarbet Jan 19, 2023

Choose a reason for hiding this comment

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

the old code was super busted, trying to convert non semver versions to semver. When the Razor versions changed in https://github.com/OmniSharp/omnisharp-vscode/pull/5523/files (to remove the preview number in their version) the findVersions package started adding an extraneous '.0' at the end. This broke the update script.

I changed this to instead define explicitly what its looking for so at least its more clear on what is going wrong when version numbers change.

The whole format of these dependency sections in the package.json should probably change so we don't have to parse URLs with random versions for file names, but I don't have time for that at the moment.

Copy link
Member

Choose a reason for hiding this comment

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

When you say semvar, do you mean semver?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, it was late and I got the wrong word in my head 😆

update log
@dibarbet dibarbet requested a review from 333fred January 19, 2023 03:48
@dibarbet dibarbet marked this pull request as ready for review January 19, 2023 03:48
@dibarbet dibarbet merged commit 08dbbd3 into dotnet:master Jan 19, 2023
@dibarbet dibarbet deleted the update_roslyn branch January 19, 2023 18:56
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.

3 participants