Skip to content

Commit 1bc6acb

Browse files
author
Andrew Hall
authored
Unseal LSP types (#78041)
1 parent 7c5ccd2 commit 1bc6acb

11 files changed

+22
-11
lines changed

src/LanguageServer/Protocol/Protocol/ColorPresentationParams.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ namespace Roslyn.LanguageServer.Protocol;
1414
/// </para>
1515
/// </summary>
1616
/// <remarks>Since LSP 3.6</remarks>
17-
internal sealed class ColorPresentationParams : ITextDocumentParams, IWorkDoneProgressParams, IPartialResultParams<ColorPresentation[]>
17+
/// <remarks>Do not seal this type! This is extended by Razor</remarks>
18+
internal class ColorPresentationParams : ITextDocumentParams, IWorkDoneProgressParams, IPartialResultParams<ColorPresentation[]>
1819
{
1920
/// <summary>
2021
/// The text document.

src/LanguageServer/Protocol/Protocol/DocumentColorParams.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ namespace Roslyn.LanguageServer.Protocol;
1414
/// </para>
1515
/// </summary>
1616
/// <remarks>Since LSP 3.6</remarks>
17-
internal sealed class DocumentColorParams : ITextDocumentParams, IWorkDoneProgressParams, IPartialResultParams<ColorInformation[]>
17+
/// <remarks>Do not seal this type! This is extended by Razor</remarks>
18+
internal class DocumentColorParams : ITextDocumentParams, IWorkDoneProgressParams, IPartialResultParams<ColorInformation[]>
1819
{
1920
/// <summary>
2021
/// The <see cref="TextDocumentIdentifier"/> to provide color information for.

src/LanguageServer/Protocol/Protocol/DocumentFormattingParams.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ namespace Roslyn.LanguageServer.Protocol;
1313
/// See the <see href="https://microsoft.github.io/language-server-protocol/specifications/specification-current/#documentFormattingParams">Language Server Protocol specification</see> for additional information.
1414
/// </para>
1515
/// </summary>
16-
internal sealed class DocumentFormattingParams : ITextDocumentParams, IWorkDoneProgressParams
16+
/// <remarks>Do not seal this type! This is extended by Razor</remarks>
17+
internal class DocumentFormattingParams : ITextDocumentParams, IWorkDoneProgressParams
1718
{
1819
/// <summary>
1920
/// Gets or sets the identifier for the text document to be formatted.

src/LanguageServer/Protocol/Protocol/DocumentOnTypeFormattingParams.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ namespace Roslyn.LanguageServer.Protocol;
1212
/// See the <see href="https://microsoft.github.io/language-server-protocol/specifications/specification-current/#documentOnTypeFormattingParams">Language Server Protocol specification</see> for additional information.
1313
/// </para>
1414
/// </summary>
15-
internal sealed class DocumentOnTypeFormattingParams : ITextDocumentPositionParams
15+
/// <remarks>Do not seal this type! This is extended by Razor</remarks>
16+
internal class DocumentOnTypeFormattingParams : ITextDocumentPositionParams
1617
{
1718
/// <summary>
1819
/// The document to format.

src/LanguageServer/Protocol/Protocol/FoldingRangeParams.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ namespace Roslyn.LanguageServer.Protocol;
1414
/// </para>
1515
/// </summary>
1616
/// <remarks>Since LSP 3.17</remarks>
17-
internal sealed class FoldingRangeParams : ITextDocumentParams, IWorkDoneProgressParams, IPartialResultParams<FoldingRange[]>
17+
/// <remarks>Do not seal this type! This is extended by Razor</remarks>
18+
internal class FoldingRangeParams : ITextDocumentParams, IWorkDoneProgressParams, IPartialResultParams<FoldingRange[]>
1819
{
1920
/// <summary>
2021
/// Gets or sets the text document associated with the folding range request.

src/LanguageServer/Protocol/Protocol/Internal/VSInternalCodeAction.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ namespace Roslyn.LanguageServer.Protocol;
1010
/// <summary>
1111
/// Class used to extend <see cref="CodeAction" /> to add the data field for codeAction/_ms_resolve support.
1212
/// </summary>
13-
internal sealed class VSInternalCodeAction : CodeAction
13+
/// <remarks>Do not seal this type! This is extended by Razor</remarks>
14+
internal class VSInternalCodeAction : CodeAction
1415
{
1516
/// <summary>
1617
/// Gets or sets the group this CodeAction belongs to.

src/LanguageServer/Protocol/Protocol/Internal/VSInternalInlineCompletionRequest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ namespace Roslyn.LanguageServer.Protocol;
1111
///
1212
/// See https://github.com/microsoft/vscode/blob/075ba020e8493f40dba89891b1a08453f2c067e9/src/vscode-dts/vscode.proposed.inlineCompletions.d.ts#L24.
1313
/// </summary>
14-
internal sealed class VSInternalInlineCompletionRequest : ITextDocumentParams
14+
/// <remarks>Do not seal this type! This is extended by Razor</remarks>
15+
internal class VSInternalInlineCompletionRequest : ITextDocumentParams
1516
{
1617
/// <summary>
1718
/// Gets or sets the text document.

src/LanguageServer/Protocol/Protocol/Internal/VSInternalTextPresentationParams.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ namespace Roslyn.LanguageServer.Protocol;
99
/// <summary>
1010
/// Class representing the parameters sent for a textDocument/_vs_textPresentation request.
1111
/// </summary>
12-
internal sealed class VSInternalTextPresentationParams : ITextDocumentParams
12+
/// <remarks>Do not seal this type! This is extended by Razor</remarks>
13+
internal class VSInternalTextPresentationParams : ITextDocumentParams
1314
{
1415
/// <summary>
1516
/// Gets or sets the identifier for the text document to be operate on.

src/LanguageServer/Protocol/Protocol/Internal/VSInternalUriPresentationParams.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ namespace Roslyn.LanguageServer.Protocol;
1010
/// <summary>
1111
/// Class representing the parameters sent for a textDocument/_vs_uriPresentation request.
1212
/// </summary>
13-
internal sealed class VSInternalUriPresentationParams : ITextDocumentParams
13+
/// <remarks>Do not seal this type! This is extended by Razor</remarks>
14+
internal class VSInternalUriPresentationParams : ITextDocumentParams
1415
{
1516
/// <summary>
1617
/// Gets or sets the identifier for the text document to be operate on.

src/LanguageServer/Protocol/Protocol/Internal/VSInternalValidateBreakableRangeParams.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ namespace Roslyn.LanguageServer.Protocol;
99
/// <summary>
1010
/// Class representing the parameters sent for the textDocument/validateBreakableRange request.
1111
/// </summary>
12-
internal sealed class VSInternalValidateBreakableRangeParams : ITextDocumentParams
12+
/// <remarks>Do not seal this type! This is extended by Razor</remarks>
13+
internal class VSInternalValidateBreakableRangeParams : ITextDocumentParams
1314
{
1415
/// <summary>
1516
/// Gets or sets the <see cref="TextDocumentIdentifier"/> for the request.

0 commit comments

Comments
 (0)