8 instantiations of WorkspaceEdit
Microsoft.CodeAnalysis.LanguageServer.Protocol (8)
Handler\CodeActions\CodeActionResolveHelper.cs (5)
86
return new LSP.
WorkspaceEdit
{ DocumentChanges = Array.Empty<TextDocumentEdit>() };
96
return new LSP.
WorkspaceEdit
{ DocumentChanges = Array.Empty<TextDocumentEdit>() };
107
return new LSP.
WorkspaceEdit
{ DocumentChanges = Array.Empty<TextDocumentEdit>() };
118
return new LSP.
WorkspaceEdit
{ DocumentChanges = Array.Empty<TextDocumentEdit>() };
200
return new LSP.
WorkspaceEdit
{ DocumentChanges = textDocumentEdits.ToArray() };
Handler\MapCode\MapCodeHandler.cs (2)
63
return new
WorkspaceEdit
74
return new
WorkspaceEdit
Handler\Rename\RenameHandler.cs (1)
84
return new
WorkspaceEdit
{ DocumentChanges = documentEdits };
24 references to WorkspaceEdit
Microsoft.CodeAnalysis.LanguageServer.Protocol (24)
Handler\CodeActions\CodeActionResolveHelper.cs (2)
23
public static Task<LSP.
WorkspaceEdit
> GetCodeActionResolveEditsAsync(RequestContext context, CodeActionResolveData data, ImmutableArray<CodeActionOperation> operations, CancellationToken cancellationToken)
37
public static async Task<LSP.
WorkspaceEdit
> GetCodeActionResolveEditsAsync(Solution solution, CodeActionResolveData data, ImmutableArray<CodeActionOperation> operations, ResourceOperationKind[] resourceOperations, Action<string> logFunction, CancellationToken cancellationToken)
Handler\MapCode\MapCodeHandler.cs (2)
24
internal sealed class MapCodeHandler : ILspServiceRequestHandler<VSInternalMapCodeParams, LSP.
WorkspaceEdit
?>
35
public async Task<
WorkspaceEdit
?> HandleRequestAsync(VSInternalMapCodeParams request, RequestContext context, CancellationToken cancellationToken)
Handler\Rename\RenameHandler.cs (3)
24
internal sealed class RenameHandler() : ILspServiceDocumentRequestHandler<LSP.RenameParams,
WorkspaceEdit
?>
31
public Task<
WorkspaceEdit
?> HandleRequestAsync(RenameParams request, RequestContext context, CancellationToken cancellationToken)
34
internal static async Task<
WorkspaceEdit
?> GetRenameEditAsync(Document document, LinePosition linePosition, string newName, CancellationToken cancellationToken)
Protocol\ApplyWorkspaceEditParams.cs (1)
34
public
WorkspaceEdit
Edit
Protocol\CodeAction.cs (1)
99
public
WorkspaceEdit
? Edit
Protocol\Internal\VSInternalMapCodeParams.cs (1)
30
public
WorkspaceEdit
? Updates
Protocol\Internal\VSInternalMethods.cs (5)
61
public static readonly LspRequest<VSInternalUriPresentationParams,
WorkspaceEdit
?> TextDocumentUriPresentation = new LspRequest<VSInternalUriPresentationParams,
WorkspaceEdit
?>(TextDocumentUriPresentationName);
66
public static readonly LspRequest<VSInternalTextPresentationParams,
WorkspaceEdit
?> TextDocumentTextPresentation = new LspRequest<VSInternalTextPresentationParams,
WorkspaceEdit
?>(TextDocumentTextPresentationName);
81
public static readonly LspRequest<VSInternalMapCodeParams,
WorkspaceEdit
?> WorkspaceMapCode = new(WorkspaceMapCodeName);
Protocol\Methods.Document.cs (1)
581
public static readonly LspRequest<RenameParams,
WorkspaceEdit
?> TextDocumentRename = new(TextDocumentRenameName);
Protocol\Methods.Workspace.cs (6)
130
/// The request can return a <see cref="
WorkspaceEdit
"/> which will be applied to the workspace before the files are created
143
public static readonly LspRequest<CreateFilesParams?,
WorkspaceEdit
?> WorkspaceWillCreateFiles = new(WorkspaceWillCreateFilesName);
170
/// The request can return a <see cref="
WorkspaceEdit
"/> which will be applied to the workspace before the files are renamed.
183
public static readonly LspRequest<RenameFilesParams?,
WorkspaceEdit
?> WorkspaceWillRenameFiles = new(WorkspaceWillRenameFilesName);
210
/// The request can return a <see cref="
WorkspaceEdit
"/> which will be applied to workspace before the files are deleted.
223
public static readonly LspRequest<DeleteFilesParams?,
WorkspaceEdit
?> WorkspaceWillDeleteFiles = new(WorkspaceWillDeleteFilesName);
Protocol\WorkspaceClientCapabilities.cs (1)
27
/// Capabilities specific to <see cref="Protocol.
WorkspaceEdit
"/>
Protocol\WorkspaceEditSetting.cs (1)
18
/// Whether the client supports versioned document changes in <see cref="
WorkspaceEdit
"/>