10 writes to Arguments
Microsoft.CodeAnalysis.LanguageServer.Protocol (9)
Handler\CodeActions\CodeActionHelpers.cs (2)
131Arguments = [new CodeActionResolveData(title, codeAction.CustomTags, request.Range, request.TextDocument, [.. codeActionPathList], fixAllFlavors: null, nestedCodeActions: nestedCodeActions)] 207Arguments = [new CodeActionResolveData(fixAllTitle, codeAction.CustomTags, request.Range, request.TextDocument, codeActionPath, [.. flavorStrings], nestedCodeActions: null)]
Handler\CodeLens\CodeLensHandler.cs (4)
152Arguments = [new RunTestsParams(textDocumentIdentifier, range, AttachDebugger: false, runSettingsPath)], 163Arguments = [new RunTestsParams(textDocumentIdentifier, range, AttachDebugger: true, runSettingsPath)], 182Arguments = [new RunTestsParams(textDocumentIdentifier, range, AttachDebugger: false, runSettingsPath)], 193Arguments = [new RunTestsParams(textDocumentIdentifier, range, AttachDebugger: true, runSettingsPath)],
Handler\CodeLens\CodeLensResolveHandler.cs (2)
52Arguments = 80Arguments =
Handler\Completion\CompletionResultFactory.cs (1)
632Arguments = [textDocumentIdentifier, textEdit, isSnippetString, lspOffset]
Microsoft.CodeAnalysis.Razor.Workspaces (1)
CodeActions\Models\CodeActionExtensions.cs (1)
52Arguments = arguments.ToArray()!
23 references to Arguments
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (12)
Completion\CompletionFeaturesTests.cs (12)
305AssertJsonEquals(completionParams.TextDocument, resolvedItem.Command.Arguments[0]); 306AssertJsonEquals(expectedEdit, resolvedItem.Command.Arguments[1]); 307Assert.Equal(false, resolvedItem.Command.Arguments[2]); 309Assert.Equal(expectedNewPosition, resolvedItem.Command.Arguments[3]); 1003AssertJsonEquals(completionParams.TextDocument, resolvedItem.Command.Arguments[0]); 1006AssertJsonEquals(expectedEdit, resolvedItem.Command.Arguments[1]); 1008Assert.Equal(false, resolvedItem.Command.Arguments[2]); 1009Assert.Equal(-1, resolvedItem.Command.Arguments[3]); 1060AssertJsonEquals(completionParams.TextDocument, resolvedItem.Command.Arguments[0]); 1063AssertJsonEquals(expectedEdit, resolvedItem.Command.Arguments[1]); 1065Assert.Equal(false, resolvedItem.Command.Arguments[2]); 1067Assert.Equal(expectedNewPosition, resolvedItem.Command.Arguments[3]);
Microsoft.CodeAnalysis.Razor.Workspaces (4)
CodeActions\Models\CodeActionExtensions.cs (2)
95razorCodeAction.Command is not { CommandIdentifier: NestedCodeActionCommand, Arguments: [JsonElement arg] }) 142razorCodeAction.Command.Arguments[0] = newArg;
Completion\Delegation\DelegatedCompletionHelper.cs (2)
311if (resolvedCompletionItem.Command is { CommandIdentifier: Constants.CompleteComplexEditCommand, Arguments: var args }) 387if (resolvedCompletionItem.Command?.Arguments is { } args)
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (2)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\CohostCodeActionsEndpointTestBase.cs (1)
125if (codeActionToRun.Command is { CommandIdentifier: "roslyn.client.nestedCodeAction", Arguments: [JsonObject data] })
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostDocumentCompletionEndpointTest.cs (1)
1500else if (result.Command is { Arguments: [_, TextEdit textEdit, ..] })
Microsoft.VisualStudioCode.RazorExtension.UnitTests (5)
Endpoints\CohostCodeLensEndpointTest.cs (3)
107Assert.NotNull(resolved.Command.Arguments); 111var documentUri = Assert.IsType<DocumentUri>(resolved.Command.Arguments[0]); 114var position = Assert.IsType<Position>(resolved.Command.Arguments[1]);
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\CodeActions\CohostCodeActionsEndpointTestBase.cs (1)
125if (codeActionToRun.Command is { CommandIdentifier: "roslyn.client.nestedCodeAction", Arguments: [JsonObject data] })
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostDocumentCompletionEndpointTest.cs (1)
1500else if (result.Command is { Arguments: [_, TextEdit textEdit, ..] })