3 writes to Command
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Handler\Completion\CompletionResultFactory.cs (2)
626lspItem.Command = lspItem.Command = new LSP.Command()
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Completion\CompletionResolveTests.cs (1)
420Command = completionItem.Command,
30 references to Command
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Protocol\Internal\Efficiency\OptimizedVSCompletionListJsonConverter.cs (2)
228if (completionItem.Command != null) 231JsonSerializer.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,