-
Notifications
You must be signed in to change notification settings - Fork 199
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
Omni sharp decouple #7936
Omni sharp decouple #7936
Conversation
@@ -3,77 +3,77 @@ | |||
|
|||
namespace Microsoft.AspNetCore.Razor.LanguageServer.Common; | |||
|
|||
public static class LanguageServerConstants |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recommend viewing with "?w=1", there was some formatting that still needed to happen after the namespace change.
src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer.Common/Properties/AssemblyInfo.cs
Show resolved
Hide resolved
...pNetCore.Razor.OmniSharpPlugin.StrongNamed/DefaultOmniSharpProjectSnapshotManagerAccessor.cs
Outdated
Show resolved
Hide resolved
...Razor/src/Microsoft.AspNetCore.Razor.OmniSharpPlugin.StrongNamed/OmniSharpProjectSnapshot.cs
Outdated
Show resolved
Hide resolved
...soft.AspNetCore.Razor.OmniSharpPlugin.StrongNamed/OmniSharpProjectWorkspaceStateGenerator.cs
Outdated
Show resolved
Hide resolved
src/Razor/src/Microsoft.AspNetCore.Razor.OmniSharpPlugin/MSBuildProjectManager.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't fully reviewed, and on my phone so I'm stopping, but maybe also left enough comments to start some discussions
.../Microsoft.AspNetCore.Razor.Microbenchmarks/LanguageServer/RazorCSharpFormattingBenchmark.cs
Outdated
Show resolved
Hide resolved
public const int VSCompletionItemKindOffset = 118115; | ||
public static class LanguageServerConstants | ||
{ | ||
internal const int VSCompletionItemKindOffset = 118115; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is a great example of where I'd love to have a new DLL serve as an external access layer, so its much easier to see exactly what surface area is exposed, and also harder (if not impossible) to accidentally widen that area.
Of course that could come as a follow up, not in this PR, since this one does the hard work of at least identifying what that surface area is.
...pNetCore.Razor.OmniSharpPlugin.StrongNamed/DefaultOmniSharpProjectSnapshotManagerAccessor.cs
Outdated
Show resolved
Hide resolved
...ft.AspNetCore.Razor.OmniSharpPlugin.StrongNamed/OmniSharpProjectSnapshotManagerDispatcher.cs
Outdated
Show resolved
Hide resolved
src/Razor/src/Microsoft.AspNetCore.Razor.OmniSharpPlugin/MSBuildProjectManager.cs
Outdated
Show resolved
Hide resolved
@@ -25,9 +25,9 @@ public abstract class TagHelperServiceTestBase : LanguageServerTestBase | |||
protected const string RazorFile = "test.razor"; | |||
|
|||
protected TagHelperDescriptor[] DefaultTagHelpers { get; } | |||
protected RazorTagHelperCompletionService RazorTagHelperCompletionService { get; } | |||
internal RazorTagHelperCompletionService RazorTagHelperCompletionService { get; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes are required because the type has become internal
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine to me. As mentioned, I'd love a single project like an EA layer, to encapsulate this all together into one public API, rather than piecemeal on each project, and rather than mixing visibilities in a single type, but that can be done as a follow up.
...c/Microsoft.AspNetCore.Razor.LanguageServer.Common/Extensions/RazorCodeDocumentExtensions.cs
Show resolved
Hide resolved
FYI, this broke VS Mac as apparently WebTools calls
|
Summary of the changes
Fixes part of #6945.