5 writes to Command
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Handler\Completion\CompletionResultFactory.cs (2)
628lspItem.Command = lspItem.Command = new LSP.Command()
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Completion\CompletionResolveTests.cs (1)
420Command = completionItem.Command,
Microsoft.CodeAnalysis.Razor.Workspaces (2)
Completion\Delegation\DelegatedCompletionHelper.cs (1)
326resolvedCompletionItem.Command = null;
Completion\RazorCompletionListProvider.cs (1)
186directiveCompletionItem.Command = s_retriggerCompletionCommand;
43 references to Command
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Protocol\Internal\Efficiency\OptimizedVSCompletionListJsonConverter.cs (2)
233if (completionItem.Command != null) 236JsonSerializer.Serialize(writer, completionItem.Command, options);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (28)
Completion\CompletionFeaturesTests.cs (27)
142Assert.Null(actualItem.Command); 165Assert.Null(resolvedItem.Command); 229Assert.Null(actualItem.Command); 249Assert.Null(resolvedItem.Command); 292Assert.Null(actualItem.Command); 303Assert.Equal(CompletionResultFactory.CompleteComplexEditCommand, resolvedItem.Command.CommandIdentifier); 304Assert.Equal(nameof(CompletionResultFactory.CompleteComplexEditCommand), resolvedItem.Command.Title); 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]); 555Assert.Null(actualItem.Command); 573Assert.Null(resolvedItem.Command); 986Assert.Null(resolvedItem.Command); 992Assert.Null(resolvedItem.Command); 1000Assert.Equal(nameof(CompletionResultFactory.CompleteComplexEditCommand), resolvedItem.Command.Title); 1001Assert.Equal(CompletionResultFactory.CompleteComplexEditCommand, resolvedItem.Command.CommandIdentifier); 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]); 1057Assert.Equal(nameof(CompletionResultFactory.CompleteComplexEditCommand), resolvedItem.Command.Title); 1058Assert.Equal(CompletionResultFactory.CompleteComplexEditCommand, resolvedItem.Command.CommandIdentifier); 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]);
Completion\CompletionResolveTests.cs (1)
420Command = completionItem.Command,
Microsoft.CodeAnalysis.Razor.Workspaces (4)
Completion\Delegation\DelegatedCompletionHelper.cs (4)
311if (resolvedCompletionItem.Command is { CommandIdentifier: Constants.CompleteComplexEditCommand, Arguments: var args }) 351else if (resolvedCompletionItem.Command is not null) 353logger.LogError($"Unsupported command for Razor document: {resolvedCompletionItem.Command.CommandIdentifier}."); 387if (resolvedCompletionItem.Command?.Arguments is { } args)
Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests (7)
Completion\RazorCompletionListProviderTest.cs (7)
134Assert.NotNull(converted.Command); 189Assert.Null(converted.Command); 208Assert.Null(converted.Command); 227Assert.Null(converted.Command); 257Assert.Null(converted.Command); 283Assert.Null(converted.Command); 309Assert.Null(converted.Command);
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (1)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostDocumentCompletionEndpointTest.cs (1)
1642else if (result.Command is { Arguments: [_, TextEdit textEdit, ..] })
Microsoft.VisualStudioCode.RazorExtension.UnitTests (1)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostDocumentCompletionEndpointTest.cs (1)
1642else if (result.Command is { Arguments: [_, TextEdit textEdit, ..] })