-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
My previous work on LspEditorFeatureDetector introduced a significant regression by removing the code that checked project capabilities. When a razor document is opened, the LspEditorFeatureDetector is queried to see if the LSP editor is enabled (i.e. the user hasn't enabled the legacy editor instead), and to see whether the project that the document belongs to supports the LSP editor. In the case of .NET Framework projects, the LSP editor can't ever be used, and my prior change broke that. (Many thanks to @alexgav for fixing my mistake!) Giving the situation a bit more thought, I've reworked LspEditorFeatureDetector again to simplify the code and fix a different issue where we would start checking project capabilities where we hadn't before.
- Loading branch information
1 parent
47e4957
commit 6cd5bd4
Showing
15 changed files
with
223 additions
and
289 deletions.
There are no files selected for viewing
32 changes: 0 additions & 32 deletions
32
...r/src/Microsoft.VisualStudio.LanguageServices.Razor/AggregateProjectCapabilityResolver.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
.../src/Microsoft.VisualStudio.LanguageServices.Razor/IAggregateProjectCapabilityResolver.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...icrosoft.VisualStudio.LanguageServices.Razor/LiveShare/Guest/ILiveShareSessionAccessor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
// Copyright (c) .NET Foundation. All rights reserved. | ||
// Licensed under the MIT license. See License.txt in the project root for license information. | ||
|
||
using System.Diagnostics.CodeAnalysis; | ||
using Microsoft.VisualStudio.LiveShare; | ||
|
||
namespace Microsoft.VisualStudio.Razor.LiveShare.Guest; | ||
|
||
internal interface ILiveShareSessionAccessor | ||
{ | ||
CollaborationSession? Session { get; } | ||
|
||
[MemberNotNullWhen(true, nameof(Session))] | ||
bool IsGuestSessionActive { get; } | ||
} |
44 changes: 0 additions & 44 deletions
44
...osoft.VisualStudio.LanguageServices.Razor/LiveShare/LiveShareProjectCapabilityResolver.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.