Skip to content

Rename internal 'LanguageServices' namespace to not collide with new 'LanguageServices' type.#63249

Merged
CyrusNajmabadi merged 4 commits intodotnet:mainfrom
CyrusNajmabadi:solutionServices3
Aug 9, 2022
Merged

Rename internal 'LanguageServices' namespace to not collide with new 'LanguageServices' type.#63249
CyrusNajmabadi merged 4 commits intodotnet:mainfrom
CyrusNajmabadi:solutionServices3

Conversation

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor

Followup to #63241

@CyrusNajmabadi CyrusNajmabadi marked this pull request as ready for review August 8, 2022 19:16
@CyrusNajmabadi CyrusNajmabadi requested review from a team, 333fred and JoeRobich as code owners August 8, 2022 19:16
@CyrusNajmabadi CyrusNajmabadi requested review from a team and tmat August 8, 2022 19:16
@CyrusNajmabadi
Copy link
Copy Markdown
Contributor Author

@tmat this is ready for review.

Copy link
Copy Markdown
Member

@333fred 333fred left a comment

Choose a reason for hiding this comment

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

Uh, sorry for suggesting the name... 😅. O# changes LGTM.

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor Author

@roslyn-ide @jasonmalinowski ptal. thanks!

Copy link
Copy Markdown
Member

@tmat tmat left a comment

Choose a reason for hiding this comment

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

LGTM. I'm wondering why do we have this namespace at all though. It's not very specific, other namespaces also contain language services.

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor Author

LGTM. I'm wondering why do we have this namespace at all though. It's not very specific, other namespaces also contain language services.

yeah. i think we just placed them there to keep them somewhere. but i would actually have no problem being in Microsoft.CodeAnalysis.

@CyrusNajmabadi CyrusNajmabadi merged commit 2dd3671 into dotnet:main Aug 9, 2022
@ghost ghost added this to the Next milestone Aug 9, 2022
@CyrusNajmabadi CyrusNajmabadi deleted the solutionServices3 branch August 11, 2022 15:10
@dibarbet
Copy link
Copy Markdown
Member

@CyrusNajmabadi @333fred this appears to break anyone who references public types like https://github.com/dotnet/roslyn/blob/main/src/VisualStudio/Core/Def/ProjectSystem/VisualStudioWorkspace.cs#L22 via LanguageServices.VisualStudioWorkspace. Found this in a VS insertion. Should be easy enough to fix, but wanted to check if that was intentional.

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor Author

Hrmm... That's interesting. So they have a using for Microsoft.CodeAnalysis.Host as well?

@genlu
Copy link
Copy Markdown
Member

genlu commented Aug 15, 2022

So they have a using for Microsoft.CodeAnalysis.Host as well?

Yes

@dibarbet
Copy link
Copy Markdown
Member

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor Author

Yeah, this will be an unfortunate, but rarely-hit source-break. Binary compat is still there. Can happen when there are common names in disparate namespaces, and multiple usings. This can happen within a component, or across components unfortunately,

@dibarbet dibarbet added this to the 17.4 P2 milestone Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants